.asmframe {
    width: 320px;
}

.asmeditor {
    width: 288px;
}

.asmeditor__textarea {
    font-size: 13pt;
}

.narrativeframe {
    width: 320px;
}

.narrativebox {
    width: 278px;
}

.editbox {
    width: 298px;
}

.editbox .button {
    width: calc(100% - 16px);
    font-size: 16px;
}

.lmcframe {
    width: 920px;
}

.controlunit {
    top: 45px;
    left: 20px;
    width: 170px;
    height: 140px;
}

.registers {
    top: 45px;
    right: 18px;
    width: 168px;
    bottom: 8px;
    height: auto;
    box-sizing: border-box;
    overflow: visible;
        font-family: monospace;
}

.cpu-section-title {
    margin: 6px 0 4px;
    font-size: 22px;
    line-height: 20px;
    text-align: center;
}

.register {
    margin: 0;
    font-size: 19px;
    line-height: 22px;
    width: 100%;
}

.register .registervalue {
    height: 20px;
    font-size: 17px;
    line-height: 20px;
    width: 100%;
}

.instructionregister {
    position: relative;
    background: var(--color-memory-background);
    border-radius: 10px;
    text-align: center;
    border: 1px var(--color-border) solid;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    font-family: "Abel", sans-serif;
    line-height: 18px;
    width: calc(100% - 16px);
    margin: 8px auto 0;
    font-size: 16px;
}

.instructionregister thead {
    background: var(--color-memory-title);
    border-bottom: 1px var(--color-border) solid;
    font-family: monospace;
    font-weight: 400;
    line-height: 18px;
    padding: 0;
    margin: 0;
}

.instructionregister td {
    border-right: 1px var(--color-border) solid;
    border-bottom: 1px var(--color-border) solid;
    line-height: 22px;
}

.instructionregister tbody tr:last-child td {
    border-bottom: none;
}

.instructionregister td:last-child {
    border-right: none;
}

.instructionregister.highlight {
    background: var(--color-memory-background);
    color: var(--color-text);
}

.instructionregister.highlight thead {
    background: var(--color-highlight);
    color: #fff;
}

.cu-address-anchor {
    left: calc(100% + 12px);
    top: 72px;
}

.flagsregister {
    position: relative;
    background: var(--color-memory-background);
    border-radius: 10px;
    text-align: center;
    border: 1px var(--color-border) solid;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    font-family: "Abel", sans-serif;
    line-height: 22px;
    width: calc(100% - 20px);
    margin: 10px auto 0;
    font-size: 17px;
}

.flagsregister thead {
    background: var(--color-memory-title);
    border-bottom: 1px var(--color-border) solid;
    font-weight: bold;
    line-height: 20px;
    font-family: monospace;
}

.flagsregister td {
    border-right: 1px var(--color-border) solid;
    border-bottom: 1px var(--color-border) solid;
}

.flagsregister tbody tr:last-child td {
    border-bottom: none;
}

.flagsregister td:last-child {
    border-right: none;
}

.flagsregister.highlight {
    background: var(--color-highlight);
    color: var(--color-highlight-text);
}

.addressbus {
    left: -65px;
    top: 70px;
    z-index: 900;
}

.addressbus-anchor-right {
    left: 12px;
}

.addressbus-anchor-left {
    left: calc(100% - 12px);
}

.databus {
    width: 80px;
    left: -70px;
    top: 195px;
    z-index: 900;
}

.databus-anchor-right {
    left: 12px;
}

.databus-anchor-left {
    left: calc(100% - 12px);
}

.controlbus {
    width: 255px;
    left: -85px;
    top: -1px;
    z-index: 900;
    font-family: monospace;
        font-size: 13px;
    font-weight: bold;
    line-height: 40px;
    padding-left: 0;
    text-align: center;
}

.alu {
    top: 210px;
    left: 20px;
    width: 170px;
    height: 115px;
    line-height: normal;
}

.registertable {
    width: calc( 100% - 20px );
    border-collapse: separate;
    border-spacing: 0 0.15em;
    table-layout: fixed;
    font-family: "Abel", sans-serif;
    margin-top: 2px;
    margin-left: 10px;
    margin-right: 10px;
}

.registertable td {
    padding: 0;
    vertical-align: middle;
}

.gap {
    position: relative;
    height: 30px;
    overflow: visible;
}

.registername {
    position: relative;
    width: 44px;
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 0 8px !important;
    background: var(--color-memory-title);
    border: 1px solid var(--color-border);
    border-radius: 8px 0 0 8px;
    height: 22px;
    line-height: 22px;
}

.register-anchor {
    left: -20px;
    top: 7px;
}

.registerrow {
    position: relative;
    background: var(--color-memory-background);
    border: 1px solid var(--color-border);
    border-radius: 0 8px 8px 0;
    overflow: visible;
    margin-left: -1px;
}

.registertable tr:has(.registerrow.highlight) .registername {
    background: var(--color-highlight);
    color: #fff;
}

.registerrow.highlight {
    background: var(--color-memory-background);
    color: var(--color-text);
}

.registerrow .registervalue {
    background: transparent;
    border-radius: 0 8px 8px 0;
    border-top: none;
    height: 22px;
    line-height: 22px;
    font-size: 15px;
    padding: 0 8px;
    box-sizing: border-box;
}

.fde {
    left: 20px;
    bottom: 20px;
    width: 170px;
    height: 140px;
}

.ramframe {
    width: 480px;
}

.rambox {
    width: 458px;
}

.ram-asmeditor {
    grid-template-columns: calc(10% - 3px) calc(10% - 3px) calc(10% - 3px) calc(10% - 3px) calc(10% - 3px) calc(10% - 3px) calc(10% - 3px) calc(10% - 3px) calc(10% - 3px) calc(10% - 3px);
    column-gap: 3px;
}

.ram-address {
    font-size: 15px;
}

.ram-address .ram-value {
    font-size: 12px;
}

.controlbox {
    width: 458px;
}

.pie {
    margin-top: 4px;
    margin-left: 18px;
    width: 130px;
}

.data {
    width: 60px;
}
