/* Shared Assembly Game Component Styles */
/* This file should be included by all assembly games for consistency */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Monaco', 'Courier New', monospace;
    background: #1a1a2e;
    color: #eee;
    padding: 5px;
    overflow: hidden;
    height: 100vh;
}

/* Header Component */
header {
    background: #16213e;
    padding: 5px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
    flex-shrink: 0;
}

h1 {
    color: #00d9ff;
    font-size: 1.1em;
    margin: 0;
}

.subtitle {
    display: none;
}

/* Sidebar Component */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: fixed;
    left: 5px;
    top: 50px;
    width: 120px;
    z-index: 10;
}

.sidebar button {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    background: #00d9ff;
    color: #1a1a2e;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.75em;
    transition: background 0.2s;
}

.sidebar button:hover {
    background: #00b8d4;
}

.sidebar .sidebar-link,
.wizard-buttons .sidebar-link {
    display: block;
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    background: #2a3a5e;
    color: #00d9ff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.75em;
    transition: background 0.2s;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.sidebar .sidebar-link:hover,
.wizard-buttons .sidebar-link:hover {
    background: #3a4a7e;
    color: #fff;
}

.ext-icon {
    font-size: 0.7em;
    opacity: 0.6;
}

/* Generic Panel Styling */
.panel {
    background: #16213e;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-title {
    color: #7fd8ff;
    font-size: 1.3em;
    margin-bottom: 4px;
    border-bottom: 1px solid #7fd8ff;
    padding-bottom: 2px;
    flex-shrink: 0;
}

.panel-title-example {
    color: #ffd700;
    font-style: italic;
}

/* Button Styles */
button {
    background: #00d9ff;
    color: #1a1a2e;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #00b8d9;
}

button:disabled {
    background: #555;
    cursor: not-allowed;
}

button.stop-btn {
    background: #ff4444;
    color: white;
}

button.stop-btn:hover {
    background: #cc3333;
}

/* Tooltips: data-tooltip attribute, positioned by JS in index.html */
[data-tooltip]:hover {
    outline: 1px solid #00d9ff88;
}

/* Info text for stopped execution */
.info-text {
    color: #00d9ff;
    font-weight: bold;
}

/* ProgramArea Component */
.program-area {
    background: #16213e;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
    padding: 8px;
    background: #111122;
    border-radius: 5px;
    margin-top: 8px;
    margin-bottom: 8px;
}

#programEditor {
    width: 100%;
    background: #0a0a1a;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 3px;
    padding: 8px;
    font-family: 'Monaco', monospace;
    font-size: 1.3em;
    resize: none;
    flex: 1.2;
    min-height: 150px;
}

#assemblyOutput {
    background: #0a0a1a;
    padding: 8px;
    border-radius: 3px;
    font-family: 'Monaco', monospace;
    font-size: 1.3em;
    flex: 1;
    overflow-y: auto;
    display: none;
    min-height: 100px;
}

#assemblyOutput.visible {
    display: block;
}

.assembly-line {
    margin-bottom: 3px;
    display: flex;
    gap: 15px;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.assembly-line.current {
    background: #1a5f5f;
    border-left: 3px solid #00d9ff;
    padding-left: 8px;
}

/* RegisterPanel Component */
.registers-panel {
    flex-shrink: 0;
    background: #111122;
    border-radius: 5px;
    padding: 6px;
    display: flex;
    flex-direction: column;
}

.registers-container {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 24px;
    flex: 1;
    overflow-y: auto;
    align-content: start;
    min-height: 0;
}

.register {
    background: #0a0a1a;
    padding: 4px 6px;
    border-radius: 3px;
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 1.3em;
    transition: background-color 0.3s ease;
}

.register.changed {
    background: #1a4f1a;
    border: 1px solid #4f4;
}

.register-label {
    color: #7fd8ff;
    font-weight: bold;
}

.register-value {
    color: #e0e0e0;
    font-family: 'Monaco', monospace;
}

.register-value.changed {
    color: #4f4;
    background: #1a4f1a;
    padding: 2px 4px;
    border-radius: 3px;
}

.register-legend {
    background: #0a0a1a;
    padding: 4px 6px;
    border-radius: 3px;
    font-size: 1.1em;
    color: #ccc;
    border-left: 2px solid #7fd8ff;
    min-width: 250px;
    flex-shrink: 0;
    white-space: nowrap;
}

.legend-title {
    color: #00d9ff;
    font-weight: bold;
    margin-bottom: 1px;
}

.legend-item {
    margin-bottom: 1px;
    display: flex;
    justify-content: space-between;
}

.legend-label {
    color: #00d9ff;
}

.legend-value {
    color: #0f0;
    font-weight: bold;
}

.legend-value.changed {
    background: #1a5f1a;
    padding: 1px 3px;
    border-radius: 2px;
}

/* MemoryViewer Component */
.memory-panel {
    flex-shrink: 0;
    background: #111122;
    border-radius: 5px;
    padding: 6px;
    display: flex;
    flex-direction: column;
}

.memory-viewer {
    background: #0a0a1a;
    padding: 4px;
    border-radius: 3px;
    overflow-y: auto;
    flex: 1;
    font-family: 'Monaco', monospace;
    font-size: 1.25em;
    min-height: 0;
}

.memory-row {
    display: flex;
    gap: 4px;
    margin-bottom: 2px;
}

.memory-address {
    color: #999;
    min-width: 55px;
}

.memory-byte {
    display: inline-block;
    margin-right: 1px;
    color: #d0d0d0;
}

.memory-byte.pc-highlight {
    background: #ffc107;
    color: #1a1a2e;
    font-weight: bold;
}

.memory-byte.changed {
    background: #ff9800;
    color: #1a1a2e;
    font-weight: bold;
    border: 1px solid #ff5722;
}

/* Word-based memory viewer (for word-addressable machines like IBM 1130) */
.memory-word {
    display: inline-block;
    margin-right: 6px;
    color: #0f0;
    padding: 2px 4px;
}

.memory-word.pc-highlight {
    background: #ffc107;
    color: #1a1a2e;
    font-weight: bold;
    border-radius: 3px;
}

.memory-word.changed {
    background: #ff9800;
    color: #1a1a2e;
    font-weight: bold;
    border: 1px solid #ff5722;
    border-radius: 3px;
}

/* IBM 1130 special memory locations */
.memory-word.trap {
    background: #b71c1c;
    color: #ffcdd2;
    font-weight: bold;
    border-radius: 3px;
    border: 1px solid #d32f2f;
    cursor: help;
}

.memory-word.index-reg {
    background: #1565c0;
    color: #bbdefb;
    font-weight: bold;
    border-radius: 3px;
    cursor: help;
}

.memory-word.interrupt {
    background: #4a148c;
    color: #ce93d8;
    font-style: italic;
    border-radius: 3px;
    cursor: help;
}

/* CPU Status */
.cpu-status {
    background: #111122;
    padding: 6px 8px;
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
}

.status-left, .status-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.status-item {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 1.2em;
}

.status-label {
    color: #999;
}

.status-value {
    color: #e0e0e0;
}

.status-value.condition-set {
    color: #ffcc00;
    font-weight: bold;
}

/* Compact I/O Bar */
.io-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #111122;
    padding: 6px 10px;
    border-radius: 5px;
    flex-wrap: wrap;
}

.io-bar-label {
    color: #999;
    font-size: 0.8em;
    white-space: nowrap;
}

.io-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.io-bar-name {
    color: #bbb;
    font-size: 0.8em;
}

.io-bar-status {
    color: #e0e0e0;
    font-size: 0.8em;
    font-family: 'Monaco', monospace;
}

.io-bar .led {
    width: 44px;
    height: 22px;
    border-radius: 11px;
    font-size: 0.75em;
}

.io-button {
    background: linear-gradient(to bottom, #444, #222);
    color: #ccc;
    border: 2px solid #555;
    border-radius: 4px;
    padding: 4px 12px;
    font-family: 'Monaco', monospace;
    font-size: 0.85em;
    cursor: pointer;
    user-select: none;
}

.io-button:hover {
    background: linear-gradient(to bottom, #555, #333);
    border-color: #00d9ff;
    color: #fff;
}

.io-button:active {
    background: linear-gradient(to bottom, #00d9ff, #0099cc);
    color: #fff;
    transform: scale(0.95);
}

/* Modal Component */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #16213e;
    border: 2px solid #00d9ff;
    border-radius: 10px;
    font-size: 1.15em;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
    margin: 5% auto;
    padding: 20px;
    overflow-y: auto;
    color: #eee;
}

.modal-title {
    color: #00d9ff;
    margin-bottom: 15px;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
}

.modal-body h4 {
    color: #00d9ff;
    margin-top: 20px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #2a3a5e;
}

.modal-body h4:first-child {
    margin-top: 8px;
}

.modal-body pre {
    background: #0d1b2a;
    border: 1px solid #2a3a5e;
    border-radius: 4px;
    padding: 10px 12px;
    margin: 8px 0 12px 0;
    font-size: 0.9em;
    overflow-x: auto;
}

.modal-body table {
    border-collapse: collapse;
    margin: 8px 0 12px 0;
    width: 100%;
}

.modal-body td, .modal-body th {
    padding: 5px 10px;
    border: 1px solid #2a3a5e;
    text-align: left;
}

.modal-body th {
    background: #1a2a4e;
    color: #00d9ff;
}

.modal-body tr:nth-child(even) {
    background: #0d1b2a;
}

.modal-body code {
    background: #0d1b2a;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.95em;
}

.modal-body p {
    margin: 6px 0;
    line-height: 1.5;
}

.modal-body ul, .modal-body ol {
    margin: 6px 0 12px 0;
    padding-left: 24px;
}

.modal-body li {
    margin: 4px 0;
    line-height: 1.5;
}

.modal-close {
    color: #00d9ff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #00b8d4;
}

/* Modal Content Styling */
code {
    background: #0f3460;
    padding: 2px 5px;
    border-radius: 3px;
    color: #0f0;
}

pre {
    background: #0f3460;
    padding: 10px;
    border-radius: 3px;
    overflow-x: auto;
    margin: 10px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 0.9em;
}

table th, table td {
    border: 1px solid #00d9ff;
    padding: 8px;
    text-align: left;
}

table th {
    background: #0f3460;
    color: #00d9ff;
}

table td {
    background: #1a1a2e;
}

/* Example and Challenge Items */
.example-item, .challenge-item {
    background: #0f3460;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid #00d9ff;
}

.example-item:hover, .challenge-item:hover {
    background: #1a5f7a;
    border-color: #00ffff;
}

.example-item h4, .challenge-item h4 {
    color: #00d9ff;
    margin-bottom: 5px;
}

.example-item p, .challenge-item p {
    color: #aaa;
    font-size: 0.85em;
    margin: 0;
}

/* Challenge Banner */
.challenge-banner {
    position: fixed;
    top: 8px;
    right: 120px; /* Move left to avoid GitHub corner link */
    background: #1565c0;
    color: white;
    padding: 6px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85em;
}

.challenge-info {
    flex: 1;
}

.check-solution-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.check-solution-btn:hover {
    background: #45a049;
}

/* Success Banner */
.success-banner {
    position: fixed;
    top: 50px;
    right: 10px;
    background: #4caf50;
    color: white;
    padding: 8px 15px;
    padding-right: 45px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85em;
}

/* Warning Banner */
.warning-banner {
    position: fixed;
    top: 50px;
    right: 10px;
    background: #ff9800;
    color: white;
    padding: 8px 15px;
    padding-right: 45px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85em;
}

/* Error Banner */
.error-banner {
    position: fixed;
    top: 50px;
    right: 10px;
    background: #d32f2f;
    color: white;
    padding: 8px 15px;
    padding-right: 45px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85em;
}

.banner-content {
    flex: 1;
    line-height: 1.4;
}

.dismiss-btn {
    background: transparent;
    color: white;
    border: none;
    font-size: 24px;
    padding: 0;
    width: 30px;
    height: 30px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.dismiss-btn:hover {
    opacity: 1;
    background: transparent;
}

/* Right Panels Container */
.right-panels {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.asm-debug-section {
    background: #111122;
    padding: 8px;
    border-radius: 4px;
}

.asm-debug-section h4 {
    color: #c792ea;
    font-size: 0.85em;
    margin-bottom: 6px;
}

/* I/O Panel (LEDs and Switches) */
.io-panel {
    background: #16213e;
    border-radius: 5px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.io-panel h3 {
    color: #00d9ff;
    font-size: 0.75em;
    margin: 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #00d9ff;
}

.io-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.io-label {
    color: #bbb;
    font-size: 0.8em;
}

.led-row, .switch-row {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.led {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65em;
    font-weight: bold;
    transition: all 0.15s ease;
    border: 2px solid #333;
}

.led-off {
    background: #333;
    color: #666;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.led-on {
    background: radial-gradient(circle at 30% 30%, #ff5555, #ff0000, #cc0000);
    color: #fff;
    box-shadow: 0 0 15px #ff0000, 0 0 30px rgba(255,0,0,0.5);
    border-color: #ff3333;
}

.switch {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s ease;
    border: 2px solid #333;
    user-select: none;
}

.switch-off {
    background: linear-gradient(to bottom, #444, #222);
    color: #888;
}

.switch-on {
    background: linear-gradient(to bottom, #00d9ff, #0099cc);
    color: #fff;
    border-color: #00d9ff;
    box-shadow: 0 0 8px rgba(0,217,255,0.5);
}

.switch:hover {
    transform: scale(1.1);
}

.switch:active {
    transform: scale(0.95);
}

/* Large single button/LED for hardware-accurate mode */
.led-large {
    width: 50px;
    height: 50px;
    font-size: 0.9em;
}

.switch-large {
    width: 50px;
    height: 50px;
    font-size: 0.9em;
}

.io-values {
    font-size: 0.85em;
    color: #e0e0e0;
    text-align: center;
    font-family: 'Monaco', monospace;
}

/* =============================================================================
   Tab Bar Component
   ============================================================================= */

.tab-bar {
    display: flex;
    gap: 2px;
    background: #0f3460;
    padding: 4px;
    border-radius: 5px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.tab-bar .tab {
    padding: 6px 16px;
    background: transparent;
    color: #888;
    border: none;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-bar .tab:hover {
    color: #00d9ff;
    background: rgba(0, 217, 255, 0.1);
}

.tab-bar .tab.active {
    background: #00d9ff;
    color: #1a1a2e;
}

/* Header with tabs */
header {
    display: flex;
    align-items: center;
    position: relative;
}

header h1 {
    margin: 0;
}

/* =============================================================================
   Collapsible Component
   ============================================================================= */

.collapsible {
    background: #111122;
    border-radius: 5px;
    margin-bottom: 8px;
    border: 1px solid #222;
}

.collapsible-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.collapsible-header:hover {
    background: rgba(0, 217, 255, 0.1);
}

.collapsible-arrow {
    color: #00d9ff;
    margin-right: 10px;
    font-size: 0.8em;
    width: 12px;
}

.collapsible-title {
    color: #7fd8ff;
    font-weight: bold;
    font-size: 0.9em;
    flex: 1;
}

.collapsible-badge {
    background: #0f3460;
    color: #888;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7em;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapsible-content.open {
    max-height: 2000px;
    padding: 0 12px 12px 12px;
}

/* =============================================================================
   Rust Pipeline Component
   ============================================================================= */

.rust-pipeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    overflow-y: auto;
    flex: 1;
}

.pipeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #16213e;
    border-radius: 5px;
}

.pipeline-header label {
    color: #888;
    font-size: 0.85em;
}

.pipeline-header select {
    flex: 1;
    padding: 8px;
    background: #0f3460;
    color: #eee;
    border: 1px solid #00d9ff;
    border-radius: 3px;
    font-size: 0.85em;
}

.run-pipeline-btn {
    background: #4caf50;
    color: white;
    padding: 8px 20px;
    font-size: 0.85em;
}

.run-pipeline-btn:hover {
    background: #45a049;
}

.run-pipeline-btn:disabled {
    background: #555;
}

.pipeline-stage {
    background: #16213e;
    border-radius: 5px;
    padding: 12px;
}

.pipeline-stage h3 {
    color: #00d9ff;
    font-size: 0.85em;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #0f3460;
}

.code-block {
    background: #0f3460;
    padding: 12px;
    border-radius: 3px;
    font-family: 'Monaco', monospace;
    font-size: 0.75em;
    overflow-x: auto;
    white-space: pre;
    max-height: 300px;
    overflow-y: auto;
}

.rust-code {
    color: #f8a5c2;
}

.asm-code {
    color: #0f0;
}

.hex-dump {
    color: #888;
}

.listing {
    color: #0f0;
}

.execution-panel {
    border: 2px solid #00d9ff;
}

.execution-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.led-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.led-label {
    color: #888;
    font-size: 0.85em;
}

.led-value {
    color: #0f0;
    font-family: 'Monaco', monospace;
    font-size: 0.85em;
}

.cycle-count {
    color: #888;
    font-size: 0.85em;
}

.pipeline-note {
    text-align: center;
    color: #666;
    font-size: 0.75em;
    padding: 10px;
}

/* Execution controls */
.execution-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #0f3460;
}

.load-btn, .step-btn, .run-btn, .reset-btn {
    padding: 6px 16px;
    font-size: 0.8em;
    font-weight: bold;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.load-btn {
    background: #0f3460;
    color: #00d9ff;
    border: 1px solid #00d9ff;
}

.load-btn:hover:not(:disabled) {
    background: #00d9ff;
    color: #1a1a2e;
}

.step-btn {
    background: #2196f3;
    color: white;
}

.step-btn:hover:not(:disabled) {
    background: #1976d2;
}

.run-btn {
    background: #4caf50;
    color: white;
}

.run-btn:hover:not(:disabled) {
    background: #45a049;
}

.reset-btn {
    background: #ff5722;
    color: white;
}

.reset-btn:hover:not(:disabled) {
    background: #e64a19;
}

.load-btn:disabled, .step-btn:disabled, .run-btn:disabled, .reset-btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    border-color: #555;
}

.status-halted {
    color: #ff5722;
    font-weight: bold;
    font-size: 0.85em;
    margin-left: auto;
}

/* Current instruction display */
.current-instruction {
    background: #0f3460;
    padding: 8px 12px;
    border-radius: 3px;
    margin-bottom: 12px;
    font-family: 'Monaco', monospace;
    font-size: 0.8em;
}

.current-instruction .label {
    color: #888;
}

.current-instruction code {
    color: #0f0;
}

/* Assembly listing with highlighting */
.assembly-listing {
    background: #0f3460;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 12px;
}

.assembly-listing h4 {
    color: #00d9ff;
    font-size: 0.8em;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #16213e;
}

.listing-scroll {
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Monaco', monospace;
    font-size: 0.75em;
}

.asm-line {
    padding: 2px 8px;
    color: #0f0;
    white-space: pre;
}

.asm-line.current-line {
    background: #00d9ff;
    color: #1a1a2e;
    font-weight: bold;
    border-radius: 2px;
}

/* Two-column execution state */
.execution-state {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Registers panel (later override for content padding) */
.registers-panel {
    background: #111122;
    padding: 8px;
    border-radius: 5px;
}

.registers-panel h4 {
    color: #7fd8ff;
    font-size: 0.9em;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
}

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.register-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    background: #0a0a1a;
    border-radius: 3px;
}

.reg-name {
    color: #7fd8ff;
    font-weight: bold;
    font-size: 1.05em;
}

.reg-value {
    color: #fff;
    font-family: 'Monaco', monospace;
    font-size: 1.05em;
}

/* I/O panel */
.io-panel {
    background: #111122;
    padding: 12px;
    border-radius: 5px;
}

.io-panel h4 {
    color: #7fd8ff;
    font-size: 0.9em;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
}

/* I2C panel placeholder */
.i2c-panel {
    margin-top: 12px;
    padding: 8px;
    background: #16213e;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.i2c-label {
    color: #888;
    font-size: 0.8em;
}

.i2c-status {
    color: #666;
    font-size: 0.75em;
    font-style: italic;
}

/* Memory dump */
.memory-dump {
    color: #888;
    font-size: 0.7em;
}

/* WASM disassembly */
.wasm-disasm {
    color: #f39c12;
}

/* =============================================================================
   Tab Content Areas
   ============================================================================= */

.tab-content {
    display: none;
    flex: 1;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Assembler tab uses existing main-content layout */
.assembler-tab {
    display: grid;
    grid-template-columns: 1.6fr 0.4fr;
    gap: 8px;
    flex: 1;
    overflow: hidden;
}

/* Rust tab uses full width */
.rust-tab {
    flex: 1;
    overflow: hidden;
}

/* Hidden elements */
.hidden {
    display: none !important;
}

/* Rust tab content wrapper */
.rust-tab-content {
    flex: 1;
    overflow: hidden;
    margin-left: 110px; /* Space for fixed sidebar */
    display: flex;
    flex-direction: column;
}

/* Full-width mode for Rust wizard - no margin for sidebar */
.rust-tab-content.full-width {
    margin-left: 0;
}

.rust-tab-content.hidden {
    display: none;
}

/* =============================================================================
   Rust Pipeline Wizard Layout - 3-Column Design
   ============================================================================= */

.rust-wizard-layout {
    display: grid;
    grid-template-columns: 120px 160px 1fr;
    height: 100%;
    overflow: hidden;
}

/* Column 1: Sidebar with buttons and peripherals */
.wizard-sidebar {
    display: flex;
    flex-direction: column;
    padding: 6px;
    background: #1a1a2e;
    border-right: 1px solid #3d2e6b;
}

.wizard-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wizard-buttons button {
    width: 100%;
    padding: 8px;
    background: #2d1f4e;
    color: #c792ea;
    border: 1px solid #3d2e6b;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.75em;
    transition: all 0.2s;
}

.wizard-buttons button:hover {
    background: #3d2e6b;
    border-color: #c792ea;
}

.wizard-peripherals {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #3d2e6b;
}

.peripheral-section {
    margin-bottom: 16px;
}

.peripheral-label {
    color: #c792ea;
    font-size: 0.75em;
    font-weight: bold;
    margin-bottom: 8px;
}

.led-row-vertical {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.led-hex {
    text-align: center;
    color: #0f0;
    font-family: 'Monaco', monospace;
    font-size: 0.75em;
    margin-top: 6px;
}

.switch-row-vertical {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.switch-hex {
    text-align: center;
    color: #0ff;
    font-family: 'Monaco', monospace;
    font-size: 0.75em;
    margin-top: 6px;
}

.peripheral-status {
    color: #666;
    font-size: 0.7em;
    font-style: italic;
}

/* Column 2: Wizard steps */
.wizard-steps {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: #1e1836;
    border-right: 1px solid #3d2e6b;
}

.wizard-header-space {
    height: 12px;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 4px;
    cursor: default;
    transition: all 0.2s;
}

.wizard-step.active {
    background: #2d1f4e;
    border: 1px solid #c792ea;
}

.wizard-step.completed {
    cursor: pointer;
}

.wizard-step.completed:hover {
    background: rgba(199, 146, 234, 0.1);
}

.wizard-step.completed .step-indicator {
    color: #4caf50;
}

.wizard-step.disabled {
    opacity: 0.4;
}

.step-indicator {
    font-size: 1em;
    width: 20px;
    text-align: center;
    color: #c792ea;
}

.step-label {
    color: #eee;
    font-size: 0.85em;
}

.wizard-action-btn {
    margin-top: 16px;
    padding: 10px 16px;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
    animation: wizard-btn-glow 1.5s ease-in-out infinite;
}

@keyframes wizard-btn-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(167, 139, 250, 0.7), 0 0 20px rgba(124, 58, 237, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(167, 139, 250, 1), 0 0 50px rgba(124, 58, 237, 0.9), 0 0 80px rgba(124, 58, 237, 0.6);
        transform: scale(1.03);
    }
}

.wizard-action-btn:hover {
    background: #6d28d9;
    /* Keep animation running on hover */
}

.wizard-spacer {
    flex: 1;
}

.wizard-exit-btn {
    margin-top: 8px;
    padding: 8px 12px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.wizard-exit-btn:hover {
    background: #4b5563;
}

/* Column 3: Notebook cells */
.notebook-cells {
    overflow-y: auto;
    padding: 12px;
    padding-bottom: calc(100vh - 150px); /* Allow any cell to scroll to top */
    scroll-behavior: smooth;
    background: #1a1a2e;
}

.editor-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

/* Toolbar above editor for Examples/Challenges buttons */
.editor-toolbar {
    display: flex;
    gap: 8px;
    padding: 4px 0;
}

.wizard-header-btn {
    padding: 4px 8px;
    text-align: center;
}

.toolbar-btn {
    background: #1e1836;
    color: #c792ea;
    border: 1px solid #3d2e6b;
    border-radius: 4px;
    padding: 5px 14px;
    font-size: 0.85em;
    font-weight: bold;
    cursor: pointer;
}

.toolbar-btn:hover {
    background: #2d1f4e;
    border-color: #7c3aed;
}

/* Notebook placeholder when no example loaded */
.notebook-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #1e1836;
    border-radius: 5px;
    border: 2px dashed #3d2e6b;
    color: #888;
    font-size: 1em;
}

.notebook-cell {
    background: #1e1836;
    border-radius: 5px;
    margin-bottom: 12px;
    border: 1px solid #3d2e6b;
}

/* Debug cell needs visible overflow for native <select> dropdowns */
.notebook-cell:not(.notebook-cell-debug) {
    overflow: hidden;
}

.notebook-cell.collapsed {
    display: none;
}

.notebook-cell.minimized {
    max-height: 50px;
}

.cell-header {
    padding: 10px 12px;
    background: #2d1f4e;
    color: #ffd700;
    font-weight: bold;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cell-header-example {
    font-weight: bold;
    font-size: 0.95em;
    color: #ffd700;
    font-style: italic;
}

.cell-badge {
    background: #3d2e6b;
    color: #888;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: normal;
}

.cell-content {
    padding: 12px;
}

/* Code blocks in notebook cells - purple theme */
.rust-wizard-layout .code-block {
    background: #12101f;
    border: 1px solid #3d2e6b;
    font-size: 1.1em;
    max-height: none;
}

.rust-wizard-layout .rust-code {
    color: #f8a5c2;
}

.rust-wizard-layout .asm-code {
    color: #a5d6a7;
}

.rust-wizard-layout .hex-dump {
    color: #888;
}

.rust-wizard-layout .wasm-disasm {
    color: #ffcc80;
}

/* Debug panel - horizontal split */
.debug-panel {
    display: flex;
    flex-direction: column;
}

.debug-controls {
    padding: 12px;
    border-bottom: 1px solid #3d2e6b;
    display: flex;
    gap: 8px;
    align-items: center;
}

.debug-controls-label {
    font-size: 0.85em;
    font-weight: bold;
    color: #a78bfa;
    margin-right: 2px;
}

.speed-label {
    font-size: 0.8em;
    color: #a78bfa;
    margin-left: 8px;
}

.speed-slider {
    width: 90px;
    cursor: pointer;
    accent-color: #7c3aed;
}

.speed-value {
    font-size: 0.75em;
    color: #888;
    min-width: 45px;
}

.debug-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
}

.debug-content.debug-content-single {
    grid-template-columns: 1fr;
}

.debug-left, .debug-right {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevent grid blowout */
}

.debug-left h4, .debug-right h4 {
    color: #c792ea;
    font-size: 0.8em;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #3d2e6b;
}

.debug-left .listing-scroll {
    position: relative; /* Required for offsetTop calculation in auto-scroll */
    background: #12101f;
    border-radius: 3px;
    padding: 8px;
    min-height: 600px;
    max-height: 750px;
    overflow-y: auto;
}

/* Ensure listing scroll container doesn't cause parent scroll */
.debug-left {
    overflow: hidden;
}

/* Make the debug cell taller to fill viewport */
.notebook-cell-debug .debug-panel {
    min-height: 850px;
}

.notebook-cell-debug .debug-content {
    min-height: 780px;
}

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2px;
    column-gap: 1px;
    background: #12101f;
    padding: 4px;
    border-radius: 3px;
}

.register-entry {
    display: flex;
    gap: 6px;
    padding: 2px 4px;
    background: #1e1836;
    border-radius: 2px;
    border-left: 1px solid #3d2e6b;
}

/* No left border on first column */
.register-entry:nth-child(3n+1) {
    border-left: none;
}

.register-entry .reg-name {
    color: #c792ea;
    font-weight: bold;
    font-size: 1.05em;
}

.register-entry .reg-value {
    color: #fff;
    font-family: 'Monaco', monospace;
    font-size: 1.05em;
}

/* Heat map: hot (just changed) = red, warm (changed last step) = blue */
.register-entry.hot {
    background: rgba(255, 80, 80, 0.5);
    border-left: 3px solid #ff4444;
}

.register-entry.hot .reg-value {
    color: #ff8888;
    font-weight: bold;
}

.register-entry.warm {
    background: rgba(100, 149, 237, 0.3);
    border-left: 3px solid #6495ed;
}

.register-entry.warm .reg-value {
    color: #87ceeb;
}

.emu-status-line {
    margin-top: 8px;
    padding: 6px 8px;
    background: #12101f;
    border-radius: 3px;
    font-size: 0.75em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.emu-status-line .instruction-count {
    color: #888;
}

.debug-io {
    margin-top: 8px;
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 6px 8px;
    background: #12101f;
    border-radius: 3px;
}

.peripheral-section-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.io-inline-status {
    font-size: 0.8em;
    color: #aaa;
    font-family: 'Monaco', monospace;
}

.uart-panel {
    margin-left: 12px;
    padding: 4px 8px;
    background: #0a0a1a;
    border: 1px solid #333;
    border-radius: 3px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.uart-panel-row {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.uart-label {
    font-size: 0.75em;
    color: #888;
    font-family: 'Monaco', monospace;
    min-width: 24px;
}

.uart-input {
    font-size: 0.85em;
    font-family: 'Monaco', monospace;
    background: #1a1a2e;
    border: 1px solid #444;
    border-radius: 2px;
    color: #0ff;
    padding: 1px 4px;
    width: 160px;
    outline: none;
    caret-color: #0ff;
}

.uart-input:focus {
    border-color: #0ff;
    box-shadow: 0 0 4px rgba(0, 255, 255, 0.3);
}

.uart-input::placeholder {
    color: #555;
    font-style: italic;
}

.uart-output {
    font-size: 0.85em;
    color: #0f0;
    font-family: 'Monaco', monospace;
    white-space: pre;
}

.uart-clear-btn {
    background: none;
    border: 1px solid #555;
    color: #aaa;
    font-size: 0.85em;
    padding: 0 4px;
    margin-left: 6px;
    cursor: pointer;
    border-radius: 3px;
    line-height: 1;
}

.uart-clear-btn:hover {
    color: #fff;
    border-color: #888;
}

.trace-section {
    margin-top: 12px;
    border: 1px solid #333;
    border-radius: 3px;
    background: #0a0a1a;
}

.trace-header {
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.8em;
    color: #a78bfa;
    font-weight: bold;
    display: flex;
    gap: 6px;
    align-items: center;
}

.trace-header:hover {
    background: #1a1a2e;
}

.trace-toggle {
    font-size: 0.7em;
}

.trace-content {
    padding: 8px 10px;
    font-family: 'Monaco', monospace;
    font-size: 0.95em;
    color: #a5d6a7;
    background: #12101f;
    border-top: 1px solid #333;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre;
    margin: 0;
}

.memory-section {
    margin-top: 12px;
}

.memory-section h4 {
    color: #c792ea;
    font-size: 0.75em;
    margin-bottom: 6px;
}

.memory-dump-compact {
    background: #12101f;
    padding: 8px;
    border-radius: 3px;
    font-family: 'Monaco', monospace;
    font-size: 0.95em;
    color: #888;
    max-height: 250px;
    overflow-y: auto;
    margin: 0;
}

.memory-dump-compact .memory-row {
    white-space: nowrap;
    line-height: 1.4;
}

.memory-zero-block {
    font-style: italic;
}

.memory-zero-block .memory-addr {
    color: #ccaa00;
}

.memory-zero-block .mem-byte {
    color: #ccaa00;
    width: auto;
}

.memory-dump-compact .memory-addr {
    color: #aaa;
}

.memory-dump-compact .mem-byte {
    display: inline-block;
    width: 2.2em;
    text-align: center;
    margin: 0 1px;
    border-radius: 2px;
    color: #fff;
}

/* Memory heat map: hot = red, warm = blue */
.memory-dump-compact .mem-byte.hot {
    background: #ff4444;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 6px rgba(255, 68, 68, 0.8);
}

.memory-dump-compact .mem-byte.warm {
    background: #4488ff;
    color: #fff;
    box-shadow: 0 0 4px rgba(68, 136, 255, 0.6);
}

/* Purple-themed buttons in wizard */
.rust-wizard-layout .load-btn {
    background: #2d1f4e;
    color: #c792ea;
    border: 1px solid #3d2e6b;
}

.rust-wizard-layout .load-btn:hover:not(:disabled) {
    background: #c792ea;
    color: #1e1836;
}

.rust-wizard-layout .step-btn {
    background: #7c3aed;
    color: white;
    animation: step-btn-glow 3s ease-in-out infinite;
}

@keyframes step-btn-glow {
    0%, 45%, 100% {
        box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
        transform: scale(1);
    }
    20% {
        box-shadow: 0 0 20px rgba(167, 139, 250, 1), 0 0 40px rgba(124, 58, 237, 0.8);
        transform: scale(1.02);
    }
}

.rust-wizard-layout .step-btn:hover:not(:disabled) {
    background: #6d28d9;
}

.rust-wizard-layout .step-btn:disabled {
    animation: none;
}

.rust-wizard-layout .step-count-select {
    background: #1e1e2e;
    color: #e0e0e0;
    border: 1px solid #7c3aed;
    border-radius: 3px;
    padding: 5px 4px;
    font-size: 0.8em;
    font-weight: bold;
    cursor: pointer;
}

.rust-wizard-layout .step-count-select:disabled {
    border-color: #555;
    color: #888;
    cursor: not-allowed;
}

.rust-wizard-layout .run-btn {
    background: #059669;
    color: white;
    animation: run-btn-glow 3s ease-in-out infinite;
    animation-delay: 1.5s; /* Offset from step button */
}

@keyframes run-btn-glow {
    0%, 45%, 100% {
        box-shadow: 0 0 8px rgba(5, 150, 105, 0.5);
        transform: scale(1);
    }
    20% {
        box-shadow: 0 0 20px rgba(52, 211, 153, 1), 0 0 40px rgba(5, 150, 105, 0.8);
        transform: scale(1.02);
    }
}

.rust-wizard-layout .run-btn:disabled {
    animation: none;
}

.rust-wizard-layout .run-btn:hover:not(:disabled) {
    background: #047857;
}

.rust-wizard-layout .reset-btn {
    background: #dc2626;
    color: white;
}

.rust-wizard-layout .reset-btn:hover:not(:disabled) {
    background: #b91c1c;
}

.rust-wizard-layout .emu-state {
    font-weight: bold;
    font-size: 0.85em;
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 3px;
}

.rust-wizard-layout .emu-ready {
    color: #9ca3af;
}

.rust-wizard-layout .emu-running {
    color: #22c55e;
}

.rust-wizard-layout .emu-paused {
    color: #eab308;
}

.rust-wizard-layout .emu-halted {
    color: #dc2626;
}

.rust-wizard-layout .listing-scroll {
    font-size: 1.1em;
}

/* Current line in assembly listing - purple theme */
.rust-wizard-layout .asm-line.current-line {
    background: #7c3aed;
    color: white;
    font-weight: bold;
    border-radius: 2px;
}

/* Pipeline note at bottom */
.rust-wizard-layout .pipeline-note {
    text-align: center;
    color: #555;
    font-size: 0.75em;
    padding: 16px;
    margin-top: 8px;
}

/* =============================================================================
   Wizard Dialog (Load Example popup)
   ============================================================================= */

.wizard-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.wizard-dialog {
    background: #1e1836;
    border: 2px solid #7c3aed;
    border-radius: 8px;
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3);
}

.wizard-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #3d2e6b;
}

.wizard-dialog-header h3 {
    color: #c792ea;
    font-size: 1.1em;
    margin: 0;
}

.wizard-dialog-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.wizard-dialog-close:hover {
    background: #3d2e6b;
    color: #c792ea;
}

.wizard-dialog-body {
    padding: 20px;
}

.wizard-dialog-body label {
    display: block;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.wizard-dialog-select {
    width: 100%;
    padding: 12px;
    background: #2d1f4e;
    color: #eee;
    border: 1px solid #3d2e6b;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
}

.wizard-dialog-select:focus {
    outline: none;
    border-color: #7c3aed;
}

.wizard-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #3d2e6b;
}

.wizard-dialog-cancel {
    padding: 10px 20px;
    background: transparent;
    color: #888;
    border: 1px solid #3d2e6b;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
}

.wizard-dialog-cancel:hover {
    background: #3d2e6b;
    color: #c792ea;
}

.wizard-dialog-load {
    padding: 10px 24px;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.wizard-dialog-load:hover:not(:disabled) {
    background: #6d28d9;
}

.wizard-dialog-load:disabled {
    background: #555;
    cursor: not-allowed;
}

/* Self-test panel */
.selftest-panel {
    margin: 12px;
    border: 2px solid #3d2e6b;
    border-radius: 8px;
    background: #1a1a2e;
    max-height: 400px;
    overflow-y: auto;
}

.selftest-summary {
    padding: 10px 16px;
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 1px solid #3d2e6b;
}

.selftest-pass {
    color: #4ade80;
    background: #0a2a1a;
}

.selftest-fail {
    color: #f87171;
    background: #2a0a0a;
}

.selftest-blink {
    animation: selftest-blink-anim 0.5s ease-in-out infinite;
}

@keyframes selftest-blink-anim {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.selftest-results {
    padding: 4px 0;
}

.selftest-row {
    display: flex;
    gap: 10px;
    padding: 4px 16px;
    align-items: baseline;
    font-size: 0.9em;
}

.selftest-row-pass {
    color: #a7f3d0;
}

.selftest-row-fail {
    color: #fca5a5;
    background: #1a0505;
}

.selftest-icon {
    flex-shrink: 0;
    width: 20px;
}

.selftest-name {
    font-weight: bold;
    min-width: 120px;
}

.selftest-detail {
    color: #888;
    font-family: 'Monaco', monospace;
    font-size: 0.85em;
}
