:root {
    --bg-color: #1a1b26;
    --sidebar-bg: #1a1b26;
    --text-color: #c0caf5;
    --accent-color: #7aa2f7;
    --hover-bg: #292e42;
    --border-color: #24283b;
}

/* Global JS tooltip — position:fixed, breaks out of overflow:hidden */
#tooltip-global {
    position: fixed;
    z-index: 999999;
    background: #1a1b26;
    color: #c0caf5;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.85);
    border: 1px solid #7aa2f7;
    opacity: 0;
    transition: opacity 0.12s;
    display: block;
}
#tooltip-global.tip-visible { opacity: 1; }
#tooltip-global::after {
    content: '';
    position: absolute;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    border: 5px solid transparent;
}
#tooltip-global.tip-below::after {
    top: -10px;
    border-bottom-color: #7aa2f7;
}
#tooltip-global.tip-above::after {
    bottom: -10px;
    border-top-color: #7aa2f7;
}

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

body, html {
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* Login Screen */
.login-container {
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
}
.login-container.active { display: flex; }
.login-box {
    background: #16161e;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    width: 300px;
}
.login-box input {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    background: #1a1b26;
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 4px;
}
.login-box button {
    width: 100%;
    padding: 10px;
    background: var(--accent-color);
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

/* Layout */
.app-container {
    height: 100%;
    display: none;
    flex-direction: column;
}
.app-container.active { display: flex; }

.main-header {
    height: 50px;
    background: #16161e;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    flex-shrink: 0;
}
.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-right {
    justify-content: flex-end;
}
.main-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}
.version-badge {
    font-size: 11px;
    opacity: 0.5;
    background: var(--hover-bg);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.workspace-area {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar / Panes */
.sidebar, .pane-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-color);
}

.pane-header {
    height: 40px;
    background: #16161e;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 10px;
    flex-shrink: 0;
    justify-content: space-between;
    overflow: visible !important;
}
.pane-header span {
    font-size: 11px;
    font-weight: bold;
    color: #a9b1d6;
}

.header-actions {
    display: flex;
    gap: 4px;
}

/* Tabs */
.tabs-container {
    display: flex;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
    padding-left: 10px;
}
.tab-btn {
    padding: 6px 15px;
    background: #1a1b26;
    border: 1px solid var(--border-color);
    border-bottom: none;
    color: #565f89;
    border-radius: 6px 6px 0 0;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.tab-btn:hover {
    color: #a9b1d6;
    background: #24283b;
}
.tab-btn.active {
    background: #24283b;
    color: #fff;
    border-color: var(--border-color);
}
.tab-btn.type-terminal.active {
    background: #1a1b26;
    border-bottom: 2px solid var(--accent-color);
    color: var(--accent-color);
}

/* File Tree */
#file-tree {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}
.tree-item {
    font-size: 13px;
    padding: 3px 8px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.5;
    color: #a9b1d6;
    user-select: none;
}
.tree-item:hover {
    background: var(--hover-bg);
    color: #c0caf5;
}
.tree-item.folder { font-weight: 500; color: #c0caf5; }
.file-icon { width: 14px; height: 14px; flex-shrink: 0; stroke-width: 1.75; }
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.file-size { font-size: 10px; color: #3b4261; font-family: 'JetBrains Mono', monospace; min-width: 30px; text-align: right; }
.git-badge { font-size: 9px; font-weight: 700; padding: 1px 4px; border-radius: 3px; font-family: 'JetBrains Mono', monospace; line-height: 1.4; }
.git-mod { background: rgba(224,175,104,0.15); color: #e0af68; }
.git-add { background: rgba(158,206,106,0.15); color: #9ece6a; }
.git-del { background: rgba(247,118,142,0.15); color: #f7768e; }
.git-untracked { background: rgba(122,162,247,0.15); color: #7aa2f7; }

/* Breadcrumbs */
.breadcrumbs-bar {
    height: 34px;
    background: #16161e;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 11px;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
}
.breadcrumb-item {
    cursor: pointer;
    color: #565f89;
    transition: color 0.2s;
}
.breadcrumb-item:hover { color: var(--accent-color); }

/* Icons */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #565f89;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s;
}
.icon-btn:hover { color: var(--accent-color); }

.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Terminal */
.terminal-wrapper {
    flex: 1;
    background: #000;
    padding: 8px 12px 24px 12px;
    overflow: hidden;
    min-width: 0;
}
.xterm-viewport { border-radius: 4px; }

/* Split.js Gutters */
.gutter { 
    background: var(--bg-color); 
    background-image: radial-gradient(var(--border-color) 1px, transparent 0);
    background-size: 4px 4px;
}
.gutter.gutter-horizontal { cursor: col-resize; width: 6px; border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); }
.gutter.gutter-vertical { cursor: row-resize; height: 6px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

/* Stats */
.stats-container {
    display: flex;
    gap: 8px;
}
.stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a1b26;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 11px;
    color: #a9b1d6;
}
.icon-small { width: 14px; height: 14px; stroke: currentColor; fill: none; opacity: 0.7; }

/* Modals */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.modal.active { display: flex; }
.modal-content {
    background: #16161e;
    width: 600px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.settings-section {
    margin-bottom: 20px;
    padding: 10px;
    background: #1a1b26;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
.settings-section h3 { font-size: 12px; margin-bottom: 10px; color: var(--accent-color); text-transform: uppercase; }

input[type="text"], input[type="password"] {
    background: #1a1b26;
    border: 1px solid var(--border-color);
    color: #c0caf5;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.btn-primary { background: var(--accent-color); color: #fff; border: none; padding: 5px 12px; border-radius: 4px; cursor: pointer; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.8; }
.btn-secondary { background: #3b4261; color: #fff; border: none; padding: 5px 12px; border-radius: 4px; cursor: pointer; }

/* Management Lists (SSH, Macros) */
.manage-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.manage-item {
    background: #16161e;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}
.manage-item .info {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}
.manage-item .actions {
    display: flex;
    gap: 8px;
}
.btn-icon-small {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.btn-icon-small:hover { background: var(--hover-bg); }
.btn-icon-small svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
.btn-delete { color: #f7768e; }
.btn-edit { color: #7aa2f7; }

/* Status Bar */
.status-bar {
    height: 28px;
    background: #16161e;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 11px;
    color: #565f89;
    flex-shrink: 0;
}
.status-left, .status-right { display: flex; gap: 15px; }
#status-mode { color: #9ece6a; font-weight: bold; }

/* Pane sub-headers */
.pane-subheader {
    height: 26px;
    background: #13131a;
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 10px;
    flex-shrink: 0;
    justify-content: space-between;
}
.pane-subheader[data-collapse-key] {
    cursor: pointer;
    user-select: none;
}
.pane-subheader[data-collapse-key]:hover {
    background: #16161e;
}
.pane-subheader span {
    font-size: 10px;
    font-weight: bold;
    color: #565f89;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.panel-chevron {
    flex-shrink: 0;
    color: #3b4261;
    transition: transform 0.18s ease;
    display: flex;
    align-items: center;
    margin-right: 5px;
}
.pane-subheader.panel-collapsed .panel-chevron {
    transform: rotate(-90deg);
}

/* SSH Servers */
#server-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    max-height: 180px;
    flex-shrink: 0;
}
.server-item {
    background: #16161e;
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.server-item:hover {
    border-color: #9ece6a;
    background: #1a1b26;
    transform: translateY(-1px);
}
.server-name { font-size: 12px; font-weight: 600; color: #9ece6a; display: block; margin-bottom: 2px; }
.server-cmd { font-size: 10px; color: #565f89; font-family: 'JetBrains Mono', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* Macros */
#macro-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
}
.macro-item {
    background: #16161e;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.macro-item:hover {
    border-color: var(--accent-color);
    background: #1a1b26;
    transform: translateY(-1px);
}
.macro-name { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; display: block; }
.macro-cmd { font-size: 11px; color: #565f89; font-family: monospace; }

/* Placeholder Centering */
.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0; left: 0;
    color: #565f89;
    font-size: 14px;
    text-align: center;
    background: var(--bg-color);
    z-index: 5;
}
.placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* Dark Scrollbars */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #16161e;
}
::-webkit-scrollbar-thumb {
    background: #3b4261;
    border-radius: 5px;
    border: 2px solid #16161e;
}
::-webkit-scrollbar-thumb:hover {
    background: #4b5271;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #3b4261 #16161e;
}

/* Drag & Drop Visuals */
#drop-zone-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 27, 38, 0.85);
    backdrop-filter: blur(4px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Critical: allows drop event to pass through if needed, though we catch it on document */
}
#drop-zone-overlay.active {
    display: flex;
}
.drop-zone-content {
    border: 3px dashed var(--accent-color);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    color: var(--accent-color);
    background: rgba(122, 162, 247, 0.05);
    animation: pulse 2s infinite;
}
.drop-zone-content svg {
    Width: 80px; height: 80px; margin-bottom: 20px;
}
.drop-zone-content p {
    font-size: 20px; font-weight: 600;
}
#drop-target-path {
    color: #9ece6a;
    font-family: monospace;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Toasts */
#toast-container {
    position: fixed;
    bottom: 40px;
    right: 20px;
    z-index: 30000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: #16161e;
    border-left: 4px solid var(--accent-color);
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    min-width: 250px;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.toast.success { border-left-color: #9ece6a; }
.toast.error { border-left-color: #f7768e; }
.toast.info { border-left-color: #7aa2f7; }

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

/* IDE Overhaul Styles */

/* Sidebar Tabs */
.sidebar-tabs {
    display: flex;
    background: #16161e;
    border-bottom: 1px solid var(--border-color);
    padding: 0 10px;
    height: 40px;
    flex-shrink: 0;
}
.sidebar-tab {
    background: none;
    border: none;
    color: #565f89;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.sidebar-tab:hover { color: #a9b1d6; }
.sidebar-tab.active { color: var(--accent-color); }
.sidebar-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 2px;
    background: var(--accent-color);
}
.sidebar-tab .lucide { width: 18px; height: 18px; }

/* Search View */
.search-container {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}
.search-input-wrapper {
    position: relative;
}
.search-input-wrapper input {
    width: 100%;
    padding: 8px 10px 8px 35px;
    background: #16161e;
    border: 1px solid var(--border-color);
    color: #c0caf5;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
}
.search-input-wrapper input:focus { border-color: var(--accent-color); }
.search-input-wrapper .search-icon {
    position: absolute;
    left: 10px; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: #565f89;
    pointer-events: none;
}
.search-stats { font-size: 11px; color: #565f89; margin-bottom: 10px; }
.search-results-list {
    flex: 1;
    overflow-y: auto;
}
.search-result-item {
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(36, 40, 59, 0.5);
}
.search-result-item:hover { background: var(--hover-bg); }
.search-result-file {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 4px;
    display: block;
}
.search-result-content {
    font-size: 11px;
    color: #a9b1d6;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.search-result-content b { color: #e0af68; font-weight: bold; }

/* Context Menu */
.context-menu {
    position: fixed;
    background: rgba(22, 22, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 6px;
    z-index: 50000;
    min-width: 180px;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.menu-item {
    padding: 8px 12px;
    font-size: 13px;
    color: #c0caf5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    transition: background 0.2s;
}
.menu-item:hover { background: var(--accent-color); color: #fff; }
.menu-item .lucide { width: 14px; height: 14px; }
.menu-divider { height: 1px; background: var(--border-color); margin: 4px 0; }

/* Command Palette */
.palette-content {
    width: 600px;
    background: rgba(22, 22, 30, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    overflow: hidden;
    position: absolute;
    top: 20%;
    animation: slideDown 0.2s ease-out;
}
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.palette-search {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}
.palette-search input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    outline: none;
}
.palette-results { max-height: 400px; overflow-y: auto; padding: 10px; }
.palette-item {
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}
.palette-item:hover, .palette-item.selected { background: var(--hover-bg); }
.palette-item .name { font-size: 14px; color: #fff; }
.palette-item .shortcut { font-size: 11px; color: #565f89; background: #1a1b26; padding: 2px 6px; border-radius: 3px; }

/* Tab Dirty Indicator */
.tab-btn .dirty-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #e0af68;
    border-radius: 50%;
    margin-left: 8px;
}
.tab-close {
    margin-left: 8px;
    opacity: 0.4;
    transition: opacity 0.2s;
}
.tab-close:hover { opacity: 1; color: #f7768e; }
.tab-label { user-select: none; }
.tab-rename-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--accent-color);
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    outline: none;
    width: 70px;
    padding: 0 2px;
    margin-right: 2px;
}

/* Terminal Search Bar */
#terminal-pane { position: relative; }
#term-search-bar {
    position: absolute;
    top: 48px;
    right: 10px;
    z-index: 100;
    background: rgba(22,22,30,0.97);
    backdrop-filter: blur(8px);
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    padding: 6px 10px;
    display: none;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
#term-search-bar.active { display: flex; }
#term-search-input {
    background: transparent;
    border: none;
    color: #c0caf5;
    outline: none;
    font-size: 12px;
    width: 200px;
    font-family: 'JetBrains Mono', monospace;
}
#term-search-input::placeholder { color: #3b4261; }

/* Help Modal */
.help-modal-content {
    background: #16161e;
    width: 660px;
    max-height: 82vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.help-section { margin-bottom: 18px; }
.help-section h3 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent-color);
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}
.help-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 4px 0;
    font-size: 12px;
}
.help-key {
    background: #24283b;
    border: 1px solid #3b4261;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #e0af68;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 140px;
    text-align: center;
}
.help-desc { color: #a9b1d6; line-height: 1.5; }

/* ── Tree Filter Bar ─────────────────────────────────────────────────────── */
#tree-filter-bar {
    padding: 4px 8px;
    border-bottom: 1px solid var(--border-color);
    background: var(--sidebar-bg);
}
#tree-filter-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #0d0e17;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 3px 8px;
    transition: border-color 0.15s;
}
#tree-filter-wrap:focus-within { border-color: var(--accent-color); }
#tree-filter-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #c0caf5;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    padding: 1px 0;
}
#tree-filter-input::placeholder { color: #565f89; }
#tree-filter-global-btn,
#tree-filter-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #565f89;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 11px;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color 0.15s, background 0.15s;
}
#tree-filter-global-btn:hover { color: var(--accent-color); background: rgba(122,162,247,0.08); }
#tree-filter-close-btn:hover  { color: #f7768e; background: rgba(247,118,142,0.08); }
#tree-search-btn.active { color: var(--accent-color); }

/* ── Terminal Reconnect Overlay ─────────────────────────────────────────── */
.term-reconnect-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 14, 23, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(2px);
}
.term-reconnect-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 36px;
    background: #16161e;
    border: 1px solid #f7768e40;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}
.tab-disconnected { opacity: 0.5; color: #f7768e !important; }

/* ── Command Palette mode buttons ───────────────────────────────────────── */
.palette-mode-btns {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 8px;
}
.palette-mode-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: #565f89;
    cursor: pointer;
    font-size: 11px;
    padding: 3px 8px;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.palette-mode-btn:hover { color: #c0caf5; border-color: #3b4261; }
.palette-mode-btn.active { color: var(--accent-color); border-color: var(--accent-color); background: rgba(122,162,247,0.08); }

/* ── Markdown Preview ──────────────────────────────────────────────────────── */
#md-preview {
    font-size: 14px;
    line-height: 1.75;
    color: #c0caf5;
}
#md-preview h1, #md-preview h2, #md-preview h3, #md-preview h4 {
    color: #7aa2f7;
    margin: 1.2em 0 0.5em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3em;
}
#md-preview p { margin: 0.7em 0; }
#md-preview code {
    background: #16161e;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #9ece6a;
}
#md-preview pre {
    background: #16161e;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 14px;
    overflow-x: auto;
    margin: 1em 0;
}
#md-preview pre code { background: none; padding: 0; font-size: 13px; }
#md-preview a { color: #7aa2f7; }
#md-preview blockquote {
    border-left: 3px solid #7aa2f7;
    margin: 0.8em 0;
    padding: 8px 16px;
    background: rgba(122,162,247,0.06);
    color: #a9b1d6;
}
#md-preview table { border-collapse: collapse; width: 100%; margin: 1em 0; }
#md-preview th, #md-preview td { border: 1px solid var(--border-color); padding: 6px 12px; text-align: left; }
#md-preview th { background: #16161e; color: var(--accent-color); }
#md-preview img { max-width: 100%; }
#md-preview hr { border: none; border-top: 1px solid var(--border-color); margin: 1.5em 0; }
#md-preview ul, #md-preview ol { padding-left: 1.5em; margin: 0.5em 0; }
#md-preview li { margin: 0.2em 0; }
#md-preview-btn.md-active { color: var(--accent-color); }

/* ── Git Diff Overlay ──────────────────────────────────────────────────────── */
.diff-overlay-header {
    height: 38px;
    background: #16161e;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    flex-shrink: 0;
}

/* ── Log Viewer (Tail) ─────────────────────────────────────────────────────── */
.log-viewer { flex-direction: column; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.log-toolbar {
    height: 36px;
    background: #16161e;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    flex-shrink: 0;
    gap: 8px;
}
.log-filename {
    font-size: 11px;
    color: #565f89;
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}
.log-content {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
    background: #0d0e17;
}
.log-line {
    padding: 1px 16px;
    line-height: 1.65;
    color: #a9b1d6;
    white-space: pre-wrap;
    word-break: break-all;
    border-left: 3px solid transparent;
    font-size: 12px;
}
.log-error { color: #f7768e; background: rgba(247,118,142,0.05); border-left-color: #f7768e; }
.log-warn  { color: #e0af68; background: rgba(224,175,104,0.05); border-left-color: #e0af68; }
.log-info  { color: #9ece6a; border-left-color: rgba(158,206,106,0.3); }
.log-debug { color: #565f89; }

/* ── Inline Tree ─────────────────────────────────────────────────────────────── */
.tree-arrow {
    width: 12px; height: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 8px; color: #565f89;
    transition: transform 0.15s, color 0.15s;
    cursor: pointer; user-select: none;
}
.tree-arrow:hover { color: var(--accent-color); }
.tree-arrow.open { transform: rotate(90deg); color: var(--accent-color); }
.tree-item.selected { background: rgba(122,162,247,0.18) !important; outline: 1px solid rgba(122,162,247,0.3); }
.tree-item.drop-target { background: rgba(158,206,106,0.15) !important; outline: 1px dashed #9ece6a; }
#file-tree ul { list-style: none; }

/* ── Multi-select Bar ─────────────────────────────────────────────────────────── */
#multi-select-bar {
    display: none; align-items: center; justify-content: space-between;
    padding: 3px 8px;
    background: rgba(122,162,247,0.1);
    border-bottom: 1px solid rgba(122,162,247,0.25);
    font-size: 11px; color: var(--accent-color);
    flex-shrink: 0; gap: 4px;
}
#multi-select-bar.active { display: flex; }
.multi-select-actions { display: flex; gap: 2px; }

/* ── Git Panel ────────────────────────────────────────────────────────────────── */
#git-panel {
    padding: 4px 6px; max-height: 200px; overflow-y: auto; flex-shrink: 0;
}
.git-file-item {
    display: flex; align-items: center; gap: 5px;
    padding: 3px 4px; border-radius: 3px; font-size: 11px; cursor: pointer;
}
.git-file-item:hover { background: var(--hover-bg); }
.git-file-xy {
    font-family: 'JetBrains Mono', monospace; font-size: 10px;
    padding: 0 3px; border-radius: 2px; flex-shrink: 0;
    min-width: 18px; text-align: center; font-weight: 700;
}
.git-xy-M { background: rgba(224,175,104,0.2); color: #e0af68; }
.git-xy-A { background: rgba(158,206,106,0.2); color: #9ece6a; }
.git-xy-D { background: rgba(247,118,142,0.2); color: #f7768e; }
.git-xy-R { background: rgba(187,154,247,0.2); color: #bb9af7; }
.git-xy-U,.git-xy-? { background: rgba(122,162,247,0.2); color: #7aa2f7; }
.git-file-staged { background: rgba(158,206,106,0.07); }
.git-file-name {
    flex: 1; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; color: #a9b1d6;
}
.git-file-action {
    font-size: 9px; padding: 1px 5px; border-radius: 2px;
    border: none; cursor: pointer; flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace; line-height: 1.5;
    transition: background 0.15s;
}
.git-stage-btn   { background: rgba(158,206,106,0.2); color: #9ece6a; }
.git-unstage-btn { background: rgba(247,118,142,0.2); color: #f7768e; }
.git-stage-btn:hover   { background: rgba(158,206,106,0.4); }
.git-unstage-btn:hover { background: rgba(247,118,142,0.4); }
.git-section-label {
    font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px;
    color: #3b4261; padding: 4px 4px 2px;
}
#git-commit-area {
    padding: 6px; border-top: 1px solid var(--border-color);
    display: flex; flex-direction: column; gap: 5px; flex-shrink: 0;
}
#git-commit-msg {
    width: 100%; background: #0d0e17; border: 1px solid var(--border-color);
    color: #c0caf5; font-size: 11px; font-family: 'JetBrains Mono', monospace;
    border-radius: 4px; padding: 5px 8px; resize: none; outline: none;
}
#git-commit-msg:focus { border-color: var(--accent-color); }

/* ── Git Log Tab ──────────────────────────────────────────────────────────────── */
.git-log-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column;
    background: #0d0e17; z-index: 7;
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
.git-log-toolbar {
    height: 36px; background: #16161e; border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; padding: 0 12px; gap: 8px;
    font-size: 11px; color: #565f89; flex-shrink: 0;
}
.git-log-body { overflow-y: auto; flex: 1; }
.git-log-row {
    display: flex; align-items: baseline; gap: 10px;
    padding: 5px 12px; border-bottom: 1px solid rgba(36,40,59,0.5); cursor: default;
}
.git-log-row:hover { background: var(--hover-bg); }
.git-log-hash { color: #bb9af7; min-width: 60px; flex-shrink: 0; }
.git-log-date { color: #3b4261; min-width: 82px; flex-shrink: 0; font-size: 11px; }
.git-log-author { color: #7aa2f7; min-width: 90px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; font-size: 11px; }
.git-log-subject { color: #a9b1d6; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Docker Panel ─────────────────────────────────────────────────────────────── */
#docker-panel {
    padding: 4px 6px; max-height: 220px; overflow-y: auto; flex-shrink: 0;
}
.docker-item {
    display: flex; align-items: center; gap: 5px;
    padding: 4px 5px; border-radius: 4px; font-size: 11px; margin-bottom: 2px;
    border: 1px solid transparent;
}
.docker-item:hover { background: var(--hover-bg); border-color: var(--border-color); }
.docker-status-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.docker-status-dot.running { background: #9ece6a; box-shadow: 0 0 5px rgba(158,206,106,0.6); }
.docker-status-dot.stopped { background: #565f89; }
.docker-name {
    flex: 1; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; color: #c0caf5; font-weight: 500;
}
.docker-status-text {
    font-size: 10px; color: #565f89; white-space: nowrap;
    flex-shrink: 0; max-width: 70px; overflow: hidden; text-overflow: ellipsis;
}
.docker-actions { display: flex; gap: 2px; flex-shrink: 0; }
.docker-action-btn {
    background: none; border: 1px solid var(--border-color); color: #565f89;
    cursor: pointer; border-radius: 3px; padding: 1px 5px;
    font-size: 10px; transition: all 0.15s; line-height: 1.4;
}
.docker-action-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }
.docker-action-btn.stop-btn:hover  { border-color: #f7768e; color: #f7768e; }
.docker-action-btn.start-btn:hover { border-color: #9ece6a; color: #9ece6a; }
.docker-action-btn.log-btn:hover   { border-color: #7dcfff; color: #7dcfff; }

/* ── Config Panels (System & AI) ─────────────────────────────────────────── */
#sysconfig-panel, #aiconfig-panel {
    padding: 4px 6px;
    max-height: 200px;
    overflow-y: auto;
    flex-shrink: 0;
}
.config-panel-loading {
    padding: 8px;
    font-size: 11px;
    color: #565f89;
    text-align: center;
}
.config-group-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #565f89;
    letter-spacing: 0.03em;
    padding: 6px 4px 2px 4px;
    margin-top: 2px;
}
.config-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.12s;
    border: 1px solid transparent;
}
.config-item:hover {
    background: var(--hover-bg);
    border-color: var(--border-color);
}
.config-item-missing { opacity: 0.45; }
.config-item-missing:hover { opacity: 0.75; }
.config-item-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.config-item-tool {
    font-size: 11px;
    flex-shrink: 0;
    line-height: 1;
}
.config-item-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #c0caf5;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
}
.config-item-badge {
    font-size: 8px;
    color: #565f89;
    border: 1px solid #3b4261;
    border-radius: 3px;
    padding: 0 3px;
    flex-shrink: 0;
}

/* ── Docker Badge ──────────────────────────────────────────────────────────────── */
#docker-notify-badge { cursor: pointer; transition: opacity 0.15s; min-width: 16px; text-align: center; }
#docker-notify-badge:hover { opacity: 0.8; }

.docker-stopped-popover {
    position: fixed; z-index: 9999;
    background: #1e2030; border: 1px solid #f7768e;
    border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    min-width: 280px; max-width: 360px;
    font-size: 12px; overflow: hidden;
}
.docker-stopped-popover-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px; background: rgba(247,118,142,0.12);
    border-bottom: 1px solid rgba(247,118,142,0.3);
    color: #f7768e; font-weight: 600; font-size: 11px; letter-spacing: 0.04em;
}
.docker-stopped-popover-close {
    background: none; border: none; color: #565f89; cursor: pointer;
    font-size: 16px; line-height: 1; padding: 0 2px;
    transition: color 0.15s;
}
.docker-stopped-popover-close:hover { color: #f7768e; }
.docker-stopped-popover-item {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.12s;
}
.docker-stopped-popover-item:last-child { border-bottom: none; }
.docker-stopped-popover-item:hover { background: rgba(255,255,255,0.04); }
.docker-stopped-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #f7768e; flex-shrink: 0;
}
.docker-stopped-name {
    flex: 1; color: #c0caf5; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.docker-stopped-status {
    font-size: 10px; color: #565f89; white-space: nowrap; flex-shrink: 0;
}
.docker-stopped-start-btn {
    background: none; border: 1px solid rgba(158,206,106,0.4); color: #9ece6a;
    border-radius: 4px; padding: 2px 8px; font-size: 10px; cursor: pointer;
    transition: all 0.15s; white-space: nowrap; flex-shrink: 0;
}
.docker-stopped-start-btn:hover { background: rgba(158,206,106,0.12); border-color: #9ece6a; }
.docker-stopped-start-btn:disabled { opacity: 0.5; cursor: default; }

/* ── Editor Breadcrumbs ───────────────────────────────────────────────────────── */
.editor-breadcrumbs-bar {
    height: 24px; background: #13131a; border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; padding: 0 8px;
    font-size: 11px; overflow-x: auto; white-space: nowrap;
    flex-shrink: 0; gap: 0;
    font-family: 'JetBrains Mono', monospace;
}
.bc-crumb { color: #3b4261; cursor: pointer; padding: 0 3px; border-radius: 2px; transition: color 0.15s; }
.bc-crumb:hover { color: var(--accent-color); }
.bc-crumb.bc-last { color: #a9b1d6; cursor: default; }
.bc-crumb.bc-last:hover { color: #a9b1d6; }
.bc-sep { color: #24283b; }

/* ── Split View ───────────────────────────────────────────────────────────────── */
#editor-body-wrap { flex: 1; display: flex; overflow: hidden; position: relative; }
#editor-container { min-width: 0; }
#editor-container-right { min-width: 0; }

/* ── Inline Tree Rename ───────────────────────────────────────────────────────── */
.tree-rename-input { background:#1e2030; color:#c0caf5; border:1px solid var(--accent-color); border-radius:3px; padding:0 4px; font-size:12px; font-family:'JetBrains Mono',monospace; width:120px; height:18px; outline:none; flex-shrink:1; min-width:60px; max-width:180px; }
#editor-split-gutter { user-select: none; }
#editor-split-gutter:hover { background: var(--accent-color); transition: background 0.15s; }
#editor-split-gutter.dragging { background: var(--accent-color); }
#split-view-btn.split-active { color: var(--accent-color); }
#editor-container-right .placeholder { background: #141520; }
#split-close-btn { position:absolute; top:4px; right:6px; z-index:20; background:rgba(26,27,38,0.85); border:1px solid var(--border-color); color:#a9b1d6; font-size:13px; cursor:pointer; padding:1px 7px; border-radius:3px; line-height:1.6; opacity:0.7; transition:opacity 0.15s,color 0.15s; }
#split-close-btn:hover { opacity:1; color:#f7768e; border-color:#f7768e; }

/* ── Toggle buttons (word-wrap, minimap) ─────────────────────────────────────── */
#word-wrap-btn.active, #minimap-btn.active { color: var(--accent-color); }

/* ── Terminal Split ───────────────────────────────────────────────────────────── */
#terminal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
    min-height: 0;
}
#terminal-container {
    flex: 1;
    min-width: 0;
}
#terminal-container-right {
    min-width: 0;
}
#terminal-split-gutter {
    user-select: none;
}
#terminal-split-gutter:hover { background: var(--accent-color); transition: background 0.15s; }
#terminal-split-gutter.dragging { background: var(--accent-color); }
#terminal-split-btn.term-split-active { color: var(--accent-color); }

/* ── Find & Replace Modal ─────────────────────────────────────────────────────── */
.fr-content {
    background: #16161e;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 520px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}
.fr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #13131a;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.fr-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.fr-row { display: flex; align-items: center; gap: 10px; }
.fr-label {
    font-size: 11px;
    color: #565f89;
    min-width: 60px;
    text-align: right;
    flex-shrink: 0;
}
.fr-row input {
    flex: 1;
    background: #0d0e17;
    border: 1px solid var(--border-color);
    color: #c0caf5;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: border-color 0.15s;
}
.fr-row input:focus { border-color: var(--accent-color); }
.fr-actions { display: flex; gap: 8px; padding-top: 4px; }
#fr-results {
    max-height: 200px;
    overflow-y: auto;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
}
.fr-msg { color: #565f89; padding: 6px 4px; }
.fr-file {
    padding: 3px 8px;
    color: #7aa2f7;
    border-radius: 3px;
    cursor: default;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fr-file:hover { background: var(--hover-bg); }

/* ── Status Bar interactive items ───────────────────────────────────────────── */
#status-git:hover, #status-position:hover, #status-lang:hover {
    color: var(--accent-color);
    background: rgba(122,162,247,0.08);
    border-radius: 3px;
    padding: 1px 4px;
    margin: -1px -4px;
}

/* ── Branch / Stash / Lang Modals ───────────────────────────────────────────── */
.branch-modal-content, .lang-modal-content {
    background: #16161e;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 400px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    animation: slideDown 0.2s ease-out;
}
.branch-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: #13131a;
    border-bottom: 1px solid var(--border-color);
    font-size: 11px; font-weight: 600; color: var(--accent-color);
    letter-spacing: 0.4px; text-transform: uppercase; flex-shrink: 0;
}
.branch-modal-search {
    display: flex; gap: 6px; padding: 8px;
    border-bottom: 1px solid var(--border-color); flex-shrink: 0;
}
.branch-modal-search input, .lang-modal-content input {
    flex: 1; background: #0d0e17; border: 1px solid var(--border-color);
    color: #c0caf5; padding: 5px 10px; border-radius: 4px;
    font-size: 12px; outline: none; font-family: 'JetBrains Mono', monospace;
    transition: border-color 0.15s;
}
.branch-modal-search input:focus, .lang-modal-content input:focus { border-color: var(--accent-color); }
#branch-list, #stash-list, #lang-list { overflow-y: auto; flex: 1; padding: 4px; }
.branch-item, .stash-item, .lang-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px; border-radius: 4px; cursor: pointer;
    font-size: 12px; font-family: 'JetBrains Mono', monospace;
    color: #a9b1d6; transition: background 0.15s;
}
.branch-item:hover, .stash-item:hover, .lang-item:hover { background: var(--hover-bg); }
.branch-item.current { color: #9ece6a; font-weight: 600; }
.branch-item.remote { color: #565f89; }
.branch-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branch-badge {
    font-size: 9px; padding: 1px 5px; border-radius: 3px; flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace; font-weight: 700;
}
.branch-badge.current { background: rgba(158,206,106,0.2); color: #9ece6a; }
.branch-badge.remote  { background: rgba(122,162,247,0.15); color: #7aa2f7; }
.stash-ref { color: #bb9af7; min-width: 60px; flex-shrink: 0; font-size: 10px; }
.stash-msg { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stash-actions { display: flex; gap: 3px; flex-shrink: 0; }
.stash-pop-btn  { background: rgba(158,206,106,0.2); color: #9ece6a; border: none; border-radius: 3px; cursor: pointer; font-size: 10px; padding: 2px 6px; }
.stash-drop-btn { background: rgba(247,118,142,0.15); color: #f7768e; border: none; border-radius: 3px; cursor: pointer; font-size: 10px; padding: 2px 6px; }
.stash-pop-btn:hover  { background: rgba(158,206,106,0.4); }
.stash-drop-btn:hover { background: rgba(247,118,142,0.35); }

/* ── Tmux New Terminal Popover ── */
.tmux-new-popover {
    position: fixed; z-index: 9999;
    background: #1e2030; border: 1px solid #7aa2f7;
    border-radius: 8px; min-width: 280px; max-width: 340px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    font-size: 12px; overflow: hidden;
}
.tmux-new-popover-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px; background: rgba(122,162,247,0.10);
    border-bottom: 1px solid rgba(122,162,247,0.2);
    color: #7aa2f7; font-weight: 600; font-size: 11px; letter-spacing: 0.04em;
}
.tmux-new-popover-close {
    background: none; border: none; color: #565f89; cursor: pointer;
    font-size: 16px; line-height: 1; padding: 0 2px; transition: color 0.15s;
}
.tmux-new-popover-close:hover { color: #f7768e; }
.tmux-new-popover-section { padding: 8px 10px; }
.tmux-new-popover-divider { border-top: 1px solid rgba(255,255,255,0.06); }
.tmux-new-popover-label {
    font-size: 10px; color: #565f89; letter-spacing: 0.06em;
    text-transform: uppercase; margin-bottom: 6px;
}
.tmux-new-popover-plain-btn {
    display: flex; align-items: center; gap: 7px;
    width: 100%; background: rgba(122,162,247,0.08); border: 1px solid rgba(122,162,247,0.2);
    border-radius: 5px; color: #a9b1d6; cursor: pointer; padding: 7px 10px;
    font-size: 12px; font-family: 'JetBrains Mono', monospace; transition: background 0.15s;
}
.tmux-new-popover-plain-btn:hover { background: rgba(122,162,247,0.18); color: #c0caf5; }
.tmux-new-popover-input-row {
    display: flex; gap: 6px; margin-bottom: 6px;
}
.tmux-session-input {
    flex: 1; background: #0d0e17; border: 1px solid var(--border-color);
    color: #c0caf5; padding: 5px 8px; border-radius: 4px;
    font-size: 12px; outline: none; font-family: 'JetBrains Mono', monospace;
    transition: border-color 0.15s;
}
.tmux-session-input:focus { border-color: #7aa2f7; }
.tmux-attach-btn {
    background: rgba(122,162,247,0.15); border: 1px solid rgba(122,162,247,0.3);
    color: #7aa2f7; border-radius: 4px; cursor: pointer; padding: 5px 10px;
    font-size: 11px; font-family: 'JetBrains Mono', monospace; transition: background 0.15s;
    white-space: nowrap;
}
.tmux-attach-btn:hover { background: rgba(122,162,247,0.3); }
.tmux-sessions-list { max-height: 180px; overflow-y: auto; }
.tmux-sessions-loading, .tmux-sessions-empty {
    padding: 8px 4px; color: #565f89; font-size: 11px; text-align: center;
}
.tmux-session-item {
    display: flex; align-items: center; gap: 7px;
    padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.12s; border-radius: 3px;
}
.tmux-session-item:last-child { border-bottom: none; }
.tmux-session-item:hover { background: rgba(255,255,255,0.04); }
.tmux-session-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
    background: #565f89;
}
.tmux-session-dot--attached { background: #9ece6a; box-shadow: 0 0 5px rgba(158,206,106,0.5); }
.tmux-session-name { flex: 1; color: #c0caf5; font-family: 'JetBrains Mono', monospace; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmux-session-info { color: #565f89; font-size: 10px; flex-shrink: 0; }
.tmux-session-attach-btn {
    background: rgba(158,206,106,0.12); border: 1px solid rgba(158,206,106,0.25);
    color: #9ece6a; border-radius: 3px; cursor: pointer; padding: 2px 8px;
    font-size: 10px; font-family: 'JetBrains Mono', monospace; flex-shrink: 0; transition: background 0.15s;
}
.tmux-session-attach-btn:hover { background: rgba(158,206,106,0.28); }
