:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: #16162a;
    --bg-hover: #1e1e3a;
    --bg-active: #252545;
    --border: #2a2a4a;
    --border-light: #3a3a5a;
    --text-primary: #e8e8f0;
    --text-secondary: #8888aa;
    --text-muted: #555577;
    --accent: #ff3333;
    --accent-2: #b22828;
    --accent-gradient: linear-gradient(135deg, #ff3333, #b22828);
    --success: #00e676;
    --warning: #ffab40;
    --danger: #ff5252;
    --danger-bg: rgba(255, 82, 82, 0.1);
    --success-bg: rgba(0, 230, 118, 0.1);
    --warning-bg: rgba(255, 171, 64, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --font: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --header-h: 56px;
    --sidebar-w: 240px;
    --statusbar-h: 28px;
}

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

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* ===== HEADER ===== */
.header {
    height: var(--header-h);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    flex-shrink: 0;
    z-index: 10;
}

.header-left { display: flex; align-items: center; gap: 12px; }
.header-center { flex: 1; text-align: center; }
.header-right { display: flex; align-items: center; gap: 8px; }

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

.logo h1 {
    font-size: 18px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--accent);
    font-family: var(--mono);
}

.ecu-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--mono);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.15); box-shadow: 0 0 20px rgba(0,212,255,0.3); }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-light); }

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { filter: brightness(1.1); }

.btn-success {
    background: var(--success);
    color: #000;
}
.btn-success:hover { filter: brightness(1.1); }

.btn-warning {
    background: var(--warning);
    color: #000;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

/* ===== MAIN AREA ===== */
.main {
    flex: 1;
    overflow: hidden;
    display: flex;
}

.editor {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    scroll-behavior: smooth;
}

.landing {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.landing-icon { opacity: 0.6; animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.05); opacity: 0.8; } }

.landing h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: -4px;
}

.landing-sub {
    font-size: 12px !important;
    color: var(--text-muted) !important;
}

.landing-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.landing-or {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== LANDING STEPS ===== */
.landing-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.step.active {
    background: var(--bg-active);
}

.step.done {
    background: var(--success-bg);
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step.active .step-num {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(0,212,255,0.4);
}

.step.done .step-num {
    background: var(--success);
    color: #000;
    border-color: var(--success);
}

.step-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.step.active .step-label { color: var(--text-primary); }
.step.done .step-label { color: var(--success); }

.step-status {
    font-size: 10px;
    font-family: var(--mono);
    color: var(--text-muted);
    text-transform: uppercase;
}

.step.active .step-status { color: var(--accent); }
.step.done .step-status { color: var(--success); }

.step-arrow {
    font-size: 16px;
    color: var(--text-muted);
}

/* ===== EDITOR LAYOUT ===== */
.editor {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    flex-shrink: 0;
    padding: 8px;
}

.nav-section { margin-bottom: 4px; }

.nav-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding: 10px 10px 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.1s ease;
    text-align: left;
}

.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--bg-active); color: var(--accent); }

.nav-icon { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }

.nav-count {
    margin-left: auto;
    font-size: 10px;
    font-family: var(--mono);
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 1px 6px;
    border-radius: 8px;
}

/* ===== CONTENT AREA ===== */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* ===== PANELS ===== */
.panel { display: none; }
.panel.active { display: block; }

.panel-header {
    margin-bottom: 24px;
}

.panel-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.panel-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== SEARCH BAR ===== */
.search-bar {
    padding: 8px;
    border-bottom: 1px solid var(--border);
    margin: -8px -8px 8px -8px;
}

.search-input {
    width: 100%;
    padding: 6px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s;
}

.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }

/* ===== MAP CARDS ===== */
.map-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.map-card:hover {
    border-color: var(--border-light);
}

.map-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.map-card-header:hover {
    background: var(--bg-hover);
}

.map-card-title {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-type-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--mono);
}

.map-type-3d {
    background: rgba(123, 47, 247, 0.15);
    color: #b47aff;
    border: 1px solid rgba(123, 47, 247, 0.3);
}

.map-type-2d {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.map-type-const {
    background: rgba(255, 171, 64, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 171, 64, 0.3);
}

.map-dim {
    font-size: 11px;
    font-family: var(--mono);
    color: var(--text-muted);
}

.map-card-body {
    padding: 0 16px 16px;
    display: none;
}

.map-card-body.open {
    display: block;
}

.map-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
    font-family: var(--mono);
}

.map-collapse-icon {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.map-card.expanded .map-collapse-icon {
    transform: rotate(90deg);
}

/* ===== MAP TABLE ===== */
.map-container {
    overflow-x: auto;
    margin-bottom: 8px;
}

.map-table {
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 11px;
}

.map-table th, .map-table td {
    padding: 3px 6px;
    text-align: center;
    border: 1px solid var(--border);
    min-width: 42px;
}

.map-table th {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
    position: sticky;
}

.map-table th:first-child {
    left: 0;
    z-index: 2;
}

.map-table td {
    cursor: pointer;
    transition: background 0.1s;
}

.map-table td:hover { outline: 2px solid var(--accent); outline-offset: -2px; }

.map-table td.changed {
    background: rgba(0, 212, 255, 0.15) !important;
    font-weight: 600;
}

.map-table .row-header {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
    position: sticky;
    left: 0;
    z-index: 1;
}

/* ===== CELL EDIT ===== */
.map-table td.editing {
    padding: 0;
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.cell-edit-input {
    width: 100%;
    border: none;
    background: var(--bg-active);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 11px;
    text-align: center;
    padding: 3px 2px;
    outline: none;
}

/* ===== COLOR SCALE FOR MAP CELLS ===== */
.cell-cold { background: rgba(0, 100, 255, 0.15); }
.cell-cool { background: rgba(0, 180, 255, 0.12); }
.cell-neutral { background: transparent; }
.cell-warm { background: rgba(255, 170, 0, 0.12); }
.cell-hot { background: rgba(255, 60, 0, 0.15); }

/* ===== 2D CHART ===== */
.chart-2d {
    height: 120px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    padding: 8px 0;
}

.chart-bar {
    flex: 1;
    min-width: 8px;
    background: var(--accent-gradient);
    border-radius: 2px 2px 0 0;
    transition: all 0.2s ease;
    opacity: 0.7;
    position: relative;
}

.chart-bar:hover {
    opacity: 1;
    filter: brightness(1.2);
}

.chart-bar.changed {
    outline: 2px solid var(--warning);
    outline-offset: -1px;
}

/* ===== INFO TABLE ===== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.info-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.info-table td:first-child {
    color: var(--text-secondary);
    font-weight: 500;
    width: 180px;
}

.info-table td:last-child {
    font-family: var(--mono);
    color: var(--text-primary);
}

/* ===== HEX VIEW ===== */
.hex-view {
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.6;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    overflow: auto;
    max-height: calc(100vh - 200px);
    white-space: pre;
}

.hex-offset { color: var(--accent); }
.hex-byte { color: var(--text-secondary); }
.hex-byte-changed { color: var(--warning); font-weight: 600; }
.hex-ascii { color: var(--text-muted); }

/* ===== INPUT FIELDS ===== */
.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.input-group label {
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 120px;
}

.input-field {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--text-primary);
    font-family: var(--mono);
    font-size: 13px;
    width: 100px;
    outline: none;
    transition: border-color 0.15s;
}

.input-field:focus { border-color: var(--accent); }

/* ===== OVERVIEW GRID ===== */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.overview-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
}

.overview-stat .stat-value {
    font-size: 28px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.overview-stat .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ===== TOGGLE SWITCH ===== */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.toggle-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== ACTION GRID (Quick Tune) ===== */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.2s ease;
}

.action-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.action-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.action-card-title {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.status-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.status-on { background: var(--success-bg); color: var(--success); border: 1px solid rgba(0,230,118,0.2); }
.status-off { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(255,82,82,0.2); }
.status-warn { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(255,171,64,0.2); }

/* ===== SLIDER ===== */
.slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.slider-row label {
    font-size: 13px;
    color: var(--text-secondary);
    width: 90px;
    flex-shrink: 0;
}

input[type="range"] {
    -webkit-appearance: none;
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-tertiary);
    outline: none;
    min-width: 50px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0,212,255,0.4);
}

.slider-value {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    width: 65px;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== STATUSBAR ===== */
.statusbar {
    height: var(--statusbar-h);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--mono);
    flex-shrink: 0;
    gap: 16px;
}

/* ===== ALERT / TOAST ===== */
.toast {
    position: fixed;
    bottom: 48px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    font-size: 13px;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
    max-width: 400px;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ===== SEPARATOR ===== */
.separator {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

/* ===== DRAG OVERLAY ===== */
.drag-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    pointer-events: none;
}

.drag-overlay.active {
    display: flex;
}

.drag-overlay-inner {
    border: 2px dashed var(--accent);
    border-radius: 16px;
    padding: 48px 64px;
    text-align: center;
}

.drag-overlay-inner h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.drag-overlay-inner p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ===== CONSTANT CARD ===== */
.const-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.const-card:hover {
    border-color: var(--border-light);
}

.const-name {
    font-size: 13px;
    font-weight: 500;
}

.const-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.const-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    color: var(--text-primary);
    font-family: var(--mono);
    font-size: 13px;
    width: 80px;
    text-align: center;
    outline: none;
    transition: border-color 0.15s;
}

.const-input:focus { border-color: var(--accent); }

.const-raw {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--mono);
}

/* ===== FLASH PANEL ===== */
.btn-accent {
    background: linear-gradient(135deg, #ff6b00, #ff3d00);
    color: #fff;
    font-weight: 600;
}
.btn-accent:hover:not(:disabled) { filter: brightness(1.15); box-shadow: 0 0 20px rgba(255, 107, 0, 0.3); }

.flash-panel {
    position: fixed;
    right: 0;
    top: var(--header-h);
    width: 420px;
    max-width: 100vw;
    height: calc(100vh - var(--header-h) - var(--statusbar-h));
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
    animation: slideIn 0.25s ease;
}

@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.flash-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.flash-panel-header h3 {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b00, #ff3d00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flash-panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    gap: 16px;
    overflow-y: auto;
}

.flash-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
}

.flash-indicator {
    font-size: 18px;
    color: var(--danger);
    animation: none;
}

.flash-indicator.connected {
    color: var(--success);
    animation: blink 1.5s ease infinite;
}

.flash-indicator.working {
    color: var(--warning);
    animation: blink 0.5s ease infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.flash-progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.flash-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b00, #ff3d00);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.flash-progress-label {
    font-size: 12px;
    font-family: var(--mono);
    color: var(--text-secondary);
    min-width: 40px;
    text-align: right;
}

.flash-log {
    flex: 1;
    min-height: 120px;
    max-height: 300px;
    background: #0a0a10;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.6;
    color: var(--text-secondary);
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.flash-log .log-ok { color: var(--success); }
.flash-log .log-err { color: var(--danger); }
.flash-log .log-warn { color: var(--warning); }
.flash-log .log-info { color: var(--accent); }

.flash-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.flash-actions .btn {
    justify-content: center;
    font-size: 12px;
    padding: 8px 10px;
}
