/* ============================================================
   AI DevOps Dashboard — Dark Theme
   ============================================================ */

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-hover: #30363d;
    --border: #30363d;
    --border-light: #484f58;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent-blue: #58a6ff;
    --accent-green: #3fb950;
    --accent-yellow: #d29922;
    --accent-orange: #db6d28;
    --accent-red: #f85149;
    --accent-purple: #bc8cff;
    --critical: #f85149;
    --high: #db6d28;
    --medium: #d29922;
    --low: #3fb950;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== УТИЛИТЫ ==================== */
.hidden { display: none !important; }

.screen {
    display: none;
    min-height: 100vh;
}
.screen.active { display: block; }

/* ==================== КНОПКИ ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn:hover { background: var(--bg-hover); border-color: var(--border-light); }
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}
.btn-primary:hover { background: #4090e0; }
.btn-danger {
    background: transparent;
    border-color: var(--accent-red);
    color: var(--accent-red);
}
.btn-danger:hover { background: rgba(248, 81, 73, 0.15); }
.btn-success {
    background: transparent;
    border-color: var(--accent-green);
    color: var(--accent-green);
}
.btn-success:hover { background: rgba(63, 185, 80, 0.15); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-full { width: 100%; padding: 12px; font-size: 15px; }

.btn-loader {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== ЛОГИН ==================== */
#login-screen {
    display: none;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 0%, #1a2332 0%, var(--bg-primary) 70%);
}
#login-screen.active { display: flex; }

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.login-logo {
    text-align: center;
    margin-bottom: 32px;
}
.logo-icon { font-size: 48px; }
.login-logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
}

.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-group .optional {
    color: var(--text-muted);
    font-weight: 400;
}
.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: border-color var(--transition);
}
.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.error-msg {
    margin-top: 12px;
    padding: 10px;
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    border-radius: var(--radius);
    color: var(--accent-red);
    font-size: 13px;
    text-align: center;
}

/* ==================== TOPBAR ==================== */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 0;                 /* ← было 0 0 auto, меняем */
    justify-content: flex-start;
    min-width: 0;
}
.logo-icon-sm { font-size: 22px; }
.topbar h2 {
    font-size: 18px;
    font-weight: 700;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 0;                 /* ← добавляем */
    justify-content: flex-end;
}

.topbar-center,
.topbar > #agent-status-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-badge {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-blue);
    border: 1px solid var(--border);
}

.ws-badge {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}
.ws-badge.connected {
    color: var(--accent-green);
    background: rgba(63, 185, 80, 0.1);
}
.ws-badge.disconnected {
    color: var(--accent-red);
    background: rgba(248, 81, 73, 0.1);
}
.ws-badge.connecting {
    color: var(--accent-yellow);
    background: rgba(210, 153, 34, 0.1);
}

/* ==================== СТАТИСТИКА ==================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    padding: 20px 24px;
}
.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: all var(--transition);
}
.stat-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.stat-number {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-mono);
}
.stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.stat-total .stat-number { color: var(--text-primary); }
.stat-critical .stat-number { color: var(--critical); }
.stat-high .stat-number { color: var(--high); }
.stat-medium .stat-number { color: var(--medium); }
.stat-open .stat-number { color: var(--accent-blue); }

/* ==================== ФИЛЬТРЫ ==================== */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-group label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}
.filter-group select {
    padding: 5px 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    cursor: pointer;
}
.filter-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* ==================== СПИСОК ИНЦИДЕНТОВ ==================== */
.incidents-container {
    padding: 16px 24px;
}
.incidents-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loading-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.incident-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    cursor: pointer;
    transition: all var(--transition);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    animation: slideIn 0.3s ease;
}
.incident-card:hover {
    border-color: var(--border-light);
    background: var(--bg-tertiary);
}
.incident-card.new-incident {
    animation: flashNew 1.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes flashNew {
    0% { border-color: var(--accent-blue); box-shadow: 0 0 20px rgba(88, 166, 255, 0.3); }
    100% { border-color: var(--border); box-shadow: none; }
}

.incident-priority {
    width: 4px;
    height: 40px;
    border-radius: 2px;
}
.priority-CRITICAL { background: var(--critical); }
.priority-HIGH { background: var(--high); }
.priority-MEDIUM { background: var(--medium); }
.priority-LOW { background: var(--low); }

.incident-info { min-width: 0; }
.incident-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.incident-service {
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font-mono);
}
.incident-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.badge {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-critical { background: rgba(248,81,73,0.15); color: var(--critical); }
.badge-high { background: rgba(219,109,40,0.15); color: var(--high); }
.badge-medium { background: rgba(210,153,34,0.15); color: var(--medium); }
.badge-low { background: rgba(63,185,80,0.15); color: var(--low); }
.badge-incident { background: rgba(248,81,73,0.1); color: var(--accent-red); }
.badge-warning { background: rgba(210,153,34,0.1); color: var(--accent-yellow); }
.badge-silent { background: rgba(139,148,158,0.1); color: var(--text-secondary); }
.badge-open { background: rgba(88,166,255,0.1); color: var(--accent-blue); }
.badge-resolved { background: rgba(63,185,80,0.1); color: var(--accent-green); }
.badge-closed { background: rgba(139,148,158,0.1); color: var(--text-muted); }

.incident-cause {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.incident-meta {
    text-align: right;
    white-space: nowrap;
}
.incident-score {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
}
.incident-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==================== ПУСТОЕ СОСТОЯНИЕ ==================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.empty-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 4px; }

/* ==================== МОДАЛЬНОЕ ОКНО ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    animation: modalSlide 0.3s ease;
}
@keyframes modalSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 {
    font-size: 18px;
    font-family: var(--font-mono);
}
.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Детали инцидента внутри модалки */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.detail-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
}
.detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.detail-value {
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-word;
}
.detail-value.mono {
    font-family: var(--font-mono);
    font-size: 13px;
}

.detail-section {
    margin-bottom: 20px;
}
.detail-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.detail-section pre {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
}

.commands-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.commands-list li {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.commands-list li .copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all var(--transition);
}
.commands-list li .copy-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ==================== СКРОЛЛБАР ==================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 768px) {
    .stats-row { grid-template-columns: repeat(3, 1fr); padding: 12px; }
    .filters-bar { padding: 10px 12px; gap: 8px; }
    .incidents-container { padding: 12px; }
    .incident-card { grid-template-columns: auto 1fr; gap: 10px; padding: 12px; }
    .incident-meta { display: none; }
    .detail-grid { grid-template-columns: 1fr; }
    .topbar { padding: 10px 12px; }
    .modal { max-height: 95vh; }
}

@media (max-width: 480px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .login-container { padding: 24px; margin: 12px; }
}

/* ==================== ПЕРЕКЛЮЧАТЕЛЬ LOGIN/REGISTER ==================== */
.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-primary);
    padding: 4px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

    .auth-tab:hover {
        color: var(--text-primary);
    }

    .auth-tab.active {
        background: var(--bg-tertiary);
        color: var(--text-primary);
    }

.auth-form {
    transition: opacity 0.2s ease;
}

.form-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.auth-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}

    .auth-hint code {
        background: var(--bg-tertiary);
        padding: 2px 6px;
        border-radius: 4px;
        font-family: var(--font-mono);
        font-size: 11px;
        color: var(--accent-blue);
    }

.success-msg {
    margin-top: 12px;
    padding: 10px;
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.3);
    border-radius: var(--radius);
    color: var(--accent-green);
    font-size: 13px;
    text-align: center;
}

/* ==================== ИКОНКА-КНОПКА ==================== */
.icon-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.icon-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

/* ==================== TELEGRAM SETTINGS ==================== */
.telegram-linked {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--accent-green);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}
.telegram-linked .tg-avatar {
    font-size: 32px;
    width: 48px;
    height: 48px;
    background: rgba(63, 185, 80, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.telegram-linked .tg-info {
    flex: 1;
}
.telegram-linked .tg-username {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-blue);
    font-family: var(--font-mono);
}
.telegram-linked .tg-status {
    font-size: 12px;
    color: var(--accent-green);
    margin-top: 2px;
}

.telegram-link-box {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}
.telegram-link-box p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}
.telegram-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0088cc;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}
.telegram-link-btn:hover {
    background: #006fa8;
    transform: translateY(-1px);
}
.telegram-link-btn svg {
    width: 20px;
    height: 20px;
}

.telegram-hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* ==================== FALLBACK РУЧНОЙ ПРИВЯЗКИ ==================== */
.telegram-fallback {
    text-align: center;
    margin: 12px 0;
}

.manual-command {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin-top: 8px;
}

.manual-command code {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-green);
    word-break: break-all;
    user-select: all;
}

.manual-command .copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition);
}

.manual-command .copy-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* ==================== РУЧНОЙ АНАЛИЗ ==================== */
.btn-accent {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 8px 16px;
}

.btn-accent:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.manual-hint {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

#manual-analyze-modal .form-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
}

#manual-analyze-modal .form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.manual-badge {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    background: rgba(88, 166, 255, 0.2);
    color: var(--accent-blue);
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 600;
    vertical-align: middle;
}

.badge-info {
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-blue);
}

/* Модальное окно — делаем его flex-колонкой, чтобы footer прилип к низу */
#modal-overlay .modal {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

#modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Footer прижат к низу, не скроллится вместе с контентом */
.modal-footer {
    flex-shrink: 0;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    display: flex;
    gap: 12px;
    align-items: center;
}

.modal-footer.hidden {
    display: none;
}

.modal-footer .btn-analyze {
    flex: 1;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple, #8957e5));
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.modal-footer .btn-analyze:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 132, 255, 0.3);
}

.modal-footer .btn-analyze:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.modal-footer .btn-analyze .btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.processing-indicator {
    color: var(--accent-blue);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==================================================================
   AGENT STATUS BAR (над топбаром)
   ================================================================== */
/* ==================== ИСПРАВЛЕНИЕ ПЛАШКИ АГЕНТА ==================== */
/*
   Было: position: fixed — она перекрывала всё нахуй и была прозрачной
   Стало: position: sticky — корректно встраивается в flow,
   всегда имеет непрозрачный фон и не ломает layout
*/
.agent-status-bar {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 16px;
    margin: 0 8px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease;
}

.agent-status-bar.hidden {
    display: none !important;
}

.agent-status-bar.status-reconnecting {
    display: flex;
    background: linear-gradient(90deg, #d29922, #b8821d);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(210,153,34,0.4);
}

.agent-status-bar.status-disconnected {
    display: flex;
    background: linear-gradient(90deg, #f85149, #d32f2f);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(248,81,73,0.4);
    animation: pulse-red 2s ease-in-out infinite;
}

.agent-status-bar.status-not-installed {
    display: flex;
    background: linear-gradient(90deg, #e3b341, #d29922);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(227,179,65,0.4);
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.agent-status-icon {
    font-size: 18px;
}

/* ==================== LANDING PAGE ==================== */
#landing-screen {
    display: none;
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% 0%, #1a2332 0%, var(--bg-primary) 70%);
}

#landing-screen.active {
    display: block;
}

.landing-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    text-align: center;
}

.landing-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.landing-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e6edf3 0%, #8b949e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-title-accent {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.landing-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    font-family: var(--font-sans);
    text-decoration: none;
}

.landing-btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    box-shadow: 0 4px 20px rgba(88, 166, 255, 0.3);
}

.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(88, 166, 255, 0.4);
}

.landing-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.landing-btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

/* ==================== FEATURES ==================== */
.landing-features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.landing-section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.landing-section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: block;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== SCREENSHOTS ==================== */
.landing-screenshots {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.screenshot-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.screenshot-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
}

.screenshot-placeholder {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.screenshot-placeholder-icon {
    font-size: 48px;
    opacity: 0.5;
}

.screenshot-caption {
    padding: 16px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.screenshot-caption strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

/* ==================== FOOTER CTA ==================== */
.landing-footer-cta {
    width: 100%;
    padding: 60px 24px;
    text-align: center;
    background: linear-gradient(135deg, rgba(88,166,255,0.08), rgba(188,140,255,0.08));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.landing-footer-cta h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.landing-footer-cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 16px;
}

.landing-footer {
    padding: 30px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
}

/* ==================== DOCS SCREEN (ЗАГЛУШКА) ==================== */
#docs-screen {
    display: none;
    min-height: 100vh;
    background: var(--bg-primary);
}

#docs-screen.active {
    display: block;
}

.docs-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 24px 40px;
    text-align: center;
}

.docs-icon {
    font-size: 72px;
    margin-bottom: 24px;
    display: block;
    opacity: 0.6;
}

.docs-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.docs-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.docs-list {
    text-align: left;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 28px;
    margin: 32px auto;
    max-width: 500px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.docs-list li {
    padding-left: 8px;
}

.docs-list code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-blue);
}

.docs-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-sans);
    margin-top: 16px;
}

.docs-back-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-blue);
}

/* ==================== АДАПТИВНОСТЬ ДЛЯ LANDING ==================== */
@media (max-width: 768px) {
    .landing-title { font-size: 38px; }
    .landing-subtitle { font-size: 16px; }
    .landing-hero { padding: 60px 16px 40px; }
    .landing-section-title { font-size: 24px; }
    .landing-btn { padding: 14px 24px; font-size: 15px; }
    .landing-cta { flex-direction: column; align-items: stretch; }
}

/* ==================== КНОПКА "НА ГЛАВНУЮ" НА ЛОГИНЕ ==================== */
.login-home-link {
    position: absolute;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    z-index: 10;
}
.login-home-link:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
    background: var(--bg-tertiary);
    transform: translateX(-2px);
}

/* ==================== КАСТОМНЫЕ ТУЛТИПЫ ДЛЯ ИКОНОК ==================== */
.icon-btn-wrapper {
    position: relative;
    display: inline-flex;
}

.icon-btn-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 6px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-sans);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 200;
}

.icon-btn-wrapper:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==================== СТРАНИЦА ДОКУМЕНТАЦИИ ==================== */
#docs-screen {
    background: var(--bg-primary);
    padding-bottom: 80px;
}

/* ==================== STICKY КНОПКА ВОЗВРАТА ==================== */
.docs-back-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    margin-bottom: 0;
}

.docs-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 16px;
    position: relative;
}

.docs-back-sticky .back-to-landing-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-sans);
}

.docs-back-sticky .back-to-landing-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
    background: var(--bg-tertiary);
    transform: translateX(-2px);
}

.docs-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.docs-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.docs-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

.docs-nav {
    position: sticky;
    top: 90px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.docs-nav-link {
    display: block;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all var(--transition);
    border-left: 2px solid transparent;
}

.docs-nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.docs-nav-link.active {
    color: var(--accent-blue);
    background: rgba(88, 166, 255, 0.08);
    border-left-color: var(--accent-blue);
}

.docs-content {
    min-width: 0;
}

.docs-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    scroll-margin-top: 80px;
}

.docs-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.docs-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 10px;
    color: var(--accent-blue);
}

.docs-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.docs-section ul, .docs-section ol {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin: 8px 0 16px 20px;
}

.docs-section ul li, .docs-section ol li {
    margin-bottom: 6px;
}

.docs-section code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-blue);
}

.docs-section pre {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    overflow-x: auto;
    margin: 12px 0 20px;
}

.docs-section pre code {
    background: transparent;
    padding: 0;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.6;
}

.docs-table {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 12px 0 20px;
}

.docs-table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.docs-table-row:last-child { border-bottom: none; }
.docs-table-row strong { color: var(--text-primary); }
.docs-table-row span { color: var(--text-secondary); }

.docs-score-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 14px;
}
.docs-score-table th, .docs-score-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.docs-score-table th {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.docs-score-table td { color: var(--text-secondary); }
.docs-score-table .score-value {
    color: var(--accent-blue);
    font-weight: 700;
    font-family: var(--font-mono);
    text-align: right;
}

.docs-coming-soon {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-primary);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius);
    margin-top: 20px;
}
.docs-coming-soon-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}
.docs-coming-soon h3 {
    color: var(--text-primary);
    font-size: 18px;
    margin: 0 0 8px;
}
.docs-coming-soon p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Адаптив для документации */
@media (max-width: 900px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .docs-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px;
    }
    .docs-nav-link {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 8px 12px;
        font-size: 13px;
    }
    .docs-nav-link.active {
        border-left-color: transparent;
        border-bottom-color: var(--accent-blue);
    }
    .docs-section { padding: 20px; }
    .docs-title { font-size: 28px; }
}

@media (max-width: 480px) {
    .login-home-link {
        top: 16px;
        left: 16px;
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* ==================== ЗАПРЕТ ВЫДЕЛЕНИЯ ТЕКСТА ==================== */
/*
   Убираем идиотское мигание курсора при клике на случайное место.
   Выделение разрешено только в реальных текстовых полях и блоках кода.
*/
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Разрешаем выделение там, где оно реально нужно */
input,
textarea,
pre,
code,
.mono,
.detail-section,
.detail-value,
.docs-section,
.docs-text,
.docs-coming-soon p,
.landing-title,
.landing-subtitle,
.feature-title,
.feature-desc,
.screenshot-caption,
.telegram-hint,
.manual-hint,
.form-hint,
.auth-hint,
.breakdown-label,
.breakdown-value {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ==================== МОДАЛКА РУЧНОГО АНАЛИЗА — ОТСТУПЫ КНОПОК ==================== */
#manual-analyze-modal .modal {
    display: flex;
    flex-direction: column;
}

#manual-analyze-modal .modal-body {
    flex: 1;
    padding-bottom: 0;
}

#manual-analyze-modal .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    flex-shrink: 0;
}

#manual-analyze-modal .modal-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}

#manual-analyze-modal .modal-actions .btn-accent {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    color: #fff;
    padding: 10px 24px;
}

#manual-analyze-modal .form-group select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M6 8.825a.5.5 0 0 1-.354-.146l-4-4a.5.5 0 1 1 .708-.708L6 7.617l3.646-3.646a.5.5 0 1 1 .708.708l-4 4A.5.5 0 0 1 6 8.825z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
    transition: border-color var(--transition);
}

#manual-analyze-modal .form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

#manual-analyze-modal .form-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#manual-analyze-modal .form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 12px;
}

/* ==================== БАГРЕПОРТ ==================== */
.bugreport-hint {
    background: rgba(210, 153, 34, 0.1);
    border: 1px solid rgba(210, 153, 34, 0.3);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 13px;
    color: var(--accent-yellow);
    margin-bottom: 16px;
    line-height: 1.5;
}

.bugreport-hint strong {
    color: var(--text-primary);
}

.bugreport-textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 140px;
    transition: border-color var(--transition);
}

.bugreport-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.bugreport-textarea::placeholder {
    color: var(--text-muted);
}

/* ==================== ДИНАМИЧЕСКАЯ КОМАНДА В ДОКУМЕНТАЦИИ ==================== */
.install-command-box {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin: 12px 0 20px;
}

.install-command-box pre {
    background: transparent;
    border: none;
    padding: 8px 0;
    margin: 0;
}

.install-command-box code {
    background: transparent;
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
    user-select: all;
}

.install-command-box .copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
}

.install-command-box .copy-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

#bugreport-modal textarea,
.bugreport-textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ==================== МОДАЛКА БАГРЕПОРТА — ОТСТУПЫ КНОПОК ==================== */
#bugreport-modal .modal {
    display: flex;
    flex-direction: column;
}
#bugreport-modal .modal-body {
    flex: 1;
    padding-bottom: 0;
}
#bugreport-modal .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    flex-shrink: 0;
}
#bugreport-modal .modal-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}
#bugreport-modal .modal-actions .btn-accent {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    color: #fff;
    padding: 10px 24px;
}

#tg-channel-btn svg {
    width: 22px;
    height: 22px;
}