@charset "UTF-8";*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

[popover]:not(:popover-open) {
  display: none;
}

html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}
body {
  background: #000000;
  color: #ffffff;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
}

.benches {
  padding: 1rem;
  line-height: 1.6;
}
.benches h1 {
  font-size: 1.2em;
  font-weight: 400;
}
.benches li {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.55);
}
.benches a {
  color: #ffffff;
}

colophon-cpc,
colophon-spectrum {
  display: flex;
  align-items: start;
  gap: 1rem;
  padding: 1rem;
}
colophon-cpc:focus,
colophon-spectrum:focus {
  outline: none;
}
colophon-cpc:focus-visible,
colophon-spectrum:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

colophon-monitor canvas {
  display: block;
  image-rendering: pixelated;
}

.panels {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 1rem;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 0.85em;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

colophon-options button,
colophon-breakpoints header button,
colophon-disassembly header button {
  display: grid;
  place-items: center;
  width: 1em;
  height: 1em;
  padding: 0;
  background: none;
  border: 0;
  appearance: none;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
colophon-options button:hover,
colophon-breakpoints header button:hover,
colophon-disassembly header button:hover {
  color: #ffffff;
}
colophon-options button:focus-visible,
colophon-breakpoints header button:focus-visible,
colophon-disassembly header button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}
colophon-options button:disabled,
colophon-breakpoints header button:disabled,
colophon-disassembly header button:disabled {
  color: rgba(255, 255, 255, 0.15);
  cursor: default;
}

header:has(colophon-recording[recording]) colophon-options button {
  color: #ff6f5f;
}

input.state {
  width: 1ch;
  background: none;
  cursor: pointer;
  appearance: none;
  color: #ffffff;
}
input.state::before {
  content: ".";
}
input.state:checked::before {
  content: "1";
}
input.state:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.55);
}
input.state:disabled {
  opacity: 0.35;
  cursor: default;
}

.list {
  height: calc(var(--lines) * 1lh);
  overflow-y: auto;
  scrollbar-gutter: stable;
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fields {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 0.15rem 0.75rem;
}
.fields.pairs {
  grid-template-columns: repeat(2, auto auto);
}
.fields.counters {
  grid-template-columns: repeat(3, auto auto);
}
.fields.registers {
  grid-template-columns: repeat(4, auto auto);
}
.fields.indicators {
  grid-template-columns: repeat(5, auto auto);
}
.fields.indicators output::before,
.fields.indicators .input-group::before {
  content: none;
}
.fields.status {
  grid-template-columns: 3ch auto auto;
}
.fields.status div {
  display: flex;
  gap: 0.75rem;
}
.fields.status div output::before {
  content: none;
}
.fields.sequence {
  grid-template-columns: 3ch auto;
}
.fields.sequence output::before {
  content: none;
}
.fields.inks {
  grid-template-columns: repeat(4, auto auto);
  row-gap: 0.3rem;
}
.fields > label {
  display: contents;
}
.fields label,
.fields .name {
  color: rgba(255, 255, 255, 0.55);
}
.fields abbr {
  text-decoration: none;
}
.fields input,
.fields output {
  all: unset;
  font-variant-numeric: tabular-nums;
}
.fields .input-group input {
  text-transform: uppercase;
}
.fields output,
.fields .input-group {
  color: #ffffff;
  white-space: nowrap;
}
.fields output::before,
.fields .input-group::before {
  content: "&";
}
.fields output {
  opacity: 0.75;
}
.fields input {
  width: 2ch;
  cursor: text;
  background: #000000;
}
.fields input[maxlength="1"] {
  width: 1ch;
}
.fields input[maxlength="3"] {
  width: 3ch;
}
.fields input[maxlength="4"] {
  width: 4ch;
}
.fields input[maxlength="5"] {
  width: 5ch;
}
.fields input[maxlength="6"] {
  width: 6ch;
}
.fields input[maxlength="7"] {
  width: 7ch;
}
.fields input:focus {
  outline: 1px solid rgba(255, 255, 255, 0.55);
}
.fields input:invalid {
  color: #ff6f5f;
  font-weight: bold;
}
.fields select {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font: inherit;
  padding: 0 0.2rem;
}
.fields .ink {
  display: flex;
  align-items: center;
  gap: 0.5ch;
  white-space: nowrap;
}
.fields .swatch {
  width: 1.25em;
  height: 1.25em;
  padding: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  appearance: none;
  cursor: pointer;
}
.fields .swatch:hover {
  border-color: #ffffff;
}
.fields .swatch:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: 1px;
}
.fields .flags {
  display: flex;
  gap: 0.5ch;
}
.fields .flags label {
  display: inline;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.fields .flags label:has(:checked) {
  color: #ffffff;
}
.fields .flags label:has(:focus-visible) {
  outline: 1px solid rgba(255, 255, 255, 0.55);
}
.fields .flags input {
  position: absolute;
  width: 0;
  opacity: 0;
}

form {
  display: grid;
  gap: 0.5rem;
}

colophon-z80,
colophon-controls,
colophon-memory,
colophon-crtc,
colophon-gate-array,
colophon-keyboard,
colophon-ula,
colophon-disassembly,
colophon-symbols,
colophon-breakpoints,
colophon-upd765,
colophon-drive,
colophon-disc,
colophon-tape,
colophon-track,
colophon-monitor,
colophon-cpc-screen {
  display: block;
  width: fit-content;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.6rem 0.75rem;
}
colophon-z80 header,
colophon-controls header,
colophon-memory header,
colophon-crtc header,
colophon-gate-array header,
colophon-keyboard header,
colophon-ula header,
colophon-disassembly header,
colophon-symbols header,
colophon-breakpoints header,
colophon-upd765 header,
colophon-drive header,
colophon-disc header,
colophon-tape header,
colophon-track header,
colophon-monitor header,
colophon-cpc-screen header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
colophon-z80 header h2,
colophon-controls header h2,
colophon-memory header h2,
colophon-crtc header h2,
colophon-gate-array header h2,
colophon-keyboard header h2,
colophon-ula header h2,
colophon-disassembly header h2,
colophon-symbols header h2,
colophon-breakpoints header h2,
colophon-upd765 header h2,
colophon-drive header h2,
colophon-disc header h2,
colophon-tape header h2,
colophon-track header h2,
colophon-monitor header h2,
colophon-cpc-screen header h2 {
  margin: 0 auto 0 0;
}

colophon-cpc-screen .picture {
  position: relative;
}

colophon-cpc-screen canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

colophon-actions,
colophon-options,
colophon-breakpoint-form,
colophon-ink-form {
  display: contents;
}

colophon-actions menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 0.2rem;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font: inherit;
  list-style: none;
}
colophon-actions menu button {
  all: unset;
  display: block;
  width: 100%;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
  cursor: pointer;
}
colophon-actions menu button:hover, colophon-actions menu button:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

colophon-options form {
  position: fixed;
  inset: auto;
  display: grid;
  gap: 0.6rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.5rem 0.6rem;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.85em;
}
colophon-options form fieldset {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  border: 0;
}
colophon-options form legend {
  padding: 0 0 0.15rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
colophon-options form .toggle {
  display: flex;
  align-items: baseline;
  gap: 0.75ch;
}
colophon-options form .toggle::before {
  content: "○";
}
colophon-options form .toggle:has(:checked)::before {
  content: "●";
}
colophon-options form .toggle:has([type=checkbox])::before {
  content: "□";
}
colophon-options form .toggle:has([type=checkbox]:checked)::before {
  content: "■";
}
colophon-options form colophon-recording button {
  all: unset;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
colophon-options form colophon-recording button:hover {
  color: #ffffff;
}
colophon-options form colophon-recording button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.55);
}
colophon-options form colophon-recording button:disabled {
  color: rgba(255, 255, 255, 0.15);
  cursor: default;
}
colophon-options form colophon-recording[recording] button {
  color: #ff6f5f;
}
colophon-options form .fields {
  gap: 0.1rem 0.75rem;
}
colophon-options form .fields input {
  color: #ffffff;
  outline: 1px solid rgba(255, 255, 255, 0.15);
}

dialog {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}
dialog .fields input {
  padding: 0 0.5ch;
  outline: 1px solid rgba(255, 255, 255, 0.15);
}
dialog .fields input:focus {
  outline-color: rgba(255, 255, 255, 0.55);
}
dialog .palette {
  display: grid;
  grid-template-columns: repeat(8, auto);
  gap: 0.35rem;
}
dialog .palette .colour {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  background: none;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  appearance: none;
  cursor: pointer;
}
dialog .palette .colour:hover, dialog .palette .colour:focus-visible {
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  outline: none;
}
dialog .palette .colour.current {
  border-color: #ffffff;
  color: #ffffff;
}
dialog .palette .swatch {
  width: 1.75em;
  height: 1.75em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
dialog .palette .code {
  font-variant-numeric: tabular-nums;
}
dialog .palette .code::before {
  content: "&";
}
dialog .actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
dialog .actions button {
  padding: 0.4rem 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
dialog .actions button:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.instruction {
  display: grid;
  grid-template-columns: var(--columns);
  gap: 0 var(--gap);
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.55);
}
.instruction.current {
  color: #ffffff;
}

header > form {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.8em;
}

.armed {
  all: unset;
  width: 1ch;
  cursor: pointer;
}
.armed::before {
  content: "○";
}
.armed:checked::before {
  content: "●";
  color: #ff6f5f;
}
.armed:disabled {
  cursor: default;
}
.armed:disabled::before {
  content: "";
}
.armed:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.55);
}

.toggle {
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  white-space: nowrap;
}
.toggle:has(:checked) {
  color: #ffffff;
}
.toggle:has(:focus-visible) {
  outline: 1px solid rgba(255, 255, 255, 0.55);
}
.toggle input {
  position: absolute;
  width: 0;
  opacity: 0;
}

.filter {
  display: flex;
  align-items: center;
  gap: 0.75ch;
  color: rgba(255, 255, 255, 0.55);
}
.filter:focus-within {
  color: #ffffff;
}
.filter .icon {
  fill: currentColor;
}
.filter input {
  all: unset;
  width: 12ch;
  padding: 0 0.5ch;
  background: #000000;
  color: #ffffff;
  cursor: text;
  outline: 1px solid rgba(255, 255, 255, 0.15);
}
.filter input:focus {
  outline-color: rgba(255, 255, 255, 0.55);
}

.icon {
  width: 1em;
  height: 1em;
}

colophon-disassembly .icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
colophon-disassembly .icon circle {
  fill: currentColor;
  stroke: none;
}
colophon-disassembly input[name=base] {
  width: 12ch;
}
colophon-disassembly .label {
  margin-left: var(--indent);
  white-space: nowrap;
}
colophon-disassembly .label.offset {
  color: rgba(255, 255, 255, 0.55);
}

colophon-breakpoint-form input[name=at] {
  width: 12ch;
}
colophon-breakpoint-form input[name=label] {
  width: 16ch;
}

colophon-breakpoints .breakpoint {
  display: grid;
  grid-template-columns: var(--columns);
  gap: 0 var(--gap);
  color: rgba(255, 255, 255, 0.55);
}
colophon-breakpoints .breakpoint.hit {
  color: #ff6f5f;
}
colophon-breakpoints .breakpoint .at::before {
  content: "&";
}
colophon-breakpoints .breakpoint button {
  all: unset;
  width: 1ch;
  text-align: center;
  cursor: pointer;
}
colophon-breakpoints .breakpoint button:hover {
  color: #ffffff;
}
colophon-breakpoints .breakpoint button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.55);
}

colophon-symbols .symbol {
  display: grid;
  grid-template-columns: var(--columns);
  gap: 0 var(--gap);
  color: rgba(255, 255, 255, 0.55);
}
colophon-symbols .symbol.current {
  color: #ffffff;
}
colophon-symbols .at {
  user-select: none;
}
colophon-symbols .at::before {
  content: "&";
}

colophon-upd765 h2 {
  text-transform: none;
}
colophon-upd765 .fields + .fields {
  margin-top: 0.3rem;
}

colophon-drive .fields + .fields {
  margin-top: 0.3rem;
}

colophon-keyboard table {
  border-collapse: collapse;
}
colophon-keyboard th {
  padding: 0 0.5ch 0.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}
colophon-keyboard th[scope=row] {
  padding: 0 1ch 0 0;
  text-align: right;
}
colophon-keyboard td {
  min-width: 8ch;
}
colophon-keyboard td label {
  display: block;
  min-width: 7ch;
  padding: 0.1rem 0.5ch;
  text-align: center;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
colophon-keyboard td label:has(:checked) {
  color: #ffffff;
  background: #000000;
}
colophon-keyboard td label:has(:focus-visible) {
  outline: 1px solid rgba(255, 255, 255, 0.55);
}
colophon-keyboard td input {
  position: absolute;
  width: 0;
  opacity: 0;
}

colophon-controls .run,
colophon-tape [data-action=play] {
  display: grid;
}
colophon-controls .run span,
colophon-tape [data-action=play] span {
  grid-area: 1/1;
}

colophon-controls:not([running]) .run span + span,
colophon-controls[running] .run span:first-child,
colophon-tape:not([playing]) [data-action=play] span + span,
colophon-tape[playing] [data-action=play] span:first-child {
  visibility: hidden;
}

colophon-disc li,
colophon-tape .deck {
  display: grid;
  grid-template-columns: var(--columns);
  align-items: baseline;
  gap: 0 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

colophon-disc li[loaded] output[name=name],
colophon-tape[loaded] output[name=name] {
  color: #ffffff;
}

colophon-disc button,
colophon-tape button {
  all: unset;
  text-align: center;
  cursor: pointer;
}
colophon-disc button:hover,
colophon-tape button:hover {
  color: #ffffff;
}
colophon-disc button:focus-visible,
colophon-tape button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.55);
}
colophon-disc button:disabled,
colophon-tape button:disabled {
  opacity: 0.35;
  cursor: default;
}

colophon-disc p,
colophon-tape p {
  margin: 0.5rem 0 0;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.55);
  text-wrap: pretty;
}

colophon-disassembly p[role=status],
colophon-disc p[role=status],
colophon-tape p[role=status] {
  color: #ff6f5f;
}
colophon-disassembly p[role=status]:empty,
colophon-disc p[role=status]:empty,
colophon-tape p[role=status]:empty {
  display: none;
}

colophon-disc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
colophon-disc output[name=marks] {
  margin-right: auto;
  font-variant-numeric: tabular-nums;
}

colophon-tape progress {
  align-self: center;
  width: 100%;
  height: 0.4rem;
  accent-color: rgba(255, 255, 255, 0.55);
}
colophon-tape[playing] progress {
  accent-color: #ffffff;
}

colophon-track output {
  display: block;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
colophon-track header output {
  color: #ffffff;
}
colophon-track table {
  border-collapse: collapse;
}
colophon-track th {
  position: sticky;
  top: 0;
  background: #000000;
  font-weight: inherit;
  text-align: right;
  user-select: none;
}
colophon-track th abbr {
  text-decoration: none;
}
colophon-track th,
colophon-track td {
  padding: 0 0 0 1ch;
  text-align: right;
  color: rgba(255, 255, 255, 0.55);
}
colophon-track th:first-child,
colophon-track td:first-child {
  padding-left: 0;
}
colophon-track th:last-child,
colophon-track td:last-child {
  text-align: left;
}
colophon-track td:last-child,
colophon-track tr[aria-current] td {
  color: #ffffff;
}

colophon-controls {
  --key: 1.7rem;
  margin-right: 100%;
  display: grid;
  gap: 0.5rem;
}
colophon-controls header {
  margin-bottom: 0;
}
colophon-controls .transport,
colophon-controls .scrub {
  display: flex;
  align-items: center;
  gap: 1rem;
}
colophon-controls .step {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
colophon-controls .grains {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
colophon-controls .grains li + li button {
  border-left: 0;
}
colophon-controls .key {
  height: var(--key);
  padding: 0 0.6rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
colophon-controls .key:hover {
  color: #ffffff;
}
colophon-controls .key:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: -1px;
}
colophon-controls .key:disabled {
  color: rgba(255, 255, 255, 0.15);
  cursor: default;
}
colophon-controls .square {
  display: grid;
  place-items: center;
  width: var(--key);
  padding: 0;
}
colophon-controls [data-on] {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}
colophon-controls [data-on]:hover {
  color: #000000;
}
colophon-controls .fields {
  flex: none;
}
colophon-controls .fields output::before {
  content: none;
}
colophon-controls .fields output {
  display: inline-block;
}
colophon-controls .fields output[name=tick] {
  min-width: 9ch;
}
colophon-controls .fields output[name=frame] {
  min-width: 4ch;
}
colophon-controls .fields output[name=behind] {
  min-width: 7ch;
}
colophon-controls input[type=range] {
  flex: 1;
  min-width: 28ch;
  height: var(--key);
  appearance: none;
  background: none;
  cursor: pointer;
}
colophon-controls input[type=range]::-webkit-slider-runnable-track {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}
colophon-controls input[type=range]::-moz-range-track {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}
colophon-controls input[type=range]::-webkit-slider-thumb {
  width: 11px;
  height: 1.1rem;
  margin-top: -0.55rem;
  appearance: none;
  background: linear-gradient(90deg, transparent 4px, #ffffff 4px 7px, transparent 7px);
  border: 0;
}
colophon-controls input[type=range]::-moz-range-thumb {
  width: 11px;
  height: 1.1rem;
  background: linear-gradient(90deg, transparent 4px, #ffffff 4px 7px, transparent 7px);
  border: 0;
  border-radius: 0;
}
colophon-controls input[type=range]:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}
colophon-controls[rewound] output[name=behind] {
  color: #ffb454;
}
colophon-controls[rewound] input[type=range]::-webkit-slider-thumb {
  background: linear-gradient(90deg, transparent 4px, #ffb454 4px 7px, transparent 7px);
}
colophon-controls[rewound] input[type=range]::-moz-range-thumb {
  background: linear-gradient(90deg, transparent 4px, #ffb454 4px 7px, transparent 7px);
}

colophon-memory .fields {
  grid-template-columns: repeat(2, auto auto);
}
colophon-memory .dump {
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
colophon-memory .row {
  display: flex;
  gap: 0.75rem;
}
colophon-memory .at,
colophon-memory .text {
  color: rgba(255, 255, 255, 0.55);
  user-select: none;
}
colophon-memory .found {
  background: #ffffff;
  color: #000000;
}
colophon-memory .at::before {
  content: "&";
}
colophon-memory .bytes input {
  all: unset;
  width: 2ch;
  background: #000000;
  color: #ffffff;
  text-transform: uppercase;
}
colophon-memory .bytes input:focus {
  outline: 1px solid rgba(255, 255, 255, 0.55);
}
colophon-memory .bytes input:invalid {
  color: #ff6f5f;
}
colophon-memory .zero {
  color: rgba(255, 255, 255, 0.15);
}
colophon-memory .changed {
  color: #ffb454;
}
/*$vite$:1*/