        :root {
            --bg-dark: #0a0a0f;
            --bg-card: #0d1117;
            --bg-card-hover: #161b22;
            --neon-blue: #00d4ff;
            --neon-green: #00ff88;
            --neon-pink: #ff0080;
            --neon-purple: #8b5cf6;
            --neon-yellow: #ffd000;
            --neon-orange: #ff6b35;
            --text-primary: #e0e0e0;
            --text-secondary: #6b7280;
            --border-color: #1e293b;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: var(--bg-dark);
            color: var(--text-primary);
            overflow: hidden;
            height: 100vh;
        }
        code, pre, .code, textarea#ideaDescription {
            font-family: 'Fira Code', monospace;
        }
        body { display: flex; }
        .layout {
            display: flex;
            height: 100vh;
            flex: 1;
            margin-left: 220px;
        }
        @media (max-width: 1024px) { .layout { margin-left: 70px; } }
        @media (max-width: 768px) { .layout { margin-left: 0; } }
        .ideas-panel {
            width: 0;
            min-width: 0;
            overflow: hidden;
            background: var(--bg-card);
            border-right: none;
            display: flex;
            flex-direction: column;
            transition: width 0.25s ease, min-width 0.25s ease;
            flex-shrink: 0;
        }
        .ideas-panel.open {
            width: 260px;
            min-width: 260px;
            border-right: 1px solid var(--border-color);
        }
        .ideas-panel-header {
            padding: 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .ideas-panel-title {
            font-size: 1.1em;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }
        .icon-btn {
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            width: 34px;
            height: 34px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            font-size: 18px;
        }
        .icon-btn:hover {
            border-color: var(--neon-blue);
            color: var(--neon-blue);
        }
        .search-box {
            padding: 16px;
            border-bottom: 1px solid var(--border-color);
        }
        .search-input {
            width: 100%;
            padding: 8px 12px;
            background: var(--bg-dark);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            color: var(--text-primary);
            font-size: 0.9em;
            outline: none;
            transition: border-color 0.2s;
        }
        .search-input:focus {
            border-color: var(--neon-blue);
        }
        .ideas-list {
            flex: 1;
            overflow-y: auto;
            padding: 8px;
        }
        .idea-item {
            padding: 12px;
            margin-bottom: 4px;
            background: var(--bg-dark);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .idea-item:hover {
            border-color: var(--neon-blue);
            background: var(--bg-card-hover);
        }
        .idea-item.active {
            border-color: var(--neon-blue);
            background: var(--bg-card-hover);
            box-shadow: 0 0 12px rgba(0,212,255,0.3);
        }
        .idea-name {
            font-size: 0.9em;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .idea-status {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--neon-green);
        }
        .idea-delete {
            opacity: 0;
            transition: opacity 0.2s;
        }
        .idea-item:hover .idea-delete {
            opacity: 1;
        }
        .main-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .topbar {
            background: rgba(13,17,23,0.6);
            border-bottom: 1px solid rgba(255,255,255,0.05);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 24px;
            flex-shrink: 0;
        }
        .tabs {
            display: flex;
            gap: 2px;
        }
        .tab {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            padding: 8px 16px;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .tab:hover {
            color: var(--text-primary);
        }
        .tab.active {
            background: rgba(0,212,255,0.15);
            color: var(--neon-blue);
        }
        .main-body {
            display: flex;
            flex: 1;
            overflow: hidden;
        }
        .content-area {
            flex: 1;
            overflow-y: auto;
            padding: 24px;
            padding-right: 72px; /* отступ под fixed right-nav */
            position: relative;
        }
        /* ── Right Nav ── */
        .right-nav {
            position: fixed;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            z-index: 100;
            width: 64px;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 16px 0;
        }
        .right-nav-connector {
            width: 1px;
            height: 12px;
            background: rgba(255,255,255,0.12);
            flex-shrink: 0;
        }
        .right-nav-item {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 1.5px solid rgba(255,255,255,0.15);
            background: rgba(255,255,255,0.04);
            cursor: pointer;
            transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, transform 0.2s;
            color: rgba(255,255,255,0.45);
            flex-shrink: 0;
            z-index: 1;
        }
        .right-nav-item svg { pointer-events: none; }
        .right-nav-item:hover {
            border-color: var(--neon-purple, #8b5cf6);
            background: rgba(139,92,246,0.15);
            color: var(--neon-purple, #8b5cf6);
            box-shadow: 0 0 14px rgba(139,92,246,0.45);
            transform: scale(1.12);
        }
        .right-nav-item.active {
            border-color: var(--neon-blue);
            border-width: 2px;
            background: rgba(0,212,255,0.15);
            color: var(--neon-blue);
            box-shadow: 0 0 20px rgba(0,212,255,0.5);
            transform: scale(1.22);
        }
        .right-nav-item::before {
            content: attr(data-label);
            position: absolute;
            right: calc(100% + 14px);
            top: 50%;
            transform: translateY(-50%);
            background: rgba(13,17,23,0.92);
            border: 1px solid rgba(255,255,255,0.12);
            color: var(--text-primary, #e6edf3);
            padding: 5px 12px;
            border-radius: 6px;
            font-size: 0.78rem;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            letter-spacing: 0.3px;
            z-index: 9999;
            box-shadow: 0 4px 12px rgba(0,0,0,0.4);
            transition: opacity 0.15s;
        }
        .right-nav-item:hover::before { opacity: 1; }
        .tab-content {
            display: none;
        }
        .tab-content.active {
            display: block;
            animation: fadeIn 0.3s;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
        }
        .card-header {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--text-secondary);
            margin-bottom: 12px;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-label {
            font-size: 0.75em;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-secondary);
            margin-bottom: 8px;
            display: block;
        }
        textarea, input[type="text"] {
            width: 100%;
            padding: 12px;
            background: var(--bg-dark);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            color: var(--text-primary);
            font-family: inherit;
            font-size: 0.95em;
            outline: none;
            transition: border-color 0.2s;
            resize: vertical;
        }
        textarea:focus, input[type="text"]:focus {
            border-color: var(--neon-blue);
        }
        textarea {
            min-height: 120px;
            line-height: 1.6;
        }
        .drop-zone {
            border: 2px dashed var(--border-color);
            border-radius: 8px;
            padding: 40px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        .drop-zone:hover, .drop-zone.dragover {
            border-color: var(--neon-blue);
            background: rgba(0, 212, 255, 0.05);
        }
        .drop-zone-icon {
            font-size: 48px;
            margin-bottom: 12px;
        }
        .drop-zone-text {
            color: var(--text-secondary);
            font-size: 0.9em;
        }
        .thumbnail-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 12px;
            margin-top: 16px;
        }
        .thumbnail {
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            aspect-ratio: 16/9;
            transition: all 0.2s;
        }
        .thumbnail:hover {
            border-color: var(--neon-blue);
            transform: translateY(-2px);
        }
        .thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .thumbnail-delete {
            position: absolute;
            top: 6px;
            right: 6px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: rgba(255, 0, 128, 0.9);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s;
        }
        .thumbnail:hover .thumbnail-delete {
            opacity: 1;
        }
        .btn {
            padding: 10px 18px;
            border-radius: 6px;
            border: 1px solid rgba(0,212,255,0.3);
            background: rgba(0,212,255,0.1);
            color: var(--neon-blue);
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .btn:hover {
            background: rgba(0,212,255,0.2);
        }
        .btn-primary {
            background: rgba(0,212,255,0.15);
            border-color: rgba(0,212,255,0.4);
            color: var(--neon-blue);
        }
        .btn-primary:hover {
            background: rgba(0,212,255,0.25);
        }
        .btn-danger {
            background: rgba(255,0,128,0.1);
            border-color: rgba(255,0,128,0.3);
            color: var(--neon-pink);
        }
        .url-row {
            display: flex;
            gap: 8px;
        }
        .url-row input {
            flex: 1;
        }
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.75em;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .status-badge.pending {
            background: rgba(255, 208, 0, 0.15);
            color: var(--neon-yellow);
        }
        .status-badge.running {
            background: rgba(139, 92, 246, 0.15);
            color: var(--neon-purple);
        }
        .status-badge.done {
            background: rgba(0, 255, 136, 0.15);
            color: var(--neon-green);
        }
        .status-badge.failed {
            background: rgba(255, 0, 128, 0.15);
            color: var(--neon-pink);
        }
        .color-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 12px;
        }
        .color-swatch {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 12px;
            background: var(--bg-dark);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .color-swatch:hover {
            border-color: var(--neon-blue);
        }
        .color-circle {
            width: 100%;
            aspect-ratio: 1;
            border-radius: 8px;
            border: 2px solid rgba(255,255,255,0.08);
        }
        .color-label {
            font-size: 0.75em;
            color: var(--text-secondary);
            text-align: center;
        }
        .color-hex {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8em;
            text-align: center;
        }
        .split-view {
            display: grid;
            grid-template-columns: 40% 60%;
            gap: 20px;
            height: calc(100vh - 180px);
        }
        /* 3-panel layout */
        .split-view-3 {
            display: grid;
            grid-template-columns: var(--sv3-c1, 220px) 4px var(--sv3-c2, 1fr) 4px var(--sv3-c3, 1fr);
            gap: 0;
            height: calc(100vh - 180px);
        }
        .resize-handle {
            cursor: col-resize;
            background: var(--border-color);
            border-radius: 2px;
            transition: background 0.15s;
            position: relative;
            z-index: 5;
        }
        .resize-handle:hover, .resize-handle.dragging {
            background: var(--neon-blue);
        }
        @media (max-width: 1200px) {
            .split-view-3 { grid-template-columns: 180px 0 1fr 0 0 !important; }
            .split-view-3 .resize-handle { display: none; }
            .split-view-3 > :nth-child(5) { display: none; }
        }
        .split-panel {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .split-panel-header {
            padding: 14px 20px;
            border-bottom: 1px solid var(--border-color);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--text-secondary);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .split-panel-content {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
        }
        .code-editor-wrapper {
            display: flex;
            flex-direction: column;
            height: 100%;
            overflow: hidden;
        }
        .code-editor-wrapper .CodeMirror {
            flex: 1;
            height: auto;
            background: #0d1117;
            font-family: 'JetBrains Mono', 'Fira Code', monospace;
            font-size: 13px;
            line-height: 1.6;
            border: 1px solid var(--border-color);
            border-radius: 0 0 6px 6px;
        }
        .code-editor-wrapper .CodeMirror-gutters {
            background: #161b22;
            border-right: 1px solid var(--border-color);
        }
        /* CodeMirror dialog dark theme */
        .CodeMirror-dialog { background: var(--bg-card-hover); border-bottom: 1px solid rgba(255,255,255,0.08); color: var(--text-primary); padding: 4px 8px; }
        .CodeMirror-dialog input { background: var(--bg-dark); border: 1px solid var(--border-color); color: var(--text-primary); padding: 4px 8px; border-radius: 4px; font-family: 'Fira Code', monospace; font-size: 13px; }
        .CodeMirror-dialog button { background: var(--neon-blue); color: #000; border: none; padding: 4px 10px; border-radius: 4px; cursor: pointer; margin-left: 4px; }
        /* Diff modal */
        .diff-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000; display: flex; align-items: center; justify-content: center; }
        .diff-modal { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; width: 90%; max-width: 900px; max-height: 80vh; display: flex; flex-direction: column; }
        .diff-modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
        .diff-modal-body { flex: 1; overflow: auto; padding: 16px; font-family: 'Fira Code', monospace; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
        .diff-add { background: rgba(0,255,136,0.15); color: var(--neon-green); }
        .diff-remove { background: rgba(255,0,128,0.15); color: var(--neon-pink); text-decoration: line-through; }
        .diff-context { color: var(--text-secondary); }
        /* Component Library Drawer */
        /* Presets */
        .presets-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 12px;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }
        .preset-card {
            padding: 16px 12px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px;
            cursor: pointer;
            text-align: center;
            transition: border-color 200ms, background 200ms, transform 200ms;
            position: relative;
            overflow: hidden;
        }
        .preset-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 100%);
            pointer-events: none;
        }
        .preset-card:hover {
            border-color: color-mix(in srgb, #6366f1 50%, rgba(255,255,255,0.2));
            background: color-mix(in srgb, #6366f1 8%, rgba(255,255,255,0.03));
            transform: translateY(-2px);
        }
        .preset-icon {
            display: flex; align-items: center; justify-content: center;
            width: 52px; height: 52px;
            border-radius: 13px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            margin: 0 auto 12px;
            color: rgba(255,255,255,0.5);
            transition: background 220ms, border-color 220ms, color 220ms, box-shadow 220ms;
        }
        .preset-card:hover .preset-icon {
            background: color-mix(in srgb, #6366f1 20%, transparent);
            border-color: color-mix(in srgb, #6366f1 45%, transparent);
            color: #fff;
            box-shadow: 0 0 22px color-mix(in srgb, #6366f1 30%, transparent);
        }
        .preset-name { font-weight: 600; font-size: 0.85em; color: rgba(255,255,255,0.85); white-space: nowrap; }
        .preset-desc { font-size: 0.72em; color: rgba(255,255,255,0.4); margin-top: 4px; display: none; }
        /* Download Dropdown */
        .download-dropdown {
            position: absolute; top: 100%; right: 0; z-index: 100;
            background: var(--bg-card); border: 1px solid rgba(255,255,255,0.08);
            border-radius: 8px; padding: 4px; min-width: 150px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        }
        .dd-item {
            display: block; width: 100%; text-align: left; padding: 8px 12px;
            background: none; border: none; color: var(--text-secondary);
            font-size: 0.85em; cursor: pointer; border-radius: 4px;
        }
        .dd-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
        .comp-drawer { position: fixed; top: 0; right: -500px; width: 500px; height: 100vh; background: var(--bg-card); border-left: 1px solid rgba(255,255,255,0.08); z-index: 999; transition: right 0.3s ease; display: flex; flex-direction: column; }
        .comp-drawer.open { right: 0; }
        .comp-drawer-header { padding: 16px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
        .comp-drawer-body { flex: 1; overflow-y: auto; padding: 16px; }
        .comp-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
        .comp-cat { padding: 4px 10px; font-size: 0.8em; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-dark); color: var(--text-secondary); cursor: pointer; transition: all 0.2s; }
        .comp-cat.active { border-color: var(--neon-blue); color: var(--neon-blue); background: rgba(0,212,255,0.1); }
        .comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .comp-card { background: var(--bg-card-hover); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
        .comp-card:hover { border-color: var(--neon-blue); box-shadow: 0 0 12px rgba(0,212,255,0.3); }
        .comp-card-preview { height: 100px; background: white; overflow: hidden; }
        .comp-card-preview iframe { width: 400%; height: 400%; transform: scale(0.25); transform-origin: top left; border: none; pointer-events: none; }
        .comp-card-name { padding: 8px 10px; font-size: 0.85em; font-weight: 500; }
        .comp-card-cat { padding: 0 10px 8px; font-size: 0.7em; color: var(--text-secondary); }
        .comp-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 998; }
        @media (max-width: 768px) { .comp-drawer { width: 100%; right: -100%; }  }
        .code-editor {
            flex: 1;
            padding: 16px;
            background: #0d1117;
            color: #c9d1d9;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85em;
            line-height: 1.6;
            border: none;
            outline: none;
            resize: none;
            overflow-y: auto;
        }
        .code-toolbar {
            display: flex;
            gap: 8px;
            padding: 12px;
            border-top: 1px solid var(--border-color);
            background: var(--bg-dark);
        }
        /* Editor toolbar */
        .editor-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 6px 10px;
            background: var(--bg-card-hover);
            border: 1px solid var(--border-color);
            border-bottom: none;
            border-radius: 6px 6px 0 0;
            min-height: 36px;
        }
        .editor-toolbar .editor-title {
            font-size: 0.85em;
            color: var(--neon-blue);
            font-weight: 600;
        }
        .editor-toolbar .editor-actions {
            display: flex;
            gap: 6px;
            align-items: center;
        }
        .version-select {
            padding: 4px 8px;
            background: var(--bg-dark);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            color: var(--text-secondary);
            font-size: 0.8em;
            cursor: pointer;
            min-height: 28px;
        }
        .editor-status {
            font-size: 0.75em;
            color: var(--text-secondary);
        }
        .editor-status.dirty { color: var(--neon-yellow); }
        .save-indicator {
            font-size: 12px;
            color: var(--text-secondary);
            margin-left: 8px;
        }
        .save-indicator.saving { color: var(--neon-yellow); }
        .save-indicator.saved { color: var(--neon-green); }
        .save-indicator.unsaved { color: var(--text-secondary); }
        .retry-btn { font-size: 14px; opacity: 0.7; }
        .retry-btn:hover { opacity: 1; color: var(--neon-blue); }
        .shortcuts-overlay {
            position: fixed; inset: 0; z-index: 9999;
            background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center;
        }
        .shortcuts-modal {
            background: var(--bg-card-hover); border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px; padding: 24px; max-width: 400px; width: 90%;
        }
        .shortcuts-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
        .shortcuts-grid { display: grid; gap: 8px; margin-bottom: 16px; }
        .shortcut-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
        .shortcut-row kbd {
            background: var(--bg-card); border: 1px solid rgba(255,255,255,0.08);
            border-radius: 4px; padding: 2px 8px; font-family: 'Fira Code', monospace; font-size: 13px;
            min-width: 60px; text-align: center;
        }
        .shortcut-row span { color: var(--text-secondary); }
        /* Active section highlight */
        .section-item.active-edit {
            border-color: var(--neon-blue);
            background: rgba(0, 255, 255, 0.05);
        }
        /* Drag-n-drop */
        .sortable-ghost { opacity: 0.3; border: 1px dashed var(--neon-blue); }
        .sortable-chosen { box-shadow: 0 0 12px rgba(0,212,255,0.3); }
        .drag-handle {
            cursor: grab;
            opacity: 0.3;
            font-size: 14px;
            user-select: none;
            padding: 4px;
            min-width: 20px;
            min-height: 44px;
            display: flex;
            align-items: center;
            transition: opacity 0.15s ease;
        }
        .drag-handle:hover, .drag-handle:active { opacity: 1; color: var(--neon-blue); }
        .preview-iframe {
            width: 100%;
            height: 100%;
            border: none;
            background: white;
        }
        .preview-controls {
            display: flex;
            gap: 8px;
        }
        .viewport-btn {
            padding: 6px 12px;
            font-size: 0.8em;
            background: var(--bg-dark);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s;
        }
        .viewport-btn:hover {
            border-color: var(--neon-blue);
        }
        .viewport-btn.active {
            border-color: var(--neon-blue);
            color: var(--neon-blue);
        }
        .viewport-custom { display: flex; gap: 4px; align-items: center; margin-left: 8px; }
        .viewport-custom input { width: 52px; padding: 4px 6px; background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-primary); font-size: 0.8em; text-align: center; }
        .viewport-custom span { color: var(--text-secondary); font-size: 0.8em; }
        .device-frame { border: 2px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; transition: all 0.3s ease; margin: 0 auto; background: white; position: relative; }
        .device-frame-notch { display: none; height: 20px; background: var(--bg-card-hover); border-radius: 0 0 12px 12px; width: 120px; margin: 0 auto; }
        .device-frame.mobile .device-frame-notch { display: block; }
        .pixel-ruler { height: 20px; background: var(--bg-dark); border-bottom: 1px solid var(--border-color); position: relative; overflow: hidden; font-size: 0; }
        .pixel-ruler .ruler-mark { position: absolute; top: 0; height: 100%; border-left: 1px solid var(--border-color); font-size: 9px; color: var(--text-secondary); padding: 2px 3px; }
        .pixel-ruler .ruler-bp { border-left-color: var(--neon-blue); color: var(--neon-blue); }
        .section-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .section-item {
            background: var(--bg-dark);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .section-left {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }
        .section-name {
            font-weight: 500;
        }
        .section-actions {
            display: flex;
            gap: 4px;
        }
        .toast-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .toast {
            padding: 12px 20px;
            border-radius: 8px;
            color: white;
            font-size: 0.9em;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            animation: slideIn 0.3s;
        }
        @keyframes slideIn {
            from { transform: translateX(400px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        .toast.info { background: var(--neon-blue); }
        .toast.success { background: var(--neon-green); }
        .toast.error { background: var(--neon-pink); }
        .toast.warning { background: var(--neon-yellow); }
        .screenshots-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }
        .screenshot-card {
            background: var(--bg-dark);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
        }
        .screenshot-card img {
            width: 100%;
            height: auto;
            display: block;
        }
        .screenshot-label {
            padding: 8px;
            text-align: center;
            font-size: 0.8em;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .review-scores {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }
        .score-card {
            background: var(--bg-dark);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 20px;
            text-align: center;
        }
        .score-value {
            font-size: 2.5em;
            font-weight: 700;
            color: var(--neon-green);
        }
        .score-label {
            font-size: 0.75em;
            color: var(--text-secondary);
            text-transform: uppercase;
            margin-top: 8px;
        }
        .issues-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .issue-item {
            padding: 12px;
            background: var(--bg-dark);
            border: 1px solid var(--border-color);
            border-left: 3px solid var(--neon-yellow);
            border-radius: 6px;
        }
        .issue-item.high { border-left-color: var(--neon-pink); }
        .issue-item.low { border-left-color: var(--neon-green); }
        .issue-severity {
            font-size: 0.7em;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 6px;
            opacity: 0.6;
        }
        .issue-desc {
            font-size: 0.9em;
            margin-bottom: 4px;
        }
        /* CWV */
        .cwv-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 16px;
            padding: 12px 0;
        }
        .cwv-card {
            background: var(--bg-dark);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 16px;
            text-align: center;
        }
        .cwv-card.good { border-color: var(--neon-green); }
        .cwv-card.needs-improvement { border-color: var(--neon-yellow); }
        .cwv-card.poor { border-color: var(--neon-pink); }
        .cwv-value {
            font-size: 1.8em;
            font-weight: 700;
            font-family: 'JetBrains Mono', monospace;
        }
        .cwv-card.good .cwv-value { color: var(--neon-green); }
        .cwv-card.needs-improvement .cwv-value { color: var(--neon-yellow); }
        .cwv-card.poor .cwv-value { color: var(--neon-pink); }
        .cwv-label {
            font-size: 0.7em;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-secondary);
            margin-top: 6px;
        }
        .cwv-unit { font-size: 0.5em; opacity: 0.6; }
        /* Validation */
        .val-item {
            padding: 10px 14px;
            background: var(--bg-dark);
            border: 1px solid var(--border-color);
            border-left: 3px solid var(--border-color);
            border-radius: 6px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.85em;
        }
        .val-item.error { border-left-color: var(--neon-pink); }
        .val-item.warning { border-left-color: var(--neon-yellow); }
        .val-item.info { border-left-color: var(--neon-blue); }
        .val-line { color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; min-width: 50px; }
        .val-badge {
            font-size: 0.7em;
            text-transform: uppercase;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: 600;
            min-width: 50px;
            text-align: center;
        }
        .val-badge.error { background: rgba(255,0,128,0.15); color: var(--neon-pink); }
        .val-badge.warning { background: rgba(255,208,0,0.15); color: var(--neon-yellow); }
        .val-badge.info { background: rgba(0,212,255,0.15); color: var(--neon-blue); }
        .file-tree {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85em;
            line-height: 1.8;
            background: #0d1117;
            padding: 16px;
            border-radius: 8px;
            color: var(--text-secondary);
        }
        .deploy-log {
            background: #0d1117;
            border-radius: 8px;
            padding: 16px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8em;
            line-height: 1.6;
            max-height: 300px;
            overflow-y: auto;
            color: var(--text-secondary);
        }
        .log-line {
            margin-bottom: 4px;
        }
        .log-line.success { color: var(--neon-green); }
        .log-line.error { color: var(--neon-pink); }
        .spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255,255,255,0.2);
            border-radius: 50%;
            border-top-color: var(--neon-blue);
            animation: spin 0.6s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        input[type="color"] {
            width: 100%;
            height: 40px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: transparent;
            cursor: pointer;
        }
        select {
            width: 100%;
            padding: 10px 12px;
            background: var(--bg-dark);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            color: var(--text-primary);
            font-size: 0.9em;
            outline: none;
            cursor: pointer;
        }
        select:focus {
            border-color: var(--neon-blue);
        }
        .token-editor {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 16px;
        }
        .token-field {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-secondary);
        }
        .empty-state .empty-title { font-size: 1.1em; margin-bottom: 8px; color: var(--text-secondary); }
        .empty-state .empty-desc { font-size: 0.85em; margin-bottom: 16px; line-height: 1.5; }
        .empty-state .btn { margin-top: 4px; }
        .empty-icon {
            font-size: 64px;
            opacity: 0.3;
            margin-bottom: 16px;
        }
        /* Skeleton loading */
        @keyframes shimmer {
            0% { background-position: -400px 0; }
            100% { background-position: 400px 0; }
        }
        .skeleton {
            background: linear-gradient(90deg, var(--bg-card-hover) 25%, #283348 50%, var(--bg-card-hover) 75%);
            background-size: 800px 100%;
            animation: shimmer 1.5s infinite ease-in-out;
            border-radius: 6px;
        }
        .skeleton-line { height: 14px; margin-bottom: 10px; }
        .skeleton-line:last-child { width: 60%; }
        .skeleton-block { height: 80px; margin-bottom: 12px; }
        .skeleton-card { padding: 20px; margin-bottom: 16px; border-radius: 12px; }
        .skeleton-circle { width: 48px; height: 48px; border-radius: 50%; }
        .skeleton-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 12px;
        }
        .skeleton-grid-item { height: 120px; border-radius: 8px; }
        .skeleton-scores {
            display: flex; gap: 12px; margin-bottom: 16px;
        }
        .skeleton-score { flex: 1; height: 72px; border-radius: 10px; }
        /* Button loading */
        .btn-loading { pointer-events: none; opacity: 0.7; position: relative; }
        .btn-loading::after {
            content: '';
            width: 14px; height: 14px;
            border: 2px solid transparent;
            border-top-color: currentColor;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
            display: inline-block;
            margin-left: 6px;
            vertical-align: middle;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        @media (max-width: 1024px) {
            .split-view { grid-template-columns: 1fr; }
            .split-view-3 { grid-template-columns: 1fr !important; }
            .split-view-3 .resize-handle { display: none; }
            .tabs { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
            .tabs::-webkit-scrollbar { display: none; }
            .tab { scroll-snap-align: start; white-space: nowrap; flex-shrink: 0; min-height: 44px; }
            .viewport-custom { display: none; }
        }
        @media (max-width: 768px) {
            .ideas-panel.open { width: 100%; min-width: 100%; }
            .split-panel-header { padding: 8px 12px; }
            .btn, .icon-btn { min-height: 44px; min-width: 44px; }
            .card { padding: 12px; }
            .wizard-step { padding: 16px; }
            .welcome-hero { padding: 32px 16px; }
        }
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.08);
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--text-secondary);
        }

        /* Welcome Screen & Wizard */
        .welcome-screen {
            position: absolute; inset: 0; z-index: 5;
            background: var(--bg-dark);
            display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
            overflow-y: auto;
        }
        .wizard-step { display: none; width: 100%; max-width: 1100px; padding: 0 24px 32px; }
        .wizard-step.active { display: flex; flex-direction: column; animation: wizFadeIn 200ms ease-out; }
        @keyframes wizFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

        .welcome-hero { text-align: center; padding: 36px 20px 20px; }
        .welcome-logo { margin: 0 auto; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center;
            background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2); border-radius: 18px; }
        .welcome-title {
            font-size: 1.8rem; font-weight: 700;
            margin: 12px 0 5px;
            background: linear-gradient(135deg, #fff 0%, rgba(0,212,255,0.85) 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        }
        .welcome-sub {
            color: var(--text-secondary);
            font-size: 0.88em; margin-bottom: 24px;
        }
        .btn-xl {
            min-height: 56px;
            padding: 16px 40px;
            font-size: 1.15rem;
            letter-spacing: 0.02em;
            font-weight: 600;
        }

        .recent-projects { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; max-width: 500px; }
        .recent-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border-color);
            border-radius: 8px; cursor: pointer; transition: border-color 200ms, box-shadow 200ms; font-size: 0.9em; }
        .recent-item:hover { border-color: var(--neon-blue); box-shadow: 0 0 12px rgba(0,212,255,0.3); }
        .recent-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .recent-delete-btn { flex-shrink: 0; margin-left: 8px; padding: 0 5px; background: transparent; border: none; color: var(--text-muted); font-size: 1rem; cursor: pointer; opacity: 0.5; border-radius: 3px; line-height: 1.4; }
        .recent-delete-btn:hover { opacity: 1; color: var(--neon-pink, #ff0080); background: rgba(255,0,128,0.1); }

        .wizard-header { margin-bottom: 24px; }
        .wizard-progress { display: flex; align-items: center; justify-content: center; gap: 0; }
        .progress-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bg-card-hover);
            border: 2px solid rgba(255,255,255,0.08); transition: all 200ms; }
        .progress-dot.active { background: var(--neon-blue); border-color: var(--neon-blue);
            box-shadow: 0 0 12px rgba(0,212,255,0.3); }
        .progress-dot.done { background: var(--neon-green); border-color: var(--neon-green); }
        .progress-line { width: 40px; height: 2px; background: var(--border-color); }
        .progress-line.done { background: var(--neon-green); }

        .wizard-body { flex: 1; }
        .wizard-textarea { width: 100%; min-height: 120px; max-height: 200px; resize: vertical;
            background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px;
            padding: 14px; color: var(--text-primary); font-size: 1rem; line-height: 1.6; }
        .wizard-textarea:focus { border-color: var(--neon-blue); outline: none; box-shadow: 0 0 0 3px rgba(0,212,255,0.3); }

        .wizard-dropzone { margin-top: 16px; padding: 32px; border: 2px dashed var(--border-color);
            border-radius: 12px; text-align: center; cursor: pointer; transition: border-color 200ms; }
        .wizard-dropzone:hover, .wizard-dropzone.dragover { border-color: var(--neon-blue); background: rgba(0,212,255,0.04); }

        /* Discovery Chat */
        .discovery-chat { display: flex; flex-direction: column; height: 420px; }
        .discovery-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 0.95rem; font-weight: 600; color: var(--neon-blue); }
        .chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
            padding: 12px 4px; scrollbar-width: thin; scrollbar-color: var(--border-color) transparent; }
        .chat-bubble { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; line-height: 1.5;
            animation: bubbleFadeIn 200ms ease-out; }
        .chat-bubble.user { align-self: flex-end; background: rgba(0,212,255,0.15); border: 1px solid rgba(0,212,255,0.25); color: var(--text-primary); position: relative; }
        .chat-bubble.assistant { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); }
        @keyframes bubbleFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
        .chat-bubble .bubble-content { white-space: pre-wrap; word-break: break-word; }
        .typing-indicator { display: flex; gap: 4px; padding: 8px 14px; }
        .typing-indicator span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-secondary);
            animation: typingDot 1.2s ease-in-out infinite; }
        .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
        .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
        @keyframes typingDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
        .chat-input-row { display: flex; gap: 8px; margin-top: 12px; }
        .chat-input { flex: 1; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border-color);
            border-radius: 8px; color: var(--text-primary); font-size: 0.9rem; outline: none; }
        .chat-input:focus { border-color: var(--neon-blue); box-shadow: 0 0 0 3px rgba(0,212,255,0.3); }
        .btn-icon { width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

        /* Bubble actions (edit/delete) */
        .bubble-actions { position: absolute; top: -8px; right: -8px; display: none; gap: 3px; }
        .chat-bubble.user:hover .bubble-actions { display: flex; }
        .ba-btn {
            width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
            background: rgba(0,0,0,0.75); border: 1px solid rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.65); font-size: 11px;
            display: flex; align-items: center; justify-content: center;
            transition: background 150ms, color 150ms;
        }
        .ba-btn:hover { background: rgba(255,255,255,0.18); color: #fff; }

        .wizard-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 16px;
            border-top: 1px solid var(--border-color); gap: 12px; }
        .wizard-action-btns { display: flex; gap: 8px; margin-left: auto; }

        /* Agent Cards */
        .agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
        @media (max-width: 600px) { .agent-grid { grid-template-columns: repeat(2, 1fr); } }
        .agent-card { padding: 20px 12px; background: var(--bg-card); border: 1px solid var(--border-color);
            border-radius: 12px; text-align: center; transition: all 300ms; }
        .agent-card.analyzing { border-color: var(--neon-blue); box-shadow: 0 0 20px rgba(0,212,255,0.3);
            animation: agentPulse 2s ease-in-out infinite; }
        .agent-card.done { border-color: var(--neon-green); }
        .agent-card.done .agent-status .spinner-sm { display: none; }
        .agent-card.done .agent-status::after { content: '✓'; color: var(--neon-green); font-size: 1.2em; }
        @keyframes agentPulse { 0%, 100% { box-shadow: 0 0 10px rgba(0,212,255,0.3); } 50% { box-shadow: 0 0 25px rgba(0,212,255,0.3); } }
        .agent-icon { margin-bottom: 8px; color: var(--text-secondary); }
        .agent-name { font-size: 0.85em; color: var(--text-secondary); margin-bottom: 8px; }
        .agent-status { height: 20px; display: flex; align-items: center; justify-content: center; }
        .spinner-sm { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.08);
            border-top-color: var(--neon-blue); border-radius: 50%; animation: spin 0.8s linear infinite; display: none; }
        .agent-card.analyzing .spinner-sm { display: block; }

        .analysis-brief { margin-top: 24px; padding: 16px; background: var(--bg-card);
            border: 1px solid var(--border-color); border-radius: 8px; }
        .brief-item { display: flex; gap: 8px; margin-bottom: 8px; font-size: 0.9em; }
        .brief-label { color: var(--text-secondary); min-width: 120px; }
        .brief-value { color: var(--text-primary); }

        /* Reference Gallery */
        .ref-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
        .ref-filter { padding: 6px 14px; background: var(--bg-card); border: 1px solid var(--border-color);
            border-radius: 16px; cursor: pointer; font-size: 0.85em; color: var(--text-secondary); transition: all 200ms; }
        .ref-filter.active, .ref-filter:hover { border-color: var(--neon-blue); color: var(--neon-blue); }

        .reference-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-height: 400px; overflow-y: auto; }
        @media (max-width: 900px) { .reference-gallery { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 500px) { .reference-gallery { grid-template-columns: 1fr; } }

        .ref-card { position: relative; background: var(--bg-card); border: 1px solid var(--border-color);
            border-radius: 10px; overflow: hidden; cursor: pointer; transition: all 200ms; }
        .ref-card:hover { border-color: rgba(255,255,255,0.08); transform: translateY(-2px); }
        .ref-card.selected { border-color: var(--neon-blue); box-shadow: 0 0 16px rgba(0,212,255,0.3); }
        .ref-card-img { width: 100%; height: 140px; object-fit: cover; background: var(--bg-card-hover); }
        .ref-card-body { padding: 10px 12px; }
        .ref-card-name { font-size: 0.9em; font-weight: 500; margin-bottom: 4px; }
        .ref-card-desc { font-size: 0.78em; color: var(--text-secondary); line-height: 1.4; }
        .ref-card-check { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px;
            border: 2px solid rgba(255,255,255,0.3); border-radius: 6px; background: rgba(0,0,0,0.4);
            display: flex; align-items: center; justify-content: center; transition: all 200ms; }
        .ref-card.selected .ref-card-check { background: var(--neon-blue); border-color: var(--neon-blue); }
        .ref-card.selected .ref-card-check::after { content: '✓'; color: #000; font-weight: 700; font-size: 0.9em; }

        .selected-strip { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px;
            background: var(--bg-card); border-radius: 8px; }
        .selected-thumbs { display: flex; gap: 6px; overflow-x: auto; }
        .selected-thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; border: 1px solid var(--neon-blue); }

        /* References Tab */
        .references-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
        .ref-action-card { padding: 12px; background: var(--bg-card); border: 1px solid var(--border-color);
            border-radius: 10px; cursor: pointer; transition: border-color 200ms; }
        .ref-action-card:hover { border-color: var(--neon-blue); }
        .ref-action-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
        .ref-view-btn { min-width: 36px; padding: 6px 10px; }
        .ref-view-btn.active { background: var(--neon-blue); color: #000; }
        /* Moodboard */
        .moodboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 16px;
            padding: 12px 0;
        }
        .moodboard-card {
            background: var(--bg-dark);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            overflow: hidden;
        }
        .moodboard-card img { width: 100%; height: 180px; object-fit: cover; }
        .moodboard-meta { padding: 12px; }
        .moodboard-palette {
            display: flex;
            gap: 4px;
            margin-top: 8px;
        }
        .moodboard-swatch {
            width: 24px;
            height: 24px;
            border-radius: 4px;
            border: 1px solid var(--border-color);
        }
        /* Ref Detail Modal */
        .ref-detail-modal {
            position: fixed;
            inset: 0;
            z-index: 1000;
            background: rgba(0,0,0,0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }
        .ref-detail-content {
            background: var(--bg-card);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px;
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
        }
        .ref-detail-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-color);
        }
        .ref-detail-body { padding: 20px; }
        .ref-detail-img { width: 100%; max-height: 400px; object-fit: contain; border-radius: 8px; margin-bottom: 16px; background: var(--bg-dark); }

        /* Page Tabs */
        .page-tabs { display: flex; gap: 4px; padding: 8px 12px; background: var(--bg-card);
            border-bottom: 1px solid var(--border-color); overflow-x: auto; align-items: center; }
        .page-tab { padding: 6px 14px; background: transparent; border: 1px solid transparent;
            border-radius: 6px; color: var(--text-secondary); cursor: pointer; font-size: 0.85em; transition: all 200ms;
            white-space: nowrap; }
        .page-tab.active { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.08); color: var(--text-primary); }
        .page-tab:hover:not(.active) { color: var(--text-primary); }

        /* WCAG */
        button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--neon-blue); outline-offset: 2px; }
        .icon-btn:focus-visible, .btn:focus-visible, .tab:focus-visible {
            box-shadow: 0 0 0 3px rgba(0,212,255,0.3); outline: none; }
        .idea-item:focus-visible { border-color: var(--neon-blue); box-shadow: 0 0 12px rgba(0,212,255,0.3); }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }
        /* Orchestrator tab styles */
        .orch-subtab {
            padding: 6px 14px;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            background: transparent;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 0.85em;
            transition: all 0.2s;
        }
        .orch-subtab.active, .orch-subtab:hover {
            background: rgba(0,212,255,0.15);
            color: var(--neon-blue);
            border-color: rgba(0,212,255,0.3);
        }
        .orch-panel { display: none; }
        .orch-panel.active { display: block; }
        .orch-badge {
            font-size: 0.75em;
            padding: 2px 8px;
            border-radius: 10px;
            background: rgba(0,212,255,0.15);
            color: var(--neon-blue);
        }
        .orch-badge.risk {
            background: rgba(255,208,0,0.15);
            color: var(--neon-yellow);
        }
        .orch-step {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 0;
            border-bottom: 1px solid var(--border-color);
        }
        .orch-step:last-child { border-bottom: none; }
        .orch-step-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7em;
            flex-shrink: 0;
        }
        .orch-step-icon.pending { background: var(--bg-card-hover); color: var(--text-secondary); }
        .orch-step-icon.running { background: rgba(0,212,255,0.2); color: var(--neon-blue); animation: pulse 1.5s infinite; }
        .orch-step-icon.done { background: rgba(0,255,136,0.2); color: var(--neon-green); }
        .orch-step-icon.failed { background: rgba(255,0,128,0.2); color: var(--neon-pink); }
        @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
        .orch-step-title { flex: 1; font-size: 0.9em; }
        .orch-step-status { font-size: 0.75em; color: var(--text-secondary); }
        .action-card {
            background: var(--bg-card-hover);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--text-primary);
        }
        .action-card:hover {
            border-color: var(--neon-blue);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,212,255,0.15);
        }
        .bgrun-card {
            background: var(--bg-card-hover);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 8px;
        }
        .bgrun-progress {
            height: 4px;
            background: var(--bg-card);
            border-radius: 2px;
            margin-top: 8px;
            overflow: hidden;
        }
        .bgrun-progress-bar {
            height: 100%;
            background: var(--neon-blue);
            border-radius: 2px;
            transition: width 0.3s;
        }
        .metric-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 12px;
        }
        .metric-card {
            background: var(--bg-card-hover);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 16px;
            text-align: center;
        }
        .metric-value {
            font-size: 1.8em;
            font-weight: 700;
            color: var(--neon-blue);
            font-family: 'Fira Code', monospace;
        }
        .metric-label {
            font-size: 0.8em;
            color: var(--text-secondary);
            margin-top: 4px;
        }
        /* 7A: Generation Progress Bar */
        .generation-progress {
            padding: 6px 10px;
            background: var(--bg-dark);
            border-bottom: 1px solid var(--border-color);
        }
        .progress-bar {
            height: 3px;
            background: var(--border-color);
            border-radius: 2px;
            overflow: hidden;
        }
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple, #a855f7));
            border-radius: 2px;
            width: 30%;
            animation: progressPulse 1.5s ease-in-out infinite;
            transition: width 0.3s;
        }
        @keyframes progressPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        .progress-info {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 4px;
            font-size: 0.75em;
            color: var(--text-secondary);
        }
        .progress-bytes {
            font-family: 'Fira Code', monospace;
            color: var(--neon-blue);
        }
        .progress-info .icon-btn {
            margin-left: auto;
            font-size: 10px;
            opacity: 0.6;
        }
        .progress-info .icon-btn:hover {
            opacity: 1;
            color: var(--neon-pink);
        }
        /* 7C: Console Panel */
        .console-panel {
            height: 160px;
            border-top: 1px solid var(--border-color);
            background: var(--bg-darker, #0a0a0a);
            font-family: 'JetBrains Mono', 'Fira Code', monospace;
            font-size: 11px;
            overflow-y: auto;
            position: relative;
        }
        .console-resize-handle {
            height: 4px;
            cursor: row-resize;
            background: transparent;
            transition: background 0.15s;
        }
        .console-resize-handle:hover, .console-resize-handle.dragging {
            background: var(--neon-blue);
        }
        .console-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 2px 8px;
            background: var(--bg-card);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 1;
            gap: 8px;
        }
        .console-filters {
            display: flex;
            gap: 2px;
            flex: 1;
        }
        .console-filter {
            padding: 1px 5px;
            font-size: 9px;
            border: 1px solid var(--border-color);
            border-radius: 3px;
            background: transparent;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.15s;
        }
        .console-filter:hover { color: var(--text-primary); }
        .console-filter.active {
            border-color: var(--neon-blue);
            color: var(--neon-blue);
        }
        /* 7G: Build Pipeline */
        .build-steps { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
        .build-step {
            display: flex; align-items: center; gap: 10px;
            padding: 8px 12px; border-radius: 6px;
            background: var(--bg-dark); border: 1px solid var(--border-color);
            font-size: 0.85em; transition: all 0.3s;
        }
        .build-step-icon { font-size: 14px; min-width: 20px; text-align: center; }
        .build-step.active { border-color: var(--neon-blue); background: rgba(59,130,246,0.08); }
        .build-step.active .build-step-icon { animation: progressPulse 1s ease-in-out infinite; }
        .build-step.done { border-color: var(--neon-green, #22c55e); opacity: 0.8; }
        .build-step.error { border-color: var(--neon-pink, #ef4444); }
        .build-stats {
            padding: 10px 12px; border-radius: 6px;
            background: var(--bg-dark); border: 1px solid var(--border-color);
            font-family: 'Fira Code', monospace; font-size: 0.8em;
        }
        .build-stats .stat-row { display: flex; justify-content: space-between; padding: 2px 0; }
        .build-stats .stat-value { color: var(--neon-green, #22c55e); }
        .build-stats .stat-highlight { color: var(--neon-blue); font-weight: 600; }
        /* 7F: Token Range */
        .token-range {
            width: 100%; height: 4px; -webkit-appearance: none; appearance: none;
            background: var(--border-color); border-radius: 2px; outline: none;
        }
        .token-range::-webkit-slider-thumb {
            -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
            background: var(--neon-blue); cursor: pointer; border: 2px solid var(--bg-dark);
        }
        .token-val { font-family: 'Fira Code', monospace; font-size: 0.8em; color: var(--neon-blue); margin-left: 4px; }
        /* 7D: Clickable Issues */
        .issue-item.clickable { cursor: pointer; transition: border-color 0.15s; }
        .issue-item.clickable:hover { border-color: var(--neon-blue); }
        .issue-item.clickable::after { content: '→'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity 0.15s; color: var(--neon-blue); }
        .issue-item.clickable:hover::after { opacity: 1; }
        .issue-item { position: relative; }
        .cm-search-match { background: rgba(59,130,246,0.3) !important; border-bottom: 2px solid var(--neon-blue); }
        /* 7E: Viewport Labels */
        .viewport-btn svg { vertical-align: middle; }
        .vp-size {
            font-size: 0.7em;
            color: var(--text-secondary);
            font-family: 'Fira Code', monospace;
            min-width: 32px;
        }
        /* 7I: Onboarding Tour */
        .tour-overlay {
            position: fixed; inset: 0; z-index: 10000;
            background: transparent;
        }
        .tour-spotlight {
            position: absolute; border-radius: 8px;
            box-shadow: 0 0 0 9999px rgba(0,0,0,0.7);
            border: 2px solid var(--neon-blue);
            transition: all 0.3s ease;
            pointer-events: none;
        }
        .tour-tooltip {
            position: absolute; width: 260px; padding: 16px;
            background: var(--bg-card); border: 1px solid var(--neon-blue);
            border-radius: 10px; z-index: 10001;
            box-shadow: 0 8px 32px rgba(0,0,0,0.5);
        }
        .tour-title { font-weight: 600; font-size: 1em; margin-bottom: 6px; }
        .tour-desc { font-size: 0.85em; color: var(--text-secondary); line-height: 1.4; }
        .tour-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
        .tour-counter { font-size: 0.75em; color: var(--text-secondary); }
        .tour-next {
            padding: 4px 14px; border-radius: 6px; border: 1px solid var(--neon-blue);
            background: var(--neon-blue); color: #000; font-weight: 600; cursor: pointer;
            font-size: 0.85em;
        }
        .tour-skip {
            padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border-color);
            background: transparent; color: var(--text-secondary); cursor: pointer;
            font-size: 0.85em; margin-right: 6px;
        }
        .tour-skip:hover { color: var(--text-primary); }

        /* ============ Phase 9A: Pipeline Stepper ============ */
        .pipeline-stepper {
            display: flex;
            align-items: center;
            gap: 0;
            padding: 6px 0;
            flex-shrink: 0;
        }
        .pipe-step {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            opacity: 0.4;
            transition: opacity 0.3s;
            user-select: none;
        }
        .pipe-step:hover { opacity: 0.7; }
        .pipe-step.done { opacity: 1; }
        .pipe-step.active { opacity: 1; }
        .pipe-dot {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--bg-card-hover);
            border: 1.5px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.65rem;
            font-weight: 700;
            color: var(--text-secondary);
            transition: all 0.3s;
        }
        .pipe-step.done .pipe-dot {
            background: rgba(0,255,136,0.15);
            border-color: var(--neon-green);
            color: var(--neon-green);
        }
        .pipe-step.active .pipe-dot {
            background: rgba(0,212,255,0.15);
            border-color: var(--neon-blue);
            color: var(--neon-blue);
            box-shadow: 0 0 12px rgba(0,212,255,0.3);
            animation: pipePulse 2s ease-in-out infinite;
        }
        @keyframes pipePulse {
            0%, 100% { box-shadow: 0 0 8px rgba(0,212,255,0.3); }
            50% { box-shadow: 0 0 18px rgba(0,212,255,0.6); }
        }
        .pipe-label {
            font-size: 0.6rem;
            color: var(--text-secondary);
            letter-spacing: 0.5px;
            white-space: nowrap;
        }
        .pipe-step.done .pipe-label,
        .pipe-step.active .pipe-label { color: var(--text-primary); }
        .pipe-connector {
            width: 28px;
            height: 1.5px;
            background: var(--border-color);
            flex-shrink: 0;
            margin-bottom: 14px;
            transition: background 0.3s;
        }

        /* ============ Phase 9B: Live Agent Panel ============ */
        .live-panel {
            position: fixed;
            bottom: 0;
            left: 220px;
            right: 0;
            background: var(--bg-card);
            border-top: 1px solid var(--border-color);
            padding: 10px 16px 12px;
            z-index: 500;
            animation: slideUpPanel 0.25s ease-out;
            max-height: 200px;
            overflow-y: auto;
        }
        @keyframes slideUpPanel {
            from { transform: translateY(100%); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        .live-panel-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
            font-size: 0.75rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .live-panel-header span { flex: 1; }
        .live-panel-close {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 12px;
            padding: 2px 6px;
            border-radius: 4px;
            transition: color 0.2s;
        }
        .live-panel-close:hover { color: var(--text-primary); }
        .live-agent-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 6px 0;
            border-bottom: 1px solid rgba(30,41,59,0.5);
            font-size: 0.8rem;
        }
        .live-agent-card:last-child { border-bottom: none; }
        .live-agent-icon { font-size: 1rem; width: 24px; text-align: center; flex-shrink: 0; }
        .live-agent-info { flex: 1; min-width: 0; }
        .live-agent-name { font-weight: 600; color: var(--text-primary); }
        .live-agent-task { color: var(--text-secondary); font-size: 0.73rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .live-agent-bar-wrap {
            width: 120px;
            height: 4px;
            background: var(--bg-dark);
            border-radius: 2px;
            overflow: hidden;
            flex-shrink: 0;
        }
        .live-agent-bar {
            height: 100%;
            border-radius: 2px;
            transition: width 0.5s ease;
            background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
        }
        .live-agent-bar.done { background: var(--neon-green); }
        .live-agent-bar.failed { background: var(--neon-pink); }
        .live-agent-pct {
            width: 34px;
            text-align: right;
            font-size: 0.73rem;
            color: var(--neon-blue);
            font-variant-numeric: tabular-nums;
            flex-shrink: 0;
        }
        .live-agent-pct.done { color: var(--neon-green); }
        .live-agent-timer {
            width: 40px;
            text-align: right;
            font-size: 0.73rem;
            color: var(--text-secondary);
            font-variant-numeric: tabular-nums;
            flex-shrink: 0;
        }
        .live-agent-status {
            font-size: 0.68rem;
            padding: 2px 7px;
            border-radius: 10px;
            font-weight: 600;
            letter-spacing: 0.5px;
            flex-shrink: 0;
        }
        .live-agent-status.running { background: rgba(0,212,255,0.15); color: var(--neon-blue); }
        .live-agent-status.done { background: rgba(0,255,136,0.15); color: var(--neon-green); }
        .live-agent-status.failed { background: rgba(255,0,128,0.15); color: var(--neon-pink); }

        /* Phase 9C: Section micro-bar */
        .section-micro-bar {
            height: 2px;
            background: var(--bg-dark);
            border-radius: 0 0 4px 4px;
            overflow: hidden;
            margin-top: 6px;
        }
        .section-micro-fill {
            height: 100%;
            width: 40%;
            background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
            border-radius: 2px;
            animation: progressPulse 1.5s ease-in-out infinite;
        }

        /* Phase 9D: Action Toast */
        .toast-action { display: flex; align-items: center; gap: 10px; }
        .toast-action-btn {
            background: rgba(255,255,255,0.15);
            border: 1px solid rgba(255,255,255,0.2);
            color: #fff;
            padding: 3px 10px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.78rem;
            white-space: nowrap;
            flex-shrink: 0;
            transition: background 0.2s;
        }
        .toast-action-btn:hover { background: rgba(255,255,255,0.25); }

        /* Docs preset slot */
        .docs-preset-row {
            width: 100%;
            max-width: 680px;
            margin: 16px auto 0;
            display: flex;
            justify-content: flex-start;
        }
        .preset-card--docs {
            width: 200px;
            border-style: dashed;
            opacity: 0.7;
        }
        .preset-card--docs:hover { opacity: 1; }

        /* Welcome screen: monochrome buttons */
        .welcome-screen .btn-primary {
            background: rgba(255,255,255,0.07);
            border-color: rgba(255,255,255,0.18);
            color: rgba(255,255,255,0.9);
            letter-spacing: 0.02em;
            font-weight: 600;
        }
        .welcome-screen .btn-primary:hover {
            background: rgba(255,255,255,0.13);
            border-color: rgba(255,255,255,0.3);
            color: #fff;
        }
        .btn-mono {
            background: rgba(255,255,255,0.07);
            border: 1px solid rgba(255,255,255,0.18);
            color: rgba(255,255,255,0.9);
            border-radius: 8px;
            padding: 10px 18px;
            font-size: 0.9em;
            font-weight: 600;
            cursor: pointer;
            transition: background 150ms, border-color 150ms;
            letter-spacing: 0.02em;
            display: inline-flex;
            align-items: center;
            gap: 7px;
        }
        .btn-mono:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.3); color: #fff; }
        .btn-mono:disabled { opacity: 0.4; cursor: not-allowed; }
        .btn-mono.btn-sm { padding: 7px 12px; font-size: 0.82em; }

        /* ===== Secondary Tools: Документация + Анализ ===== */
        .secondary-tools {
            display: grid;
            grid-template-columns: 210px 1px 1fr;
            width: 100%; max-width: 680px; margin: 18px auto 0;
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 14px;
            overflow: hidden;
            background: rgba(255,255,255,0.015);
        }
        .stool-card {
            padding: 18px 20px;
            display: flex; flex-direction: column;
        }
        .stool-divider {
            width: 1px;
            background: rgba(255,255,255,0.07);
            align-self: stretch;
        }
        .stool-icon-wrap {
            width: 34px; height: 34px;
            display: flex; align-items: center; justify-content: center;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 9px;
            color: rgba(255,255,255,0.6);
            margin-bottom: 11px;
        }
        .stool-label {
            font-weight: 600; font-size: 0.86em;
            color: rgba(255,255,255,0.85); margin-bottom: 6px;
        }
        .stool-desc {
            font-size: 0.74em; color: rgba(255,255,255,0.3);
            line-height: 1.55; flex: 1; margin-bottom: 14px;
        }
        .stool-action-btn {
            align-self: flex-start;
            padding: 6px 14px;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 7px;
            font-size: 0.78em; font-family: inherit;
            color: rgba(255,255,255,0.7);
            transition: background 150ms, border-color 150ms, color 150ms;
        }
        .stool-action-btn:hover {
            background: rgba(255,255,255,0.11);
            border-color: rgba(255,255,255,0.22);
            color: #fff;
        }
        .stool-run-btn {
            flex-shrink: 0; width: 36px; height: 36px;
            display: flex; align-items: center; justify-content: center;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            color: rgba(255,255,255,0.7);
            transition: background 150ms, border-color 150ms, color 150ms;
        }
        .stool-run-btn:hover {
            background: rgba(255,255,255,0.12);
            border-color: rgba(255,255,255,0.25);
            color: #fff;
        }
        .stool-analyzer-card { flex: 1; }
        .analyzer-input-row { display: flex; gap: 8px; align-items: center; }
        .analyzer-url-input {
            flex: 1; padding: 9px 13px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px; color: #fff; font-size: 0.86em;
            outline: none; font-family: inherit;
            height: 36px;
        }
        .analyzer-url-input:focus { border-color: rgba(255,255,255,0.22); }
        .analyzer-loading { margin-top: 12px; }
        .analyzer-progress-bar {
            height: 2px; background: rgba(255,255,255,0.06); border-radius: 2px;
            margin-bottom: 7px; overflow: hidden;
        }
        .analyzer-progress-fill {
            height: 100%; width: 0%;
            background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.6));
            transition: width 700ms ease-out; border-radius: 2px;
        }
        .analyzer-result { margin-top: 16px; }
        .analyzer-result-grid {
            display: grid; grid-template-columns: 130px 1fr; gap: 14px;
        }
        .analyzer-screenshot img {
            width: 100%; border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.08);
            object-fit: cover; aspect-ratio: 16/10;
        }
        .analyzer-no-screenshot {
            width: 100%; aspect-ratio: 16/10;
            background: rgba(255,255,255,0.03);
            border: 1px dashed rgba(255,255,255,0.1);
            border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.8em; opacity: 0.4;
        }
        .analyzer-info { display: flex; flex-direction: column; gap: 10px; }
        .analyzer-tech, .analyzer-design, .analyzer-struct { }
        .ar-label {
            font-size: 0.68em; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.06em; color: rgba(255,255,255,0.4);
            margin-bottom: 4px;
        }
        .ar-chips { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 3px; }
        .ar-chip {
            padding: 2px 7px;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.09);
            border-radius: 12px; font-size: 0.76em;
            color: rgba(255,255,255,0.75);
        }
        .ar-row { font-size: 0.78em; color: rgba(255,255,255,0.45); line-height: 1.4; }
        .ar-colors { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: 0.78em; }
        .ar-color-dot {
            display: inline-block; width: 11px; height: 11px;
            border-radius: 50%; flex-shrink: 0;
            border: 1px solid rgba(255,255,255,0.15);
        }
        .ar-sections { font-size: 0.78em; color: rgba(255,255,255,0.6); margin-bottom: 3px; }
        .analyzer-actions {
            display: flex; gap: 8px; flex-wrap: wrap;
            margin-top: 14px; padding-top: 12px;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

        /* ===== Convert Wizard ===== */
        .convert-options {
            display: flex; flex-direction: column; gap: 10px;
        }
        .convert-option-btn {
            display: flex; align-items: flex-start; gap: 14px;
            padding: 14px 16px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            cursor: pointer; text-align: left;
            transition: border-color 150ms, background 150ms;
            color: inherit; font-family: inherit; width: 100%;
        }
        .convert-option-btn:hover {
            border-color: rgba(255,255,255,0.22);
            background: rgba(255,255,255,0.06);
        }
        .co-icon { font-size: 1.4em; flex-shrink: 0; margin-top: 1px; }
        .co-title { font-weight: 600; font-size: 0.9em; color: rgba(255,255,255,0.9); margin-bottom: 3px; }
        .co-desc { font-size: 0.78em; color: rgba(255,255,255,0.4); line-height: 1.4; }

/* ============================================================
   PHASE 11: LOVABLE WORKSPACE
   ============================================================ */

/* Workspace container */
.lv-workspace {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
}

/* ── COMPACT TOP TOOLBAR ── */
.lv-toolbar {
    height: 44px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    gap: 8px;
    flex-shrink: 0;
    background: var(--bg-card);
}
.lv-toolbar-left { display: flex; align-items: center; gap: 10px; }
.lv-toolbar-center { display: flex; align-items: center; gap: 4px; }
.lv-toolbar-right { display: flex; align-items: center; gap: 4px; position: relative; }
.lv-project-name { font-size: 0.9em; font-weight: 600; color: rgba(255,255,255,0.85); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-section-count { font-size: 0.75em; color: rgba(255,255,255,0.35); white-space: nowrap; }

.lv-tb-btn {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 7px;
    background: transparent;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 150ms, color 150ms, border-color 150ms;
}
.lv-tb-btn:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.2);
}
.lv-anim-toggle[data-anim="on"] { color: var(--neon-blue, #00d4ff); border-color: rgba(0,212,255,0.25); }
.lv-anim-toggle[data-anim="off"] { opacity: 0.35; }
.lv-tb-btn.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}

/* Viewport buttons in toolbar */
.lv-vp-btn {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: color 150ms, border-color 150ms, background 150ms;
}
.lv-vp-btn.active { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.lv-vp-btn:hover:not(.active) { color: rgba(255,255,255,0.7); }
.lv-vp-size { font-size: 0.72em; color: rgba(255,255,255,0.3); min-width: 36px; text-align: center; }

/* Actions dropdown */
.lv-actions-dropdown {
    position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 4px;
    z-index: 200; min-width: 190px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.lv-actions-dropdown button {
    display: block; width: 100%;
    padding: 7px 12px; text-align: left;
    font-size: 0.85em; border-radius: 7px;
    color: rgba(255,255,255,0.7);
    background: none; border: none; cursor: pointer;
    transition: background 120ms, color 120ms;
}
.lv-actions-dropdown button:hover { background: rgba(255,255,255,0.07); color: #fff; }
.lv-dd-sep { height: 1px; background: var(--border-color); margin: 4px 0; }

/* ── SPLIT: CHAT + PREVIEW ── */
.lv-split {
    display: grid;
    grid-template-columns: 300px 1fr;
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

/* ── CHAT PANEL ── */
.lv-chat {
    display: flex; flex-direction: column;
    border-right: 1px solid var(--border-color);
    background: var(--bg-card);
    overflow: hidden;
    min-height: 0;
}

/* Section pills bar */
.lv-sections-bar {
    padding: 10px 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; flex-wrap: wrap; gap: 5px;
    flex-shrink: 0;
    min-height: 44px;
}
.lv-sec-pill {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.73em;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.45);
    background: transparent;
    transition: background 150ms, color 150ms, border-color 150ms;
    user-select: none;
    white-space: nowrap;
}
.lv-sec-pill:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.2); }
.lv-sec-pill.active {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.2);
}
.lv-sec-pill.done { color: rgba(80,200,120,0.8); border-color: rgba(80,200,120,0.2); }
.lv-sec-pill.generating {
    color: rgba(255,170,0,0.8); border-color: rgba(255,170,0,0.2);
    animation: lv-pulse 1s ease-in-out infinite;
}
.lv-sec-pill.failed { color: rgba(255,80,80,0.8); border-color: rgba(255,80,80,0.2); }
@keyframes lv-pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
/* Sprint 5: drag-drop */
.lv-sec-pill[draggable="true"] { cursor: grab; }
.lv-sec-pill.lv-pill-dragging { opacity: 0.35; transform: scale(0.96); }
.lv-sec-pill.lv-pill-drop-target { border-top: 2px solid rgba(99,102,241,0.8); margin-top: -1px; }
/* Sprint 5: diff modal */
.lv-diff-modal { position:fixed;inset:0;background:rgba(0,0,0,0.82);z-index:9100;display:none;align-items:center;justify-content:center; }
.lv-diff-modal.open { display:flex; }
.lv-diff-dialog {
    background:#1a1b2e;border:1px solid rgba(99,102,241,0.3);border-radius:14px;
    width:92vw;max-width:1100px;height:82vh;
    display:flex;flex-direction:column;gap:0;overflow:hidden;
}
.lv-diff-header {
    display:flex;align-items:center;justify-content:space-between;
    padding:12px 16px;border-bottom:1px solid rgba(255,255,255,0.06);flex-shrink:0;
}
.lv-diff-selectors { display:flex;align-items:center;gap:10px; }
.lv-diff-selectors select {
    background:#252640;color:#c4c7e8;border:1px solid rgba(255,255,255,0.1);
    border-radius:6px;padding:4px 10px;font-size:0.82rem;
}
.lv-diff-body {
    display:grid;grid-template-columns:1fr 1fr;gap:1px;background:rgba(255,255,255,0.05);
    flex:1;overflow:hidden;
}
.lv-diff-pane {
    display:flex;flex-direction:column;background:#1a1b2e;overflow:hidden;
}
.lv-diff-pane-label {
    font-size:0.72rem;color:rgba(196,199,232,0.4);padding:6px 12px;
    border-bottom:1px solid rgba(255,255,255,0.04);flex-shrink:0;
}
.lv-diff-pane iframe {
    flex:1;border:none;background:#fff;
}

/* Chat history */
.lv-chat-history {
    flex: 1; overflow-y: auto;
    padding: 12px;
    display: flex; flex-direction: column; gap: 10px;
    min-height: 0;
}

/* Message bubbles */
.lv-msg { display: flex; gap: 8px; align-items: flex-start; }
.lv-msg.user { flex-direction: row-reverse; }
.lv-msg-avatar {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7em; font-weight: 700;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.5);
}
.lv-msg.user .lv-msg-avatar {
    background: rgba(99,102,241,0.2); color: rgba(99,102,241,0.9);
}
.lv-msg-body { max-width: 88%; min-width: 0; }
.lv-msg-bubble {
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 0.82em;
    line-height: 1.5;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.75);
    white-space: pre-wrap;
    word-break: break-word;
}
.lv-msg.user .lv-msg-bubble {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
}
.lv-msg-meta {
    font-size: 0.68em; color: rgba(255,255,255,0.22);
    margin-top: 3px;
    display: flex; align-items: center; gap: 6px;
}
.lv-msg.user .lv-msg-meta { justify-content: flex-end; }

/* Streaming cursor */
.lv-cursor {
    display: inline-block; width: 2px; height: 0.9em;
    background: rgba(255,255,255,0.6); vertical-align: middle;
    margin-left: 1px;
    animation: lv-blink 800ms step-end infinite;
}
@keyframes lv-blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Chat input area */
.lv-chat-input-area {
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.lv-prompt-chips {
    display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px;
}
.lv-chip {
    padding: 3px 9px; border-radius: 16px;
    font-size: 0.71em;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 120ms, color 120ms, border-color 120ms;
    white-space: nowrap;
}
.lv-chip:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.2); }

.lv-input-row {
    display: flex; gap: 6px; align-items: flex-end;
}
.lv-chat-textarea {
    flex: 1; resize: none; overflow: hidden;
    padding: 9px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9px;
    color: rgba(255,255,255,0.9);
    font-size: 0.84em;
    line-height: 1.45;
    outline: none;
    font-family: inherit;
    transition: border-color 150ms;
    min-height: 38px; max-height: 120px;
}
.lv-chat-textarea:focus { border-color: rgba(255,255,255,0.25); }
.lv-chat-textarea::placeholder { color: rgba(255,255,255,0.25); }
.lv-send-btn {
    width: 36px; height: 36px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 9px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: background 150ms, border-color 150ms, color 150ms;
}
.lv-send-btn:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.28); color: #fff; }
.lv-send-btn:disabled { opacity: 0.35; cursor: default; }

.lv-target-row {
    display: flex; align-items: center; gap: 6px;
    margin-top: 6px;
    font-size: 0.73em; color: rgba(255,255,255,0.35);
}
.lv-target-label { white-space: nowrap; }
.lv-target-select {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85em; padding: 2px 6px;
    outline: none; cursor: pointer;
    max-width: 150px;
}

/* ── PREVIEW PANEL ── */
.lv-preview {
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    background: #0d0d12;
    min-height: 0;
}
.lv-preview-frame {
    flex: 1; position: relative; overflow: hidden;
    display: flex; justify-content: center;
}
.lv-preview-frame iframe {
    width: 100%; height: 100%; border: none; background: white;
    display: block;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.35s ease;
}
.lv-preview-frame.lv-viewport-tablet iframe {
    border-radius: 12px;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.06), 0 4px 24px rgba(0,0,0,0.3);
}
.lv-preview-frame.lv-viewport-mobile iframe {
    border-radius: 28px;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08), 0 4px 24px rgba(0,0,0,0.3);
}

/* Template Picker popup */
.lv-template-picker {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    background: var(--bg-card, #1a1a2e); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 16px; z-index: 100;
    width: 440px; max-height: 380px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6); backdrop-filter: blur(12px);
}
.lv-tp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 600; font-size: 0.9em; color: rgba(255,255,255,0.85); }
.lv-tp-close { background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; }
.lv-tp-close:hover { color: #fff; }
.lv-tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 260px; overflow-y: auto; }
.lv-tp-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; padding: 10px 12px; cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.lv-tp-card:hover { border-color: var(--neon-blue, #00d4ff); background: rgba(0,212,255,0.06); }
.lv-tp-card-name { font-size: 0.82em; font-weight: 500; color: rgba(255,255,255,0.85); }
.lv-tp-card-cat { font-size: 0.7em; color: rgba(255,255,255,0.35); margin-top: 2px; }
.lv-tp-actions { margin-top: 12px; text-align: center; }

/* Generation progress overlay (bottom of preview) */
.lv-gen-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
    padding: 10px 16px;
    display: flex; align-items: center; gap: 10px;
    z-index: 50;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.lv-gen-bar {
    flex: 1; height: 2px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden;
}
.lv-gen-fill {
    height: 100%; width: 0%; background: rgba(255,255,255,0.6);
    transition: width 400ms ease-out;
}
.lv-gen-label {
    font-size: 0.78em; color: rgba(255,255,255,0.5); white-space: nowrap;
}
.lv-cancel-btn {
    color: rgba(255,255,255,0.35); cursor: pointer;
    background: none; border: none; font-size: 1em;
    transition: color 150ms; line-height: 1; padding: 2px;
}
.lv-cancel-btn:hover { color: rgba(255,255,255,0.85); }

/* ── CODE PANEL (slide-in from right, over preview) ── */
.lv-code-panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 50%;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    display: flex; flex-direction: column;
    z-index: 20;
    box-shadow: -12px 0 48px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.lv-code-panel.open {
    transform: translateX(0);
}
.lv-code-header {
    height: 44px; border-bottom: 1px solid var(--border-color);
    padding: 0 12px;
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
}
.lv-code-section-name {
    font-size: 0.85em; color: rgba(255,255,255,0.6); font-weight: 500;
}
.lv-code-actions { display: flex; align-items: center; gap: 4px; }

/* Empty state in chat */
.lv-chat-empty {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: rgba(255,255,255,0.2); font-size: 0.82em;
    gap: 8px; padding: 24px;
    text-align: center;
}
.lv-chat-empty svg { opacity: 0.2; }

/* === Phase 12C: Analysis Mode Toggle === */
.analysis-mode-toggle {
    display: flex; gap: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; padding: 3px;
}
.am-btn {
    padding: 5px 14px; border: none; background: transparent;
    color: rgba(255,255,255,0.4); border-radius: 6px;
    cursor: pointer; font-size: 0.8em; font-family: inherit;
    transition: background 150ms, color 150ms;
}
.am-btn:hover { color: rgba(255,255,255,0.7); }
.am-btn.active { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.95); }

/* === Phase 13A: Contextual chips row === */
.lv-chips-row {
    display: flex; flex-wrap: wrap; gap: 5px;
}

/* === Phase 13B: Style Preset Dropdown === */
.lv-style-preset {
    position: relative;
}
.lv-style-dropdown {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--bg-card, #1a1a2e); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; padding: 4px; z-index: 200; min-width: 150px;
    flex-direction: column; gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.lv-style-dropdown.open { display: flex; }
.lv-style-opt {
    padding: 7px 12px; border: none; background: transparent;
    color: rgba(255,255,255,0.6); border-radius: 6px;
    cursor: pointer; font-size: 0.8em; font-family: inherit;
    text-align: left; transition: background 120ms, color 120ms;
}
.lv-style-opt:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.lv-style-opt.active { background: rgba(255,255,255,0.1); color: #fff; font-weight: 500; }

/* Framework selector */
.lv-framework-preset { position: relative; }
.lv-framework-dropdown {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--bg-card, #1a1a2e); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; padding: 4px; z-index: 200; min-width: 120px;
    flex-direction: column; gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.lv-framework-dropdown[style*="block"] { display: flex; }
.lv-fw-opt {
    padding: 7px 12px; border: none; background: transparent;
    color: rgba(255,255,255,0.6); border-radius: 6px;
    cursor: pointer; font-size: 0.8em; font-family: inherit;
    text-align: left; transition: background 120ms, color 120ms;
}
.lv-fw-opt:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.lv-fw-opt.active { background: rgba(0,200,255,0.15); color: var(--neon-blue, #00d4ff); font-weight: 500; }

/* === Phase 12A: Entry Points Row === */
.entry-points {
    display: flex; gap: 6px; margin-bottom: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px; padding: 4px;
}
.ep-btn {
    flex: 1; padding: 10px 6px;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    border-radius: 7px; border: none; background: transparent;
    color: rgba(255,255,255,0.38); cursor: pointer; font-size: 0.73em;
    font-family: inherit; transition: background 150ms, color 150ms;
    line-height: 1.2;
}
.ep-btn:hover { color: rgba(255,255,255,0.72); background: rgba(255,255,255,0.05); }
.ep-btn.active { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.92); }
.ep-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.ep-refs-panel, .ep-generate-panel {
    padding: 20px; text-align: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px; margin-top: 8px;
}

/* === Phase 14A: Publish Modal === */
.lv-publish-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center; z-index: 500;
}
.lv-publish-dialog {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px; padding: 24px; width: 360px; max-width: 95vw;
}
.lv-publish-header {
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; margin-bottom: 20px; font-size: 1rem;
}
.lv-publish-close {
    background: transparent; border: none; color: rgba(255,255,255,0.4);
    cursor: pointer; font-size: 1rem; padding: 4px;
}
.lv-pub-step {
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.85em; color: rgba(255,255,255,0.8);
}
.lv-pub-step:last-child { border-bottom: none; }
.lv-publish-result { display: flex; flex-direction: column; }
.lv-publish-url-wrap {
    display: flex; gap: 8px; align-items: center;
    background: rgba(0,255,136,0.05); border: 1px solid rgba(0,255,136,0.2);
    border-radius: 8px; padding: 10px 14px; margin-top: 16px;
}
.lv-publish-url-link {
    flex: 1; color: var(--neon-green, #00ff88);
    font-size: 0.82em; text-decoration: none; word-break: break-all;
}
.lv-publish-btn { color: var(--neon-green, #00ff88) !important; }

/* === Phase 14B: Version History Menu === */
.lv-version-menu {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px; padding: 4px; min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.lv-vm-title {
    padding: 6px 10px; font-size: 0.72em;
    color: rgba(255,255,255,0.4); border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 2px;
}
.lv-vm-item {
    display: flex; justify-content: space-between; width: 100%;
    padding: 7px 10px; border: none; background: transparent;
    color: rgba(255,255,255,0.75); border-radius: 5px; cursor: pointer;
    font-size: 0.8em; font-family: inherit;
}
.lv-vm-item:hover { background: rgba(255,255,255,0.07); }

/* === Phase 15: Project Dropdown (SEO-style) === */
.dev-proj-wrap { position: relative; flex-shrink: 0; }
.dev-proj-btn {
    display: flex; align-items: center; gap: 8px;
    background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.22);
    color: var(--text-primary); padding: 6px 12px 6px 10px; border-radius: 8px;
    cursor: pointer; font-size: 0.82rem; font-weight: 500; transition: all 0.2s;
    max-width: 180px; font-family: inherit; white-space: nowrap;
}
.dev-proj-btn:hover { background: rgba(0,212,255,0.12); border-color: rgba(0,212,255,0.45); }
.dev-proj-btn .dpb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }
.dev-proj-menu {
    position: absolute; top: calc(100% + 6px); left: 0;
    background: #0d1117; border: 1px solid var(--border-color);
    border-radius: 10px; min-width: 230px; z-index: 300;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6); overflow: hidden;
    display: none;
}
.dev-proj-menu.open { display: block; }
.dev-proj-item {
    padding: 9px 14px; cursor: pointer; transition: background 0.15s;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.82rem;
}
.dev-proj-item:last-child { border-bottom: none; }
.dev-proj-item:hover { background: rgba(0,212,255,0.07); }
.dev-proj-item.active { background: rgba(0,212,255,0.1); color: var(--neon-blue); }
.dev-proj-add {
    padding: 9px 14px; cursor: pointer; font-size: 0.8rem;
    color: var(--neon-blue); display: flex; align-items: center; gap: 6px;
    border-top: 1px solid rgba(255,255,255,0.06); transition: background 0.15s;
}
.dev-proj-add:hover { background: rgba(0,212,255,0.07); }
