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

:root {
    --green: #00ff41;
    --green-dim: #00cc33;
    --green-dark: #009922;
    --green-glow: rgba(0,255,65,0.4);
    --green-subtle: rgba(0,255,65,0.06);
    --amber: #ffb000;
    --red: #ff3333;
    --cyan: #00d4ff;
    --bg: #0a0a0a;
    --bg-terminal: #050505;
    --text-dim: #3a6a3a;
    --mono: 'JetBrains Mono', 'Courier New', monospace;
}

html, body {
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: var(--mono);
    color: var(--green);
    cursor: default;
}
/* Hide all visual elements until ban check passes */
body::before, body::after, .screen-glow, #bgCanvas {
    visibility: hidden;
}
body.page-ready {
    background: var(--bg);
}
body.page-ready::before, body.page-ready::after,
body.page-ready .screen-glow, body.page-ready #bgCanvas {
    visibility: visible;
}

/* Scanlines */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.15) 2px,
        rgba(0,0,0,0.15) 4px
    );
}

/* CRT vignette */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9997;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.5) 100%);
}

.screen-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(0,255,65,0.03) 0%, transparent 70%);
    pointer-events: none;
}

#bgCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.07;
    pointer-events: none;
}

/* Terminal container */
.terminal-wrapper {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    visibility: hidden;
}
body.page-ready .terminal-wrapper {
    visibility: visible;
}

/* Top bar */
.top-bar {
    display: none;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-dots { display: flex; gap: 6px; }
.top-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.top-title { color: #666; letter-spacing: 1px; }
.top-bar-right { display: flex; gap: 16px; }
.top-bar-right span { color: #444; }

/* Main output */
.terminal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    font-size: 0.8rem;
    line-height: 1.9;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.terminal-body::-webkit-scrollbar { display: none; }

/* Lines */
.line { white-space: pre-wrap; word-break: break-all; }
.line.prompt { color: var(--green); }
.line.output { color: #668866; }
.line.highlight { color: var(--green); font-weight: 700; }
.line.amber { color: var(--amber); }
.line.cyan { color: var(--cyan); }
.line.red { color: var(--red); }
.line.dim { color: #4a7a4a; }
.line.header {
    color: var(--green);
    font-weight: 700;
    text-shadow: 0 0 10px var(--green-glow);
}
.line.blank { height: 1.9em; }
.line .cmd { color: #aaffaa; }
.line .path { color: var(--cyan); }
.line .flag { color: var(--amber); }
.line .val { color: #fff; }
.line .comment { color: #4a7a4a; }
.line .accent { color: var(--green); font-weight: 700; text-shadow: 0 0 8px var(--green-glow); }
.line .tag { color: var(--amber); }
.line .separator { color: #3a6a3a; }
.line a { color: var(--cyan); text-decoration: none; }
.line a:hover { text-decoration: underline; }

.cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--green);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    box-shadow: 0 0 6px var(--green-glow);
}

/* Status bar */
.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    background: #0d0d0d;
    border-top: 1px solid #1a1a1a;
    font-size: 0.6rem;
    color: #7a9a7a;
    flex-shrink: 0;
    user-select: none;
}

.status-left, .status-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Login input */
.login-input {
    background: none;
    border: none;
    outline: none;
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.8rem;
    caret-color: var(--green);
    width: 200px;
}

.login-input::placeholder { color: transparent; }

.password-mask {
    color: transparent;
    letter-spacing: 0;
}

.status-live {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--green-dark);
}

.status-live .pulse {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 4px var(--green), 0 0 8px var(--green-glow);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 4px var(--green), 0 0 8px var(--green-glow); }
    50% { opacity: 0.4; transform: scale(0.75); box-shadow: 0 0 2px var(--green), 0 0 4px var(--green-glow); }
}


/* Side stream */
.side-stream {
    position: fixed;
    right: 0;
    width: 320px;
    z-index: 2;
    overflow: hidden;
    visibility: hidden;
}
body.page-ready .side-stream {
    visibility: visible;
    pointer-events: none;
    border-left: 1px solid #111;
    background: rgba(5,5,5,0.6);
    padding: 12px;
    font-size: 0.55rem;
    line-height: 1.7;
    color: #3a6a3a;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.side-stream .stream-line { white-space: nowrap; overflow: hidden; }
.side-stream .active { color: #2a5a2a; }
.side-stream .hot { color: var(--green-dark); }

.ascii-block {
    text-shadow: 0 0 10px var(--green-glow);
    color: var(--green);
}

@keyframes blink { 50% { opacity: 0; } }

/* CMD popup styles injected dynamically by JS — no static trace */

/* ===== Custom context menu ===== */
.ctx-menu {
    position: fixed;
    z-index: 100000;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.08);
    padding: 6px 0;
    min-width: 335px;
    font-family: 'Segoe UI', -apple-system, system-ui, sans-serif;
    font-size: 13px;
    color: #202124;
    user-select: none;
    opacity: 0;
    transform: scale(0.97);
    transform-origin: top left;
    transition: opacity 0.08s, transform 0.08s;
    pointer-events: none;
    white-space: nowrap;
}
.ctx-menu.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.ctx-item {
    display: flex;
    align-items: center;
    padding: 7px 40px 7px 20px;
    cursor: default;
    line-height: 20px;
}
.ctx-item:hover {
    background: rgba(0,0,0,0.07);
}
.ctx-item .ctx-icon {
    width: 24px;
    min-width: 24px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 14px;
}
.ctx-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}
.ctx-item .ctx-label { flex: 1; }
.ctx-item .ctx-shortcut {
    color: #9aa0a6;
    font-size: 12px;
    margin-left: 48px;
}
.ctx-item.disabled {
    color: #9aa0a6;
    pointer-events: none;
}
.ctx-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 4px 0;
}

/* ===== Fake DevTools — Chrome Light Theme Only ===== */

/* ===== Fake DevTools panel ===== */
.fake-devtools {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 40vw;
    min-width: 360px;
    background: #ffffff;
    z-index: 99999;
    font-family: 'Segoe UI', -apple-system, system-ui, sans-serif;
    font-size: 12px;
    color: #202124;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e0e0e0;
    overflow: hidden;
}

/* Resize handle on left edge */
.fdt-resize-handle {
    position: absolute;
    top: 0; left: -4px; bottom: 0;
    width: 8px;
    cursor: col-resize;
    z-index: 100001;
}

.fdt-toolbar {
    display: flex;
    align-items: center;
    background: #f3f3f3;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
    height: 30px;
    padding: 0 4px;
    gap: 0;
    overflow: hidden;
}
.fdt-tab {
    padding: 6px 8px;
    color: #5f6368;
    cursor: default;
    border-bottom: 2px solid transparent;
    font-size: 12px;
    white-space: nowrap;
    user-select: none;
}
.fdt-tab:hover { color: #202124; }
.fdt-tab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}
.fdt-overflow-btn {
    padding: 6px 6px;
    color: #5f6368;
    cursor: default;
    font-size: 12px;
    white-space: nowrap;
    user-select: none;
    position: relative;
}
.fdt-overflow-btn:hover { color: #202124; }
.fdt-overflow-menu {
    display: none;
    position: fixed;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 200000;
    min-width: 140px;
}
.fdt-overflow-menu.show { display: block; }
.fdt-overflow-item {
    padding: 6px 12px;
    color: #5f6368;
    cursor: default;
    white-space: nowrap;
    font-size: 12px;
}
.fdt-overflow-item:hover { background: #f5f5f5; color: #202124; }
.fdt-overflow-item.active { color: #1a73e8; }

.fdt-toolbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #5f6368;
    flex-shrink: 0;
}
.fdt-toolbar-right span {
    cursor: default;
    padding: 2px 4px;
    font-size: 14px;
}
.fdt-toolbar-right span:hover { color: #202124; }
.fdt-gear-wrap { position: relative; }
.fdt-gear-menu {
    display: none;
    position: fixed;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    z-index: 200000;
    min-width: 260px;
    padding: 4px 0;
    border-radius: 4px;
}
.fdt-gear-menu.show { display: block; }
.fdt-gear-item {
    padding: 5px 16px;
    color: #202124;
    cursor: default;
    white-space: nowrap;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fdt-gear-item:hover { background: #f5f5f5; }
.fdt-gear-item .shortcut { color: #5f6368; font-size: 11px; margin-left: 20px; }
.fdt-gear-item .new-badge { background: #1a73e8; color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 3px; margin-left: 8px; font-weight: 600; letter-spacing: 0.5px; }
.fdt-gear-sep { height: 1px; background: #e0e0e0; margin: 4px 0; }
.fdt-dock-icons {
    display: flex;
    gap: 6px;
    padding: 6px 16px;
    align-items: center;
}
.fdt-dock-icons span {
    font-size: 15px;
    color: #5f6368;
    cursor: default;
    padding: 2px;
}
.fdt-dock-icons span:hover { color: #1a73e8; }
.fdt-dock-icons .dock-label { font-size: 12px; color: #5f6368; margin-right: 6px; }

.fdt-close {
    font-size: 16px !important;
    padding: 2px 6px !important;
}
.fdt-close:hover { color: #202124; }

.fdt-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    background: #ffffff;
}
.fdt-body .fdt-tab-content { display: none; width: 100%; height: 100%; overflow: hidden; }
.fdt-body .fdt-tab-content.active { display: flex; }

/* Elements tab */
.fdt-elements-wrap { display: flex; flex: 1; overflow: hidden; }
.fdt-elements {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
    border-right: 1px solid #e0e0e0;
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: 11px;
    line-height: 1.6;
    background: #ffffff;
}
.fdt-elements::-webkit-scrollbar { width: 6px; }
.fdt-elements::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }

.fdt-node {
    padding: 1px 0 1px 0;
    white-space: nowrap;
    cursor: default;
}
.fdt-node:hover { background: #f5f5f5; }
.fdt-node .tag { color: #881280; }
.fdt-node .attr-name { color: #994500; }
.fdt-node .attr-val { color: #1a1aa6; }
.fdt-node .text { color: #202124; }
.fdt-node .comment { color: #236e25; }
.fdt-node.selected { background: #e8f0fe; }
.fdt-node .arrow { color: #5f6368; font-size: 9px; margin-right: 2px; }

.fdt-styles {
    width: 300px;
    flex-shrink: 0;
    overflow-y: auto;
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: 11px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}
.fdt-styles::-webkit-scrollbar { width: 6px; }
.fdt-styles::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }

.fdt-styles-tabs {
    display: flex;
    background: #f3f3f3;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 4px;
    flex-shrink: 0;
}
.fdt-styles-tab {
    padding: 4px 8px;
    color: #5f6368;
    font-size: 11px;
    cursor: default;
    font-family: 'Segoe UI', sans-serif;
    white-space: nowrap;
}
.fdt-styles-tab:hover { color: #202124; }
.fdt-styles-tab.active { color: #1a73e8; border-bottom: 2px solid #1a73e8; }

.fdt-filter {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-bottom: 1px solid #e0e0e0;
    gap: 6px;
    flex-shrink: 0;
}
.fdt-filter input {
    background: none;
    border: none;
    color: #5f6368;
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    outline: none;
    flex: 1;
}
.fdt-filter-icons {
    display: flex;
    gap: 6px;
    color: #5f6368;
    font-size: 11px;
}
.fdt-filter-icons span { cursor: default; }
.fdt-filter-icons span:hover { color: #202124; }

.fdt-rule {
    padding: 1px 12px;
}
.fdt-rule .prop { color: #994500; }
.fdt-rule .val { color: #1a1aa6; }
.fdt-rule .selector { color: #881280; }
.fdt-rule .src { color: #5f6368; float: right; font-size: 10px; }
.fdt-rule .inherited { color: #5f6368; padding: 6px 0 2px; font-style: italic; }
.fdt-rule .chk { color: #5f6368; margin-right: 4px; }
.fdt-rule .struck { text-decoration: line-through; color: #9aa0a6; }

.fdt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f3f3f3;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 11px;
    color: #5f6368;
    flex-shrink: 0;
}
.fdt-breadcrumb span { cursor: default; }
.fdt-breadcrumb span:hover { color: #202124; }
.fdt-breadcrumb .bc-active { color: #1a73e8; }

/* Elements panel - functional DOM tree */
.fdt-node .arrow { cursor: pointer; display: inline-block; width: 12px; text-align: center; user-select: none; }
.fdt-node .arrow.leaf { visibility: hidden; }
.fdt-node .eq0 { color: #5f6368; margin-left: 6px; font-size: 10px; }
.fdt-node .text-node { color: #202124; font-style: italic; }
.fdt-node .more-indicator { color: #5f6368; font-style: italic; padding-left: 28px; font-size: 10px; }
.fdt-node .closing-tag { color: #881280; }
.fdt-node .collapsed-preview { color: #5f6368; }
.fdt-node-children { display: none; }
.fdt-node-children.expanded { display: block; }

/* Box model diagram */
.fdt-box-model {
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}
.fdt-box-model-title {
    font-size: 10px;
    color: #5f6368;
    margin-bottom: 8px;
    font-family: 'Segoe UI', sans-serif;
}
.fdt-box-model-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
}
.fdt-box-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    font-size: 10px;
    font-family: 'Menlo', 'Consolas', monospace;
}
.fdt-box-zone.margin-zone {
    background: rgba(246, 178, 107, 0.3);
    padding: 8px;
    min-width: 200px;
}
.fdt-box-zone.border-zone {
    background: rgba(252, 229, 148, 0.5);
    padding: 8px;
    width: 100%;
}
.fdt-box-zone.padding-zone {
    background: rgba(195, 232, 141, 0.3);
    padding: 8px;
    width: 100%;
}
.fdt-box-zone.content-zone {
    background: rgba(147, 196, 232, 0.3);
    padding: 4px 8px;
    width: 100%;
    min-height: 24px;
}
.fdt-box-zone-label {
    position: absolute;
    top: 1px;
    left: 4px;
    font-size: 9px;
    color: #5f6368;
}
.fdt-box-val-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: #202124;
}
.fdt-box-val-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.fdt-box-val-mid {
    display: flex;
    align-items: center;
    width: 100%;
}
.fdt-box-val-mid > span:first-child { margin-right: auto; }
.fdt-box-val-mid > span:last-child { margin-left: auto; }
.fdt-box-val-mid > .fdt-box-inner { flex: 1; }

/* Highlight overlay */
.fdt-highlight-overlay {
    position: fixed;
    z-index: 99990;
    pointer-events: none;
    background: rgba(66, 133, 244, 0.2);
    border: 1px solid rgba(66, 133, 244, 0.6);
    transition: all 0.05s ease;
}

/* Computed styles view */
.fdt-computed-list {
    padding: 4px 0;
    overflow-y: auto;
    flex: 1;
}
.fdt-computed-row {
    display: flex;
    padding: 2px 12px;
    font-size: 11px;
}
.fdt-computed-row:hover { background: #f5f5f5; }
.fdt-computed-row .prop { color: #994500; min-width: 140px; }
.fdt-computed-row .val { color: #1a1aa6; }

/* Styles sub-tab content panels */
.fdt-styles-panel { display: none; flex-direction: column; flex: 1; overflow: hidden; }
.fdt-styles-panel.active { display: flex; }

/* Console tab */
.fdt-console {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
.fdt-console-toolbar {
    display: flex;
    align-items: center;
    background: #f3f3f3;
    border-bottom: 1px solid #e0e0e0;
    padding: 2px 8px;
    gap: 8px;
    flex-shrink: 0;
    font-size: 11px;
    color: #5f6368;
}
.fdt-console-toolbar .fdt-filter-chip {
    color: #5f6368;
    cursor: default;
    padding: 1px 4px;
}
.fdt-console-toolbar .fdt-filter-chip.errors { color: #d93025; }
.fdt-console-toolbar .fdt-filter-chip.warnings { color: #a65f00; }
.fdt-console-toolbar .fdt-filter-chip.info { color: #1a73e8; }
.fdt-console-log {
    flex: 1;
    overflow-y: auto;
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: 11px;
    line-height: 1.5;
    padding: 0;
    background: #ffffff;
}
.fdt-console-log::-webkit-scrollbar { width: 6px; }
.fdt-console-log::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
.fdt-log-entry {
    padding: 2px 8px 2px 24px;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #202124;
}
.fdt-log-entry.warn { background: #fffbe6; border-bottom-color: #f5e6b8; }
.fdt-log-entry.error { background: #fff0f0; border-bottom-color: #f5c6c6; }
.fdt-log-msg { flex: 1; }
.fdt-log-src { color: #5f6368; font-size: 10px; white-space: nowrap; margin-left: 12px; flex-shrink: 0; }
.fdt-console-prompt {
    display: flex;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    padding: 4px 8px;
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: 11px;
    flex-shrink: 0;
    background: #ffffff;
}
.fdt-console-prompt span { color: #1a73e8; margin-right: 6px; }
.fdt-console-prompt input {
    background: none; border: none; color: #202124; outline: none; flex: 1;
    font-family: 'Menlo', 'Consolas', monospace; font-size: 11px;
}

/* Sources tab */
.fdt-sources {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #ffffff;
}
.fdt-sources-sidebar {
    width: 200px;
    flex-shrink: 0;
    overflow-y: auto;
    border-right: 1px solid #e0e0e0;
    font-size: 11px;
    padding: 4px 0;
    background: #f3f3f3;
    color: #202124;
}
.fdt-sources-sidebar::-webkit-scrollbar { width: 6px; }
.fdt-sources-sidebar::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
.fdt-src-item {
    padding: 2px 8px 2px 12px;
    color: #202124;
    cursor: default;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fdt-src-item:hover { background: #e8eaed; }
.fdt-src-item.folder { color: #5f6368; }
.fdt-src-item .icon { margin-right: 4px; font-size: 10px; }
.fdt-sources-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    font-size: 12px;
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border: 2px dashed #e0e0e0;
    margin: 12px;
    border-radius: 4px;
}
.fdt-sources-main a { color: #1a73e8; cursor: default; }
.fdt-sources-right {
    width: 200px;
    flex-shrink: 0;
    border-left: 1px solid #e0e0e0;
    overflow-y: auto;
    font-size: 11px;
    padding: 4px 0;
    background: #f3f3f3;
    color: #202124;
}
.fdt-sources-right::-webkit-scrollbar { width: 6px; }
.fdt-sources-right::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
.fdt-src-section {
    padding: 4px 8px;
    color: #202124;
    font-size: 11px;
    cursor: default;
    border-bottom: 1px solid #e0e0e0;
}
.fdt-src-section .arrow { color: #5f6368; margin-right: 4px; font-size: 9px; }
.fdt-src-section-body {
    padding: 2px 8px 2px 20px;
    color: #5f6368;
    font-size: 11px;
}
.fdt-src-section-body label { cursor: default; display: flex; align-items: center; gap: 4px; }
.fdt-sources-bottom {
    display: flex;
    border-top: 1px solid #e0e0e0;
    background: #f3f3f3;
    padding: 4px 12px;
    gap: 16px;
    font-size: 11px;
    color: #5f6368;
    flex-shrink: 0;
}

/* Network tab */
.fdt-network {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
.fdt-network-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f3f3;
    border-bottom: 1px solid #e0e0e0;
    padding: 2px 8px;
    font-size: 11px;
    flex-shrink: 0;
    color: #5f6368;
}
.fdt-network-toolbar span { color: #5f6368; cursor: default; }
.fdt-network-toolbar span:hover { color: #202124; }
.fdt-network-toolbar .rec { color: #d93025; }
.fdt-net-chips {
    display: flex;
    gap: 6px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 4px 8px;
    font-size: 11px;
    flex-shrink: 0;
}
.fdt-net-chip {
    color: #5f6368;
    cursor: default;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
}
.fdt-net-chip:hover { background: #f5f5f5; color: #202124; }
.fdt-net-chip.active { color: #1a73e8; border-color: #1a73e8; background: #e8f0fe; }
.fdt-net-timeline {
    height: 36px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.fdt-net-timeline-bar {
    position: absolute;
    height: 4px;
    background: #1a73e8;
    border-radius: 2px;
    top: 16px;
    opacity: 0.4;
}
.fdt-network-table {
    flex: 1;
    overflow-y: auto;
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: 11px;
    color: #202124;
    background: #ffffff;
}
.fdt-network-table::-webkit-scrollbar { width: 6px; }
.fdt-network-table::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
.fdt-net-header {
    display: flex;
    background: #f3f3f3;
    border-bottom: 1px solid #e0e0e0;
    padding: 3px 0;
    position: sticky;
    top: 0;
    z-index: 1;
    font-family: 'Segoe UI', sans-serif;
}
.fdt-net-header span, .fdt-net-row span {
    padding: 2px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fdt-net-header span { color: #5f6368; font-size: 11px; }
.fdt-net-row {
    display: flex;
    border-bottom: 1px solid #e8eaed;
    cursor: default;
}
.fdt-net-row:hover { background: #f5f5f5; }
.fdt-net-row .name { color: #202124; }
.fdt-net-row .status { color: #188038; }
.fdt-net-row .status.err { color: #d93025; }
.fdt-net-col-name { width: 30%; }
.fdt-net-col-status { width: 10%; }
.fdt-net-col-type { width: 10%; }
.fdt-net-col-init { width: 20%; }
.fdt-net-col-size { width: 15%; }
.fdt-net-col-time { width: 15%; }
.fdt-net-status {
    border-top: 1px solid #e0e0e0;
    padding: 4px 8px;
    font-size: 11px;
    color: #5f6368;
    background: #f3f3f3;
    flex-shrink: 0;
}

/* Performance tab */
.fdt-performance {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #ffffff;
    color: #202124;
}
.fdt-perf-left {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}
.fdt-perf-right {
    width: 280px;
    flex-shrink: 0;
    border-left: 1px solid #e0e0e0;
    padding: 16px;
    overflow-y: auto;
    background: #ffffff;
}
.fdt-perf-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-shrink: 0;
    background: #f3f3f3;
    border-bottom: 1px solid #e0e0e0;
    padding: 6px 12px;
}
.fdt-perf-header select {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #202124;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 3px;
    outline: none;
}
.fdt-perf-header label {
    font-size: 11px;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: default;
}
.fdt-perf-header label input { accent-color: #1a73e8; }
.fdt-perf-metric-card {
    display: inline-block;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 4px 8px 4px 0;
    min-width: 100px;
    text-align: center;
}
.fdt-perf-metric-card .metric-label { font-size: 11px; color: #5f6368; margin-bottom: 4px; }
.fdt-perf-metric-card .metric-value { font-size: 20px; font-weight: 500; }
.fdt-perf-metric-card .metric-value.good { color: #188038; }
.fdt-perf-metric-card .metric-value.neutral { color: #5f6368; }
.fdt-perf-section-title { font-size: 13px; font-weight: 500; color: #202124; margin: 16px 0 8px; }
.fdt-perf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: default;
    margin-right: 8px;
    margin-top: 8px;
}
.fdt-perf-btn.primary { background: #1a73e8; color: #ffffff; border: none; }
.fdt-perf-btn.primary:hover { background: #1765cc; }
.fdt-perf-btn.secondary { background: #ffffff; color: #1a73e8; border: 1px solid #e0e0e0; }
.fdt-perf-btn.secondary:hover { background: #f5f5f5; }

/* Memory tab */
.fdt-memory {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #ffffff;
}
.fdt-memory-sidebar {
    width: 180px;
    flex-shrink: 0;
    border-right: 1px solid #e0e0e0;
    padding: 8px;
    font-size: 11px;
    color: #5f6368;
    background: #f3f3f3;
}
.fdt-mem-profile-item {
    padding: 4px 8px;
    cursor: default;
    border-radius: 3px;
    margin-bottom: 2px;
}
.fdt-mem-profile-item.active { background: #e8f0fe; color: #1a73e8; }
.fdt-memory-main {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    font-size: 12px;
    color: #202124;
}
.fdt-memory-main h3 { color: #202124; font-size: 13px; margin-bottom: 12px; font-weight: 500; }
.fdt-mem-option {
    padding: 6px 0;
    color: #202124;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}
.fdt-mem-option input[type="radio"] { accent-color: #1a73e8; }
.fdt-mem-option .desc { color: #5f6368; font-size: 11px; margin-left: 22px; display: block; padding-top: 2px; }
.fdt-mem-vm {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}
.fdt-mem-vm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-top: 8px;
}
.fdt-mem-vm-table th {
    text-align: left;
    color: #5f6368;
    font-weight: normal;
    padding: 4px 8px;
    border-bottom: 1px solid #e0e0e0;
}
.fdt-mem-vm-table td {
    padding: 4px 8px;
    color: #202124;
    border-bottom: 1px solid #e8eaed;
}
.fdt-mem-vm label { color: #5f6368; font-size: 11px; }
.fdt-mem-vm select {
    background: #ffffff;
    color: #202124;
    border: 1px solid #e0e0e0;
    padding: 3px 8px;
    font-size: 11px;
    margin-top: 4px;
    outline: none;
    border-radius: 3px;
    display: block;
}
.fdt-memory-bottom {
    border-top: 1px solid #e0e0e0;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #f3f3f3;
}
.fdt-memory-bottom span { color: #5f6368; font-size: 11px; }
.fdt-mem-btn {
    background: #1a73e8;
    color: #ffffff;
    border: none;
    padding: 6px 16px;
    font-size: 11px;
    cursor: default;
    border-radius: 4px;
    font-weight: 500;
}
.fdt-mem-btn:hover { background: #1765cc; }
.fdt-mem-btn.secondary {
    background: #ffffff;
    color: #202124;
    border: 1px solid #e0e0e0;
    margin-right: 8px;
}
.fdt-mem-btn.secondary:hover { background: #f5f5f5; }

@media (max-width: 900px) {
    .side-stream {
        width: 100%;
        left: 0;
        right: 0;
        opacity: 0.15;
        z-index: 0;
        border-left: none;
        background: transparent;
    }
    #bgCanvas { display: none; }
}

@media (max-width: 768px) {
    .terminal-body { padding: 12px; font-size: 0.65rem; line-height: 1.7; }
    .top-bar-right { display: none; }
    .status-bar { font-size: 0.55rem; }
    .ascii-block { font-size: 0.35rem; letter-spacing: -0.5px; }
    .line { font-size: 0.65rem; }
    .login-input { font-size: 0.65rem; }
}

@media (max-width: 480px) {
    .terminal-body { padding: 10px; font-size: 0.58rem; }
    .ascii-block { font-size: 0.28rem; }
    .top-bar { padding: 6px 10px; font-size: 0.55rem; }
    .status-bar { padding: 4px 10px; }
    .line { font-size: 0.58rem; }
}
