:root {
            --bg: #0a0a0a;
            --surface: #111111;
            --surface2: #1a1a1a;
            --border: rgba(255, 255, 255, 0.08);
            --text: #e8e8e8;
            --text-dim: #888;
            --accent: #10a37f;
            --accent2: #0d8f6e;
            --user-bubble: #1a2e24;
            --ai-bubble: #151515;
            --danger: #ff4444;
            --voice-active: #ff3b30;
        }

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

        body {
            font-family: 'Outfit', sans-serif;
            background: var(--bg);
            color: var(--text);
            height: 100dvh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        /* NAV */
        nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 20px;
            background: rgba(10, 10, 10, 0.95);
            border-bottom: 1px solid var(--border);
            backdrop-filter: blur(10px);
            z-index: 100;
        }

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

        .logo {
            font-weight: 800;
            font-size: 1.1rem;
            color: var(--accent);
            letter-spacing: 0.05em;
            text-decoration: none;
        }

        .session-badge {
            font-size: 0.7rem;
            color: var(--text-dim);
            font-family: 'JetBrains Mono', monospace;
            background: var(--surface2);
            padding: 3px 8px;
            border-radius: 20px;
            border: 1px solid var(--border);
        }

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

        .usage-pill {
            font-size: 0.75rem;
            color: var(--text-dim);
            background: var(--surface2);
            padding: 4px 10px;
            border-radius: 20px;
            border: 1px solid var(--border);
        }

        /* LAYOUT & SIDEBAR */
        .main-layout {
            display: flex;
            flex: 1;
            overflow: hidden;
            position: relative;
        }

        .chat-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            position: relative;
            min-width: 0;
        }

        .sidebar {
            width: 260px;
            background: var(--surface);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 50;
        }

        .sidebar-header {
            padding: 16px;
            border-bottom: 1px solid var(--border);
        }

        .new-chat-btn {
            width: 100%;
            background: transparent;
            color: var(--text);
            border: 1px solid var(--border);
            padding: 8px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .new-chat-btn:hover {
            background: var(--surface2);
            border-color: var(--text-dim);
        }

        .chat-sessions-list {
            flex: 1;
            overflow-y: auto;
            padding: 12px 8px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .chat-session-item {
            padding: 10px 12px;
            border-radius: 8px;
            color: var(--text-dim);
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .chat-session-item:hover {
            background: var(--surface2);
            color: var(--text);
        }

        .chat-session-item.active {
            background: var(--surface2);
            color: var(--text);
            border: 1px solid var(--border);
        }
        
        .chat-session-title {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: 600;
        }
        
        .chat-session-date {
            font-size: 0.7rem;
            opacity: 0.6;
        }

        @media (max-width: 768px) {
            .sidebar {
                position: absolute;
                height: 100%;
                transform: translateX(-100%);
            }
            .sidebar.open {
                transform: translateX(0);
                box-shadow: 4px 0 24px rgba(0,0,0,0.5);
            }
        }

        .usage-pill span {
            color: var(--accent);
            font-weight: 600;
        }

        .btn-nav {
            background: none;
            border: 1px solid var(--border);
            color: var(--text-dim);
            padding: 5px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.8rem;
            font-family: 'Outfit', sans-serif;
            transition: all 0.2s;
        }

        .btn-nav:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        /* MESSAGES */
        #messages {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            scroll-behavior: smooth;
        }

        #messages::-webkit-scrollbar {
            width: 4px;
        }

        #messages::-webkit-scrollbar-track {
            background: transparent;
        }

        #messages::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 2px;
        }

        .message {
            display: flex;
            gap: 12px;
            max-width: 80%;
            animation: fadeSlideIn 0.3s ease;
        }

        @keyframes fadeSlideIn {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .message.user {
            align-self: flex-end;
            flex-direction: row-reverse;
        }

        .message.ai {
            align-self: flex-start;
        }

        .avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            flex-shrink: 0;
            font-weight: 700;
        }

        .message.user .avatar {
            background: var(--accent);
            color: #000;
        }

        .message.ai .avatar {
            background: var(--surface2);
            border: 1px solid var(--border);
            color: var(--accent);
        }

        .bubble {
            padding: 12px 18px;
            border-radius: 20px;
            line-height: 1.6;
            font-size: 1rem;
            max-width: 100%;
            word-break: break-word;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        .message.user .bubble {
            background: var(--user-bubble);
            border: 1px solid rgba(16, 163, 127, 0.2);
            border-bottom-right-radius: 4px;
        }

        .message.ai .bubble {
            background: var(--ai-bubble);
            border: 1px solid var(--border);
            border-bottom-left-radius: 4px;
        }

        .bubble .meta {
            margin-top: 6px;
            font-size: 0.72rem;
            color: var(--text-dim);
            font-family: 'JetBrains Mono', monospace;
        }

        .bubble .consult-signature {
            margin-top: 8px;
            font-size: 0.70rem;
            color: var(--accent);
            font-family: 'JetBrains Mono', monospace;
            background: rgba(16, 163, 127, 0.1);
            padding: 3px 6px;
            border-radius: 4px;
            display: inline-block;
            border: 1px solid rgba(16, 163, 127, 0.2);
        }

        .bubble .voice-tag {
            display: inline-block;
            font-size: 0.72rem;
            background: rgba(16, 163, 127, 0.15);
            color: var(--accent);
            padding: 1px 6px;
            border-radius: 4px;
            margin-bottom: 4px;
        }

        /* Typing indicator */
        .typing-bubble {
            display: flex;
            gap: 4px;
            padding: 14px 18px;
            align-items: center;
        }

        .typing-dot {
            width: 7px;
            height: 7px;
            background: var(--text-dim);
            border-radius: 50%;
            animation: typingBounce 1.2s infinite;
        }

        .typing-dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes typingBounce {

            0%,
            60%,
            100% {
                transform: translateY(0);
                opacity: 0.4;
            }

            30% {
                transform: translateY(-6px);
                opacity: 1;
            }
        }

        /* Empty state */
        .empty-state {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            color: var(--text-dim);
            text-align: center;
        }

        .empty-state .icon {
            font-size: 3rem;
            margin-bottom: 8px;
        }

        .empty-state h2 {
            font-size: 1.4rem;
            color: var(--text);
            font-weight: 600;
        }

        .empty-state p {
            font-size: 0.9rem;
            max-width: 300px;
        }

        .quick-prompts {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            margin-top: 12px;
        }

        .quick-prompt {
            background: var(--surface2);
            border: 1px solid var(--border);
            color: var(--text-dim);
            padding: 7px 14px;
            border-radius: 20px;
            font-size: 0.82rem;
            cursor: pointer;
            font-family: 'Outfit', sans-serif;
            transition: all 0.2s;
        }

        .quick-prompt:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        /* FILE PREVIEWS */
        .file-preview-item {
            position: relative;
            width: 60px;
            height: 60px;
            border-radius: 8px;
            background: var(--surface2);
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        
        .file-preview-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .file-preview-item .file-icon {
            font-size: 1.5rem;
            color: var(--text-dim);
        }

        .file-preview-remove {
            position: absolute;
            top: -6px;
            right: -6px;
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--text);
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            cursor: pointer;
            z-index: 10;
        }

        .file-preview-remove:hover {
            background: var(--danger);
            color: #fff;
            border-color: var(--danger);
        }
        
        .file-preview-progress {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 4px;
            background: var(--accent);
            width: 0%;
            transition: width 0.2s;
        }

        /* INPUT AREA */
        .input-area {
            padding: 16px 20px 20px;
            background: rgba(10, 10, 10, 0.95);
            border-top: 1px solid var(--border);
            backdrop-filter: blur(10px);
        }

        .input-row {
            display: flex;
            gap: 10px;
            align-items: flex-end;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 18px;
            padding: 8px 8px 8px 16px;
            transition: border-color 0.2s, box-shadow 0.2s;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .input-row:focus-within {
            border-color: rgba(16, 163, 127, 0.5);
            box-shadow: 0 4px 16px rgba(16, 163, 127, 0.15);
        }

        #input {
            flex: 1;
            background: none;
            border: none;
            outline: none;
            color: var(--text);
            font-size: 1rem;
            font-family: 'Outfit', sans-serif;
            resize: none;
            min-height: 24px;
            max-height: 250px;
            overflow-y: auto;
            line-height: 1.5;
            padding-top: 6px;
            padding-bottom: 6px;
        }

        #input::-webkit-scrollbar {
            width: 4px;
        }

        #input::-webkit-scrollbar-track {
            background: transparent;
        }

        #input::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 2px;
        }

        #input::placeholder {
            color: var(--text-dim);
        }

        .input-buttons {
            display: flex;
            gap: 6px;
            align-items: center;
        }

        .btn-icon {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        #btn-voice {
            background: var(--surface2);
            color: var(--text-dim);
        }

        #btn-voice:hover {
            background: rgba(255, 59, 48, 0.15);
            color: var(--voice-active);
        }

        #btn-voice.recording {
            background: var(--voice-active);
            color: white;
            animation: pulse 1s infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4);
            }

            50% {
                box-shadow: 0 0 0 8px rgba(255, 59, 48, 0);
            }
        }

        #btn-send {
            background: var(--accent);
            color: #000;
            font-weight: 700;
        }

        #btn-send:hover {
            background: var(--accent2);
        }

        #btn-send:disabled {
            background: var(--surface2);
            color: var(--text-dim);
            cursor: not-allowed;
        }

        pre {
            background: #0d0d0d;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 12px;
            overflow-x: auto;
            margin: 8px 0;
        }

        code {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85rem;
        }

        p code {
            background: rgba(255, 255, 255, 0.08);
            padding: 2px 6px;
            border-radius: 4px;
        }

        .bubble p {
            margin-bottom: 8px;
        }

        .bubble p:last-child {
            margin-bottom: 0;
        }

        .bubble ul,
        .bubble ol {
            padding-left: 20px;
            margin-bottom: 8px;
        }

        .bubble li {
            margin-bottom: 4px;
        }

        .hint a {
            color: var(--accent);
            text-decoration: none;
        }

        /* Advanced panel */
        .advanced-toggle {
            background: none;
            border: none;
            color: var(--text-dim);
            font-size: 0.78rem;
            cursor: pointer;
            font-family: 'Outfit', sans-serif;
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 4px 0;
            transition: color 0.2s;
        }

        .advanced-toggle:hover {
            color: var(--accent);
        }

        .advanced-panel {
            display: none;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 14px 16px;
            margin-bottom: 10px;
            gap: 12px;
            flex-direction: column;
            animation: fadeSlideIn 0.2s ease;
        }

        .advanced-panel.open {
            display: flex;
        }

        .adv-row {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .adv-label {
            font-size: 0.78rem;
            color: var(--text-dim);
            white-space: nowrap;
            min-width: 90px;
        }

        .adv-select,
        .adv-input {
            flex: 1;
            background: var(--surface2);
            border: 1px solid var(--border);
            color: var(--text);
            border-radius: 7px;
            padding: 5px 10px;
            font-size: 0.83rem;
            font-family: 'Outfit', sans-serif;
            outline: none;
            transition: border-color 0.2s;
        }

        .adv-select:focus,
        .adv-input:focus {
            border-color: rgba(16, 163, 127, 0.5);
        }

        .adv-textarea {
            flex: 1;
            background: var(--surface2);
            border: 1px solid var(--border);
            color: var(--text);
            border-radius: 7px;
            padding: 8px 10px;
            font-size: 0.82rem;
            font-family: 'JetBrains Mono', monospace;
            resize: vertical;
            min-height: 60px;
            outline: none;
            width: 100%;
            transition: border-color 0.2s;
        }

        .adv-textarea:focus {
            border-color: rgba(16, 163, 127, 0.5);
        }

        /* Voice recording indicator */

        #voice-indicator {
            display: none;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: rgba(255, 59, 48, 0.1);
            border: 1px solid rgba(255, 59, 48, 0.3);
            border-radius: 10px;
            margin-bottom: 10px;
            font-size: 0.85rem;
            color: var(--voice-active);
        }

        #voice-indicator.show {
            display: flex;
        }

        .rec-dot {
            width: 8px;
            height: 8px;
            background: var(--voice-active);
            border-radius: 50%;
            animation: pulse 1s infinite;
        }

        /* ── CUSTOM USER PROFILE & TOAST STYLING ── */
        .avatar-ring {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            padding: 1px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
            position: relative;
        }

        .avatar-ring:hover {
            transform: scale(1.08);
        }

        .avatar-ring.free {
            background: hsl(215, 15%, 35%);
            box-shadow: 0 0 8px hsla(215, 15%, 35%, 0.4);
        }

        .avatar-ring.pro {
            background: linear-gradient(135deg, hsl(164, 82%, 36%), hsl(239, 84%, 67%));
            box-shadow: 0 0 10px hsla(164, 82%, 36%, 0.5);
        }

        .avatar-ring.ultra {
            background: linear-gradient(135deg, hsl(45, 93%, 47%), hsl(24, 94%, 50%));
            box-shadow: 0 0 12px hsla(45, 93%, 47%, 0.6);
        }

        .avatar-inner {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: hsl(220, 28%, 8%);
            color: hsl(210, 20%, 96%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.72rem;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
        }

        /* ── TOAST NOTIFICATION SYSTEM ── */
        #toast-container {
            position: fixed;
            bottom: 24px;
            right: 24px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 10000;
            pointer-events: none;
        }

        .glass-toast {
            background: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--border);
            border-left: 4px solid var(--accent);
            border-radius: 8px;
            padding: 14px 20px;
            color: var(--text);
            font-size: 0.88rem;
            font-weight: 500;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            gap: 12px;
            pointer-events: auto;
            min-width: 280px;
            max-width: 400px;
            animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            transition: opacity 0.3s, transform 0.3s;
        }

        .glass-toast.error {
            border-left-color: var(--danger);
        }

        .glass-toast.info {
            border-left-color: var(--text-dim);
        }

        @keyframes toastSlideIn {
            from {
                opacity: 0;
                transform: translateX(50px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes toastFadeOut {
            to {
                opacity: 0;
                transform: translateY(10px);
            }
        }

        /* ── MODEL SELECTOR BUTTON & STATS PANEL ── */
        .model-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--text);
            padding: 6px 14px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 0.82rem;
            font-family: 'Outfit', sans-serif;
            font-weight: 500;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            white-space: nowrap;
        }

        .model-btn:hover {
            border-color: var(--accent);
            background: var(--surface2);
            box-shadow: 0 0 12px rgba(16, 163, 127, 0.12);
        }

        .model-btn.open {
            border-color: var(--accent);
            background: var(--surface2);
        }

        .model-btn .status-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: 0 0 6px var(--accent);
            animation: dotPulse 2s ease-in-out infinite;
        }

        .model-btn .status-dot.warn {
            background: #f59e0b;
            box-shadow: 0 0 6px #f59e0b;
        }

        .model-btn .status-dot.off {
            background: #555;
            box-shadow: none;
            animation: none;
        }

        @keyframes dotPulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }
        }

        .model-btn .chevron {
            font-size: 0.65rem;
            color: var(--text-dim);
            transition: transform 0.2s;
        }

        .model-btn.open .chevron {
            transform: rotate(180deg);
        }

        /* Stats flyout panel */
        .stats-panel {
            display: none;
            position: absolute;
            bottom: calc(100% + 8px);
            left: 0;
            min-width: 340px;
            max-width: 400px;
            background: rgba(17, 17, 17, 0.97);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 0;
            z-index: 200;
            box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
            animation: panelSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            overflow: hidden;
        }

        .stats-panel.open {
            display: block;
        }

        @keyframes panelSlideUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .stats-section {
            padding: 14px 16px;
            border-bottom: 1px solid var(--border);
        }

        .stats-section:last-child {
            border-bottom: none;
        }

        .stats-section-title {
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--text-dim);
            margin-bottom: 10px;
            font-weight: 600;
        }

        /* Model selection grid */
        .model-grid {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .model-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 10px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.15s;
            border: 1px solid transparent;
        }

        .model-option:hover {
            background: var(--surface2);
        }

        .model-option.active {
            background: rgba(16, 163, 127, 0.1);
            border-color: rgba(16, 163, 127, 0.3);
        }

        .model-option .model-icon {
            font-size: 1rem;
            width: 20px;
            text-align: center;
        }

        .model-option .model-info {
            flex: 1;
        }

        .model-option .model-name {
            font-size: 0.82rem;
            font-weight: 500;
            color: var(--text);
        }

        .model-option .model-desc {
            font-size: 0.68rem;
            color: var(--text-dim);
        }

        .model-option .model-badge {
            font-size: 0.62rem;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .model-badge.free {
            background: rgba(16, 163, 127, 0.15);
            color: var(--accent);
        }

        .model-badge.pro {
            background: rgba(99, 102, 241, 0.15);
            color: #818cf8;
        }

        .model-badge.ultra {
            background: rgba(245, 158, 11, 0.15);
            color: #f59e0b;
        }

        /* Quota bars */
        .quota-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }

        .quota-row:last-child {
            margin-bottom: 0;
        }

        .quota-label {
            font-size: 0.72rem;
            color: var(--text-dim);
            min-width: 68px;
            font-family: 'JetBrains Mono', monospace;
        }

        .quota-bar-wrap {
            flex: 1;
            height: 6px;
            background: var(--surface2);
            border-radius: 3px;
            overflow: hidden;
        }

        .quota-bar {
            height: 100%;
            border-radius: 3px;
            transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .quota-bar.ok {
            background: linear-gradient(90deg, #10a37f, #34d399);
        }

        .quota-bar.warn {
            background: linear-gradient(90deg, #f59e0b, #fbbf24);
        }

        .quota-bar.full {
            background: linear-gradient(90deg, #ef4444, #f87171);
        }

        .quota-pct {
            font-size: 0.68rem;
            color: var(--text-dim);
            min-width: 34px;
            text-align: right;
            font-family: 'JetBrains Mono', monospace;
        }

        /* Connectors */
        .connectors-grid {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .connector-chip {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 4px 10px;
            border-radius: 6px;
            background: var(--surface2);
            border: 1px solid var(--border);
            font-size: 0.72rem;
            color: var(--text-dim);
            transition: all 0.2s;
        }

        .connector-chip.online {
            border-color: rgba(16, 163, 127, 0.3);
            color: var(--accent);
        }

        .connector-chip .conn-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #555;
        }

        .connector-chip.online .conn-dot {
            background: var(--accent);
            box-shadow: 0 0 4px var(--accent);
        }

        /* Chat stats row */
        .chat-stats-row {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .chat-stat {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .chat-stat-value {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text);
            font-family: 'JetBrains Mono', monospace;
        }

        .chat-stat-label {
            font-size: 0.62rem;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

        /* System prompt in panel */
        .stats-panel .adv-textarea {
            margin-top: 6px;
            min-height: 50px;
            font-size: 0.78rem;
        }