@charset "UTF-8";
/* ==========================================================================
 * ██╗  ██╗███╗   ██╗████████╗████████╗████████╗████████╗██╗  ██╗    ████████╗████████╗██████╗ ████████╗
 * ██║ ██╔╝████╗  ██║██╔═══██╗██╔═══██╗██╔═══██╗██╔═══██╗██║ ██╔╝    ██╔═════╝██╔═══██╗██╔══██╗██╔═════╝
 * █████╔╝ ██╔██╗ ██║██║   ██║██║   ██║██║   ██║██║   ██║█████╔╝     ██║      ██║   ██║██████╔╝██████╗
 * ██╔═██╗ ██║╚██╗██║██║   ██║██║   ██║██║   ██║██║   ██║██╔═██╗     ██║      ██║   ██║██╔══██╗██╔═══╝
 * ██║  ██╗██║ ╚████║╚███████╔╝╚███████╔╝╚███████╔╝╚███████╔╝██║  ██╗    ╚████████╗╚███████╔╝██║  ██║████████╗
 * ╚═╝  ╚═╝╚═╝  ╚═══╝ ╚══════╝  ╚══════╝  ╚══════╝  ╚══════╝ ╚═╝  ╚═╝     ╚═══════╝ ╚══════╝ ╚═╝  ╚═╝╚═══════╝
 * * PROJECT: KNOOOOX CORE - ABSOLUTE UI/UX ENGINE
 * VERSION: 3.0.0 (TMA OPTIMIZED MONOLITH)
 * STYLE: NEOMORPHIC BRUTALISM & DARK GLASS
 * ARCHITECTURE: OOCSS, BEM-ish, FLUID FLEXBOX
 * ========================================================================== */

/* ==========================================================================
 * 1. DESIGN TOKENS (ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ СИСТЕМЫ)
 * ========================================================================== */
:root {
    /* --- БАЗОВАЯ ПАЛИТРА (ABSOLUTE BLACK) --- */
    --bg-base: #000000;
    --bg-surface: #0a0a0a;
    --bg-surface-hover: #121212;
    --bg-elevated: #151515;
    --bg-modal: rgba(10, 10, 10, 0.95);
    --bg-overlay: rgba(0, 0, 0, 0.85);

    /* --- ПРОЗРАЧНОСТЬ И СТЕКЛО (GLASSMORPHISM) --- */
    --glass-bg: rgba(15, 15, 15, 0.6);
    --glass-blur: blur(20px) saturate(180%);

    /* --- СИСТЕМА ГРАНИЦ (BORDERS) --- */
    --border-dim: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-medium: rgba(255, 255, 255, 0.2);
    --border-strong: rgba(255, 255, 255, 0.4);
    --border-focus: #ffffff;

    /* --- ТИПОГРАФИКА И ТЕКСТ --- */
    --text-main: #ffffff;
    --text-muted: #888888;
    --text-dim: #444444;
    --text-inverse: #000000;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', "Fira Code", Consolas, monospace;

    /* --- ЦВЕТА СТАТУСОВ (NEON ACCENTS) --- */
    --accent: #ffffff;
    --success: #32d74b;
    --success-bg: rgba(50, 215, 75, 0.1);
    --warning: #ffd60a;
    --warning-bg: rgba(255, 214, 10, 0.1);
    --danger: #ff453a;
    --danger-bg: rgba(255, 69, 58, 0.1);
    --info: #0a84ff;

    /* --- ГЕОМЕТРИЯ (RADIUS & SIZING) --- */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 9999px;

    /* --- АНИМАЦИИ И ФИЗИКА (SPRING & EXPO) --- */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.26, 1.55);
    --transition-fast: 0.15s var(--ease-out-expo);
    --transition-base: 0.3s var(--ease-spring);
    --transition-slow: 0.5s var(--ease-spring);

    /* --- TELEGRAM SAFE AREAS (КРИТИЧНО ДЛЯ TMA) --- */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ==========================================================================
 * 2. НОРМАЛИЗАЦИЯ И СБРОС (CORE RESET)
 * ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

html {
    /* Решает проблему с уезжающим экраном на iOS/Android */
    height: 100%;
    width: 100%;
    overflow: hidden;
    touch-action: none; /* Запрет системного пулл-ту-рефреша и скейла */
    background-color: var(--bg-base);
}

body {
    /* Используем переменные Telegram WebApp для точной высоты экрана */
    height: 100%;
    height: var(--tg-viewport-stable-height, 100vh);
    width: 100vw;
    background: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden; /* Глобальный запрет скролла. Скроллиться будет только main */
}

/* --- КАСТОМНЫЕ СКРОЛЛБАРЫ ДЛЯ ВСЕХ ЭЛЕМЕНТОВ --- */
::-webkit-scrollbar { width: 4px; height: 4px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

button { border: none; background: none; font-family: inherit; color: inherit; cursor: pointer; }
input, textarea { font-family: inherit; color: inherit; border: none; outline: none; background: none; }
ul, ol { list-style: none; }

/* ==========================================================================
 * 3. ГЛОБАЛЬНЫЕ СЛОИ И КАРКАС ПРИЛОЖЕНИЯ (LAYOUT SHELL)
 * ========================================================================== */

/* Физически-корректный шум на фоне */
.noise-layer {
    position: fixed; inset: 0;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.04; pointer-events: none; z-index: 1;
    mix-blend-mode: screen;
}

/* Главный контейнер приложения */
.app-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%; /* Занимает строго 100% от стабильного viewport ТГ */
    display: flex;
    flex-direction: column;
    padding-top: var(--safe-top); /* Отступ от челки iPhone */
    padding-bottom: var(--safe-bottom); /* Отступ от полоски iPhone */
}

/* ==========================================================================
 * 4. HEADER (СТЕКЛЯННЫЙ ПУЛЬТ)
 * ========================================================================== */
.flux-header {
    margin: 16px 16px 0;
    padding: 16px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Запрещаем хедеру сжиматься */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    z-index: 50;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-dot {
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
    animation: core-pulse 2.5s infinite;
}

.brand-name {
    font-size: 15px; font-weight: 900;
    letter-spacing: 2px; text-transform: uppercase;
}

.system-status {
    font-family: var(--font-mono); font-size: 10px; font-weight: 800;
    padding: 6px 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-dim);
    display: flex; align-items: center; gap: 8px;
    transition: var(--transition-base);
    background: rgba(0,0,0,0.3);
}
.status-connecting { color: var(--warning); border-color: var(--warning-bg); }
.status-online { color: var(--success); border-color: var(--success-bg); }
.status-error { color: var(--danger); border-color: var(--danger-bg); }
.pulse-indicator { width: 6px; height: 6px; background: currentColor; border-radius: 50%; box-shadow: 0 0 8px currentColor; }

/* ==========================================================================
 * 5. ОСНОВНОЙ КОНТЕНТ (ЕДИНСТВЕННАЯ ЗОНА СКРОЛЛА)
 * ========================================================================== */
.main-content {
    flex: 1; /* Занимает все оставшееся место */
    width: 100%;
    padding: 24px 16px 40px; /* Отступы внутри */
    overflow-y: auto; /* Включаем скролл только здесь! */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-title {
    font-size: 12px; font-weight: 900; color: var(--text-muted);
    letter-spacing: 1.5px; text-transform: uppercase;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: -16px; /* Компенсация gap контейнера */
}
.section-title svg { width: 16px; height: 16px; stroke-width: 2.5; }
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-light), transparent); }

/* ==========================================================================
 * 6. ПАНЕЛЬ МОНИТОРИНГА (STATS BENTO)
 * ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-item {
    background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 4px 15px rgba(0,0,0,0.3);
    position: relative; overflow: hidden;
}

/* Блик на карточках статы */
.stat-item::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
    transform: skewX(-20deg); animation: card-shine 6s infinite;
}

.stat-header { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.stat-icon { width: 14px; height: 14px; stroke-width: 2.5; color: var(--accent); }
.stat-label { font-size: 10px; font-weight: 800; letter-spacing: 0.5px; }

.stat-value { font-family: var(--font-mono); font-size: 22px; font-weight: 800; display: flex; align-items: baseline; }
.stat-unit { font-size: 11px; color: var(--text-dim); margin-left: 4px; font-weight: 700; }

/* Кастомный прогресс-бар */
.stat-progress-bar { width: 100%; height: 4px; background: rgba(0,0,0,0.5); border-radius: 2px; overflow: hidden; border: 1px solid var(--border-dim); }
.progress-fill { height: 100%; background: var(--accent); transition: width 1s var(--ease-spring), background 0.5s; box-shadow: 0 0 10px currentColor; }

/* ==========================================================================
 * 7. ГЛОБАЛЬНЫЕ КНОПКИ (ACTIONS)
 * ========================================================================== */
.global-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-primary, .btn-secondary {
    height: 54px;
    border-radius: var(--radius-md);
    font-size: 13px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: var(--transition-base);
    position: relative; overflow: hidden;
}
.btn-primary svg, .btn-secondary svg { width: 18px; height: 18px; stroke-width: 2; }

.btn-primary {
    background: var(--text-main); color: var(--bg-base);
    box-shadow: 0 8px 20px rgba(255,255,255,0.15);
}
.btn-secondary {
    background: var(--bg-surface); border: 1px solid var(--border-light); color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.btn-primary:active, .btn-secondary:active {
    transform: scale(0.95);
}
.btn-secondary:active { background: var(--border-dim); }

/* Мини-кнопка иконок (Обновить) */
.btn-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border-dim); background: var(--bg-surface); transition: var(--transition-fast); }
.btn-icon:active { transform: scale(0.85); background: var(--border-light); }
.btn-icon svg { width: 14px; height: 14px; color: var(--text-muted); }
.btn-refresh { margin-left: auto; }

/* ==========================================================================
 * 8. КАРТОЧКИ МОДУЛЕЙ (СЕРВИСЫ SYSTEMD)
 * ========================================================================== */
.projects-section { display: flex; flex-direction: column; gap: 24px; }
.projects-grid { display: flex; flex-direction: column; gap: 16px; }

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex; flex-direction: column; gap: 16px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    animation: card-appear 0.6s var(--ease-out-expo) backwards;
}

.project-header { display: flex; justify-content: space-between; align-items: flex-start; }
.project-title { font-size: 16px; font-weight: 900; letter-spacing: -0.5px; }
.project-route { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); margin-top: 6px; letter-spacing: 0.5px; }

.badge {
    font-family: var(--font-mono); font-size: 9px; font-weight: 900;
    padding: 6px 10px; border-radius: 6px; letter-spacing: 1px; text-transform: uppercase;
}
.badge-active { background: var(--success-bg); color: var(--success); border: 1px solid rgba(50,215,75,0.2); }
.badge-stopped { background: rgba(255,255,255,0.03); color: var(--text-dim); border: 1px dashed var(--text-dim); }

.project-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.btn-ctrl {
    height: 48px; background: var(--bg-elevated); border: 1px solid var(--border-dim);
    border-radius: 12px; color: var(--text-main); display: flex; justify-content: center; align-items: center;
    transition: var(--transition-fast); position: relative;
}
.btn-ctrl svg { width: 18px; height: 18px; }
.btn-ctrl:active { transform: scale(0.9); background: var(--border-light); }

/* Подсветка кнопок управления при нажатии */
.btn-ctrl[title="Запустить"]:active { color: var(--success); border-color: var(--success); }
.btn-ctrl[title="Остановить"]:active { color: var(--danger); border-color: var(--danger); }
.btn-ctrl[title="Перезагрузить"]:active { color: var(--warning); border-color: var(--warning); }

.project-loader {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 30px; color: var(--text-muted); font-size: 12px; font-weight: 700;
    border: 1px dashed var(--border-dim); border-radius: var(--radius-lg);
}

/* ==========================================================================
 * 9. МОДАЛЬНЫЕ ОКНА (АБСОЛЮТНАЯ ИЗОЛЯЦИЯ)
 * ========================================================================== */
.center-modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    height: var(--tg-viewport-stable-height, 100vh); /* Точный размер экрана TMA */
    background: var(--bg-overlay);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    padding-top: calc(16px + var(--safe-top));
    padding-bottom: calc(16px + var(--safe-bottom));
    opacity: 0; pointer-events: none; transition: opacity var(--transition-base);
}
.center-modal.active { opacity: 1; pointer-events: auto; }

.modal-dialog {
    width: 100%; max-width: 1200px;
    height: 100%; max-height: 85vh; /* Модалка не вылезет за экран */
    background: var(--bg-modal); border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    display: flex; flex-direction: column; /* Жизненно важно для Flex-архитектуры внутри */
    overflow: hidden; /* Обрезаем всё, что вылезло */
    transform: scale(0.95) translateY(20px); transition: transform var(--transition-base);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
}
.center-modal.active .modal-dialog { transform: scale(1) translateY(0); }

.modal-header {
    padding: 16px 20px; border-bottom: 1px solid var(--border-dim);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-elevated); flex-shrink: 0; /* Шапка не сжимается */
}
.modal-title { font-size: 14px; font-weight: 900; display: flex; align-items: center; gap: 10px; overflow: hidden; }
.btn-close { width: 36px; height: 36px; background: var(--bg-surface); border: 1px solid var(--border-dim); border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: var(--transition-fast); }
.btn-close:active { background: var(--danger-bg); color: var(--danger); border-color: rgba(255,69,58,0.3); transform: scale(0.9); }

.modal-body {
    flex: 1; /* Занимает всё оставшееся место модалки */
    min-height: 0; /* ВАЖНО: Фикс для Flexbox, чтобы внутренности могли скроллиться */
    display: flex;
    flex-direction: column;
    background: var(--bg-base);
    position: relative;
}

/* ==========================================================================
 * 10. ТЕРМИНАЛ (XTERM.JS OVERRIDES)
 * ========================================================================== */
.terminal-body { padding: 12px; }
#terminal-container {
    flex: 1; width: 100%; height: 100%;
    min-height: 0; /* Обязательно для XTerm FitAddon */
    overflow: hidden;
}
/* Переписываем стили встроенного XTerm */
.xterm-viewport { background-color: transparent !important; }
.xterm-viewport::-webkit-scrollbar { width: 6px; }
.xterm-viewport::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 3px; }

/* ==========================================================================
 * 11. ФАЙЛОВЫЙ МЕНЕДЖЕР (РЕШЕНИЕ ПРОБЛЕМ СО СКРОЛЛОМ И СЪЕЗДОМ)
 * ========================================================================== */
.fs-breadcrumbs { font-family: var(--font-mono); font-size: 11px; white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-right: 20px; }
.fs-breadcrumbs::-webkit-scrollbar { display: none; }
.fs-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.btn-success { background: var(--success); color: #000; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 0 16px; height: 36px; display: flex; align-items: center; gap: 8px; }

.fs-body {
    flex-direction: row; /* Две колонки (Сайдбар + Редактор) */
    width: 100%;
}

/* ЛЕВАЯ ПАНЕЛЬ (Дерево файлов) */
.fs-sidebar {
    width: 35%; /* На телефонах 35% экрана */
    min-width: 140px;
    max-width: 260px;
    border-right: 1px solid var(--border-dim);
    display: flex; flex-direction: column;
    background: var(--bg-surface);
}
.fs-sidebar-header { padding: 10px; border-bottom: 1px solid var(--border-dim); display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.fs-current-dir { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Зона скролла файлов */
.fs-tree {
    flex: 1;
    overflow-y: auto; /* Включаем скролл списка файлов */
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
}
.fs-item {
    padding: 12px 14px; font-family: var(--font-mono); font-size: 11px;
    display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.02); transition: var(--transition-fast);
}
.fs-item:active { background: var(--border-dim); }
.fs-item.active-file { background: rgba(255,255,255,0.05); color: #fff; border-left: 2px solid var(--accent); }

.fs-loader { display: flex; justify-content: center; padding: 20px; color: var(--text-dim); }

/* ПРАВАЯ ПАНЕЛЬ (Редактор) */
.fs-editor-container {
    flex: 1;
    display: flex; flex-direction: column;
    background: #030303;
    min-width: 0; /* Фикс для переполнения текста во flex-контейнере */
}
.fs-editor-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-dim); gap: 16px; font-size: 13px; font-weight: 700; }
.fs-textarea {
    flex: 1; width: 100%; height: 100%; background: transparent; border: none;
    color: #d4d4d4; font-family: var(--font-mono); font-size: 12px;
    padding: 16px; line-height: 1.6; resize: none; overflow-y: auto;
}
.fs-textarea:focus { outline: none; }

/* ==========================================================================
 * 12. МИКРО-ВЗАИМОДЕЙСТВИЯ, TOASTS, SKELETONS
 * ========================================================================== */

/* Анимация заглушек до загрузки данных */
.skeleton-text {
    display: inline-block; min-width: 40px; height: 1em;
    background: linear-gradient(90deg, #111 25%, #222 50%, #111 75%);
    background-size: 200% 100%; animation: skeleton-shimmer 1.5s infinite linear;
    border-radius: 4px; color: transparent !important; user-select: none;
}
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Всплывающие уведомления */
#toast-container {
    position: fixed; top: calc(20px + var(--safe-top)); left: 50%; transform: translateX(-50%);
    z-index: 2000; display: flex; flex-direction: column; gap: 8px;
    pointer-events: none; width: 90%; max-width: 400px;
}
.toast {
    background: var(--bg-elevated); border: 1px solid var(--border-light);
    padding: 14px 20px; border-radius: var(--radius-lg); font-size: 12px; font-weight: 800;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
    display: flex; align-items: center; gap: 12px;
    animation: toast-in 0.4s var(--ease-spring) forwards; pointer-events: auto;
}

/* Глобальные утилиты */
.hidden { display: none !important; }
.spin-icon { animation: spin 1s linear infinite; }

/* Анимации ключей */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes core-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 15px rgba(255,255,255,0.5); } 50% { opacity: 0.4; box-shadow: 0 0 5px rgba(255,255,255,0.1); transform: scale(0.9); } }
@keyframes card-shine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }
@keyframes card-appear { 0% { opacity: 0; transform: translateY(20px) scale(0.95); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { 0% { opacity: 0; transform: translateY(-30px) scale(0.9); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

/* ==========================================================================
 * 13. АДАПТИВНОСТЬ (МЕДИА-ЗАПРОСЫ)
 * ========================================================================== */
@media (max-width: 380px) {
    .stats-grid { grid-template-columns: 1fr; } /* Стата в один столбец на очень мелких экранах */
    .fs-sidebar { width: 45%; } /* Увеличиваем левую панель в ФС */
    .fs-item { padding: 10px; font-size: 10px; }
    .project-controls { grid-template-columns: repeat(2, 1fr); } /* Кнопки бота в 2 ряда */
}