/* oveRTOS Sim Dashboard */

:root {
    --bg: #1a1a2e;
    --surface: #16213e;
    --border: #0f3460;
    --text: #e0e0e0;
    --accent: #e94560;
    --green: #4ecca3;
    --dim: #e0e0e0;
}

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

body {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 100;
}

header h1 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

.status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.status.connected {
    background: rgba(78, 204, 163, 0.2);
    color: var(--green);
}

.status.disconnected {
    background: rgba(233, 69, 96, 0.2);
    color: var(--accent);
}

/* ── WinBox dark theme ────────────────────────────────────────────── */

.winbox {
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.winbox .wb-header {
    background: var(--surface) !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dim);
    border-bottom: 1px solid var(--border);
    border-radius: 8px 8px 0 0;
}

.winbox .wb-body {
    background: var(--surface);
    border-radius: 0 0 8px 8px;
}

/* Hide WinBox's built-in minimized badge — the bottom #taskbar already
   lists minimized windows and is the sole restore path. */
.winbox.min {
    display: none !important;
}

.winbox.focus {
    border-color: var(--accent);
    box-shadow: 0 4px 24px rgba(233, 69, 96, 0.15);
}

.winbox .wb-control .wb-min,
.winbox .wb-control .wb-max,
.winbox .wb-control .wb-full,
.winbox .wb-control .wb-close {
    opacity: 0.5;
    background-size: 14px auto !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Minimize: horizontal line */
.winbox .wb-control .wb-min {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") !important;
}

/* Maximize: single square */
.winbox .wb-control .wb-max {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5'%3E%3Crect x='4' y='4' width='16' height='16' rx='1'/%3E%3C/svg%3E") !important;
}

/* Close: X mark */
.winbox .wb-control .wb-close {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5'%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3C/svg%3E") !important;
}

.winbox .wb-control .wb-min:hover,
.winbox .wb-control .wb-max:hover,
.winbox .wb-control .wb-full:hover {
    opacity: 1;
}

.winbox .wb-control .wb-close:hover {
    opacity: 1;
    background: var(--accent);
}

/* ── Bottom taskbar ───────────────────────────────────────────────── */

#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 34px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
    z-index: 2147483646;
}

.taskbar-badge {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    color: var(--dim);
    background: transparent;
    border: 1px solid transparent;
    white-space: nowrap;
    user-select: none;
}

.taskbar-badge:hover {
    background: var(--border);
    color: var(--text);
}

.taskbar-badge.active {
    background: rgba(233, 69, 96, 0.15);
    color: var(--accent);
    border-color: var(--accent);
}

.taskbar-badge.minimized {
    opacity: 0.5;
    font-style: italic;
}

/* ── Panels (inside WinBox bodies) ────────────────────────────────── */

.panel {
    background: var(--surface);
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Display ──────────────────────────────────────────────────────── */

.display-container {
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border-radius: 4px;
    padding: 8px;
}

#display-canvas {
    image-rendering: pixelated;
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

.display-info {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--dim);
    flex-shrink: 0;
}

/* ── Audio ─────────────────────────────────────────────────────────── */

.audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.btn {
    background: var(--border);
    color: var(--text);
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
}

.btn:hover {
    background: var(--accent);
}

.btn-small {
    padding: 4px 10px;
    font-size: 11px;
}

#audio-info {
    font-size: 12px;
    color: var(--dim);
}

.audio-devices {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.audio-devices label {
    font-size: 11px;
    color: var(--dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

.audio-devices select {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 8px;
    font-family: inherit;
    font-size: 11px;
    max-width: 180px;
}

#audio-waveform {
    width: 100%;
    flex: 1;
    min-height: 60px;
    background: #0d1117;
    border-radius: 4px;
}

.waveform-pair {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.waveform-box {
    flex: 1;
    min-height: 0;
    position: relative;
    background: #0d1117;
    border-radius: 4px;
}

.waveform-box canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.waveform-label {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--dim);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

/* ── Events ────────────────────────────────────────────────────────── */

.events-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.autoscroll-on {
    background: rgba(78, 204, 163, 0.2);
    color: var(--green);
}

.event-log {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    font-size: 11px;
    line-height: 1.6;
    color: var(--dim);
}

.event-log .entry {
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: pre-wrap;
    tab-size: 8;
}

.event-log .entry .time {
    color: var(--green);
    margin-right: 8px;
}

.event-log .entry .type {
    color: var(--accent);
    margin-right: 8px;
}

/* ── Mobile / small viewport ──────────────────────────────────────── */

/* ── Thread view ─────────────────────────────────────────────────── */

.thread-mem-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}
.thread-mem-label { font-size: 11px; color: var(--text); white-space: nowrap; }
.thread-mem-track {
    flex: 1;
    height: 10px;
    background: var(--bg);
    border-radius: 5px;
    overflow: hidden;
}
.thread-mem-fill {
    height: 100%;
    width: 0%;
    background: var(--green);
    border-radius: 5px;
    transition: width 0.3s;
}
.thread-mem-fill.mem-warn  { background: #f0a500; }
.thread-mem-fill.mem-critical { background: var(--accent); }
.thread-mem-text { font-size: 10px; color: #aaa; white-space: nowrap; }

.thread-table-wrap {
    overflow-y: auto;
    flex: 1;
}
.thread-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
}
.thread-table thead th {
    position: sticky;
    top: 0;
    background: var(--surface);
    text-align: left;
    padding: 4px 8px;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    color: #888;
    border-bottom: 1px solid var(--border);
}
.thread-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.thread-table tbody tr:hover { background: rgba(255,255,255,0.05); }
.thread-table td {
    padding: 3px 8px;
    white-space: nowrap;
}
.td-name { font-weight: 500; }
.td-num  { text-align: right; font-variant-numeric: tabular-nums; }

.state-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}
.st-running    { background: #1b5e20; color: #81c784; }
.st-ready      { background: #0d47a1; color: #64b5f6; }
.st-blocked    { background: #4a3800; color: #ffd54f; }
.st-suspended  { background: #333;    color: #999; }
.st-terminated { background: #4a0000; color: #ef5350; }
.st-unknown    { background: #333;    color: #666; }

/* State time bar */
.state-bar {
    display: flex;
    height: 8px;
    min-width: 60px;
    border-radius: 2px;
    overflow: hidden;
    background: var(--bg);
}
.state-bar span { display: block; height: 100%; }
.sb-run { background: #4caf50; }
.sb-rdy { background: #2196f3; }
.sb-blk { background: #ffc107; }
.sb-sus { background: #666; }

.thread-empty {
    text-align: center;
    color: #555;
    padding: 24px;
    font-size: 12px;
}

#threads-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Debug panel ──────────────────────────────────────────────────── */

#debug-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.debug-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}
.dbg-btn {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 30px;
    height: 26px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.dbg-btn:hover:not(:disabled) { background: var(--border); }
.dbg-btn:active:not(:disabled) { background: var(--accent); }
.dbg-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.dbg-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.dbg-status { font-size: 11px; color: #888; margin-left: auto; }
.dbg-mode-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--accent);
    color: #fff;
}
.dbg-running { color: var(--green); }
.dbg-stopped { color: #ffd54f; }

.debug-tabs {
    display: flex;
    gap: 2px;
    padding: 4px 0;
}
.dbg-tab {
    background: transparent;
    color: #888;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 2px 10px;
    font-size: 11px;
    cursor: pointer;
}
.dbg-tab:hover { color: var(--text); }
.dbg-tab.active { color: var(--text); border-color: var(--border); background: var(--bg); }

.debug-body {
    display: flex;
    flex: 1;
    gap: 8px;
    overflow: hidden;
}
.debug-source-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.dbg-file-label {
    font-size: 10px;
    color: #666;
    padding: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dbg-source-view {
    flex: 1;
    overflow: auto;
    font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
    font-size: 12px;
    line-height: 1.5;
    background: var(--bg);
    border-radius: 4px;
    padding: 4px 0;
}
.dbg-source-view.dbg-dimmed { opacity: 0.4; }

/* Monaco Editor overrides */
.dbg-source-view .monaco-editor { height: 100% !important; }
.monaco-current-line { background: rgba(255, 213, 79, 0.15) !important; }
.monaco-current-glyph {
    background: var(--green);
    width: 3px !important;
    margin-left: 3px;
    border-radius: 1px;
}
.monaco-bp-glyph {
    background: var(--accent);
    border-radius: 50%;
    width: 10px !important;
    height: 10px !important;
    margin-top: 5px;
    margin-left: 4px;
}

.dbg-line {
    display: flex;
    padding: 0 8px;
    white-space: pre;
}
.dbg-line:hover { background: rgba(255,255,255,0.03); }
.dbg-current { background: rgba(255, 213, 79, 0.12) !important; }
.dbg-bp-line { }
.dbg-gutter {
    display: inline-block;
    width: 40px;
    text-align: right;
    padding-right: 12px;
    color: #555;
    user-select: none;
    cursor: pointer;
    flex-shrink: 0;
}
.dbg-gutter:hover { color: var(--accent); }
.dbg-gutter-bp { color: var(--accent); }
.dbg-gutter-bp::before { content: "\25CF "; color: var(--accent); }
.dbg-code { flex: 1; }

/* Disassembly */
.dbg-asm-line {
    display: flex;
    gap: 12px;
    padding: 0 8px;
    font-size: 11px;
}
.dbg-asm-addr { color: #666; width: 80px; flex-shrink: 0; }
.dbg-asm-func { color: #82aaff; width: 120px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; }
.dbg-asm-inst { color: var(--text); }
.dbg-asm-src {
    padding: 4px 8px 0;
    font-size: 10px;
    color: #546e7a;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 4px;
}

/* Side panels (callstack, registers, breakpoints) */
.debug-side {
    width: 240px;
    flex-shrink: 0;
    overflow-y: auto;
    border-left: 1px solid var(--border);
    padding-left: 8px;
}
.dbg-section { margin-bottom: 4px; }
.dbg-section summary {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    cursor: pointer;
    padding: 4px 0;
}
.dbg-section summary:hover { color: var(--text); }

.dbg-callstack { font-size: 11px; }
.dbg-frame {
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 2px;
}
.dbg-frame:hover { background: rgba(255,255,255,0.05); }
.dbg-frame.active { background: rgba(255, 213, 79, 0.1); }
.dbg-frame-idx { color: #666; }
.dbg-frame-func { color: #82aaff; }
.dbg-frame-loc { color: #888; font-size: 10px; }

.dbg-reg-group-title {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    padding: 4px 0 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 2px;
}
.dbg-reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px 8px;
    font-size: 11px;
    font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
}
.dbg-reg-name { color: #888; }
.dbg-reg-val  { color: var(--text); }

.dbg-bp { display: flex; align-items: center; gap: 4px; font-size: 11px; padding: 1px 0; }
.dbg-bp-num { color: var(--accent); }
.dbg-bp-loc { flex: 1; color: #888; overflow: hidden; text-overflow: ellipsis; }
.dbg-bp-del {
    background: transparent; border: none; color: #666; cursor: pointer;
    font-size: 12px; padding: 0 4px;
}
.dbg-bp-del:hover { color: var(--accent); }

/* File explorer (left panel) */
.debug-explorer {
    width: 200px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    padding-right: 6px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.dbg-explorer-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
    flex-shrink: 0;
}
.dbg-files { flex: 1; overflow-y: auto; }
.dbg-file-cat {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    padding: 4px 0 1px;
    margin-top: 2px;
}
.dbg-file-entry {
    padding: 1px 4px;
    cursor: pointer;
    border-radius: 2px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dbg-file-entry:hover { background: rgba(255,255,255,0.05); }
.dbg-file-active { background: rgba(78, 204, 163, 0.12) !important; }
.dbg-file-dir { color: #555; }
.dbg-file-name { color: var(--text); }

.dbg-empty { color: #555; font-size: 11px; padding: 8px; text-align: center; }

@media (max-width: 639px) {
    header h1 { font-size: 13px; }
    .btn-small { padding: 6px 10px; font-size: 12px; }

    /* Larger touch targets for WinBox controls. */
    .winbox .wb-control span { width: 36px; height: 36px; }
    .winbox .wb-header { min-height: 36px; }

    /* Taskbar badges fill width equally. */
    #taskbar { gap: 2px; padding: 0 4px; height: 38px; }
    .taskbar-badge {
        flex: 1;
        text-align: center;
        padding: 6px 4px;
        font-size: 10px;
    }

    /* Panels: tighter padding. */
    .panel { padding: 8px; }
    .display-container { padding: 4px; }
}

/* ── Trace panel ─────────────────────────────────────────────────── */

#trace-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    height: 100%;
}

.trace-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 11px;
    flex-wrap: wrap;
}

#trace-info {
    color: var(--dim);
    opacity: 0.8;
}

.trace-legend {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.trace-swatch {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    color: #000;
    font-weight: 500;
}

.trace-sw-running   { background: #4ecca3; }
.trace-sw-ready     { background: #f5d76e; }
.trace-sw-blocked   { background: #e94560; color: #fff; }
.trace-sw-suspended { background: #666; color: #fff; }

.trace-controls {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
}

.trace-canvas-wrap {
    flex: 1;
    min-height: 120px;
    background: #0d1117;
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

#trace-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.trace-mark-tip {
    position: absolute;
    background: #1a1f2c;
    color: #e6eaf2;
    border: 1px solid #4d5a78;
    padding: 4px 8px;
    font-size: 11px;
    font-family: 'Consolas', monospace;
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Profiler panel ─────────────────────────────────────────────────── */

#profiler-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    height: 100%;
}

.profiler-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 11px;
    flex-wrap: wrap;
}

.profiler-tabs {
    display: inline-flex;
    gap: 2px;
}

.prof-tab {
    background: #1e2430;
    color: var(--dim);
    border: 1px solid var(--border);
    padding: 3px 10px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 3px;
    font-family: inherit;
}

.prof-tab:hover { background: #272e3c; color: var(--fg); }
.prof-tab.active {
    background: #2e3647;
    color: var(--fg);
    border-color: #4d5a78;
}

.profiler-controls {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.profiler-window-label,
.profiler-rate-label,
.profiler-thread-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--dim);
}

#profiler-window,
#profiler-rate,
#profiler-thread {
    background: #1e2430;
    color: var(--fg);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 2px 4px;
    font: inherit;
    font-size: 11px;
}

#profiler-window {
    width: 48px;
}

#profiler-rate {
    min-width: 72px;
}

#profiler-pause.paused {
    background: #6a3c14;
    border-color: #a8672a;
    color: #ffd59a;
}

#profiler-oncpu.active {
    background: rgba(78, 204, 163, 0.2);
    border-color: var(--green);
    color: var(--green);
}

.profiler-info {
    color: var(--dim);
    opacity: 0.8;
    margin-left: auto;
}

.profiler-info.paused {
    color: #ffb366;
    opacity: 1;
}

.profiler-caveat {
    font-size: 11px;
    color: #ffb366;
    background: rgba(255, 179, 102, 0.08);
    border-left: 2px solid #ffb366;
    padding: 4px 8px;
    margin: 0 0 6px 0;
    cursor: help;
}

.profiler-view {
    flex: 1;
    overflow: auto;
    background: #0d1117;
    border: 1px solid var(--border);
    position: relative;
}

.profiler-flat-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Consolas', monospace;
    font-size: 11px;
}

.profiler-flat-table thead th {
    position: sticky;
    top: 0;
    background: #1a1f2c;
    color: #cfd3dc;
    text-align: left;
    padding: 4px 8px;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    z-index: 1;
}

.profiler-flat-table tbody td {
    padding: 3px 8px;
    border-bottom: 1px solid #1a1f2c;
    color: #cfd3dc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profiler-flat-table tbody tr:hover td { background: #1a2030; }

.profiler-flat-table .pf-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #8a94ad;
}

.profiler-flat-table .pf-func { color: #4ecca3; }
.profiler-flat-table .pf-bar  {
    position: relative;
    min-width: 60px;
}
.profiler-flat-table .pf-bar::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: rgba(78, 204, 163, 0.18);
    width: var(--bar, 0%);
    pointer-events: none;
}

#profiler-flame-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

.profiler-flame-tip {
    position: absolute;
    background: #1a1f2c;
    color: #e6eaf2;
    border: 1px solid #4d5a78;
    padding: 4px 8px;
    font-size: 11px;
    font-family: 'Consolas', monospace;
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
}
