<style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: system-ui, sans-serif; background: #0a0a0f; color: #e8e8f0; }
        .container { max-width: 800px; margin: 0 auto; padding: 60px 16px 32px; }
        h1 { font-size: 24px; margin-bottom: 4px; }
        .sub { color: #9a9ab0; font-size: 13px; margin-bottom: 24px; }
        .nav-tabs { display: flex; gap: 24px; margin-bottom: 24px; border-bottom: 1px solid #2a2a3a; padding-bottom: 8px; }
        .tab-btn { background: none; border: none; color: #6a6a8a; font-size: 16px; cursor: pointer; padding: 8px 0; }
        .tab-btn.active { color: #00d4aa; border-bottom: 2px solid #00d4aa; margin-bottom: -9px; }
        .screen { display: none; }
        .screen.active { display: block; }
        .upload-area { border: 2px dashed #2a2a3a; border-radius: 16px; padding: 40px 20px; text-align: center; background: #12121a; cursor: pointer; }
        .upload-area:hover { border-color: #00d4aa; background: #1a1a2e; }
        .or-divider { text-align: center; color: #6a6a8a; margin: 20px 0; }
        .manual-btn { width: 100%; padding: 14px; background: #1a1a2e; border: 1px solid #2a2a3a; border-radius: 12px; color: #e8e8f0; cursor: pointer; }
        .status { margin-top: 20px; padding: 14px; background: #12121a; border-radius: 12px; border-left: 3px solid #00d4aa; font-size: 13px; color: #9a9ab0; }
        .results-table { width: 100%; border-collapse: collapse; background: #12121a; border-radius: 12px; overflow: hidden; font-size: 13px; }
        .results-table th, .results-table td { padding: 12px 8px; text-align: left; border-bottom: 1px solid #2a2a3a; }
        .results-table th { background: #1a1a2e; color: #9a9ab0; font-size: 11px; }
        .value-high { color: #ef4444; font-weight: 600; }
        .value-low { color: #f59e0b; font-weight: 600; }
        .value-normal { color: #22c55e; }
        .out-of-range-badge { display: inline-block; background: rgba(239,68,68,0.15); color: #ef4444; font-size: 9px; padding: 2px 6px; border-radius: 20px; margin-left: 6px; }
        .view-detail-link { color: #00d4aa; cursor: pointer; font-size: 12px; text-decoration: none; }
        /* ===== ВЫПАДАЮЩИЙ СПИСОК ЯЗЫКОВ (dropdown) ===== */
.language-switcher {
    position: relative;
    top: auto;
    right: auto;
    z-index: 100;
}

.lang-dropdown-btn {
    background: rgba(10,10,15,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid #2a2a3a;
    border-radius: 40px;
    padding: 6px 14px;
    color: #e8e8f0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.lang-dropdown-btn:hover {
    background: #1a1a2e;
    border-color: #00d4aa;
}

.lang-dropdown-list {
    position: absolute;
    top: 40px;
    right: 0;
    background: #12121a;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 110px;
    display: none;
    flex-direction: column;
    z-index: 101;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.lang-dropdown-list.show {
    display: flex;
}

.lang-option {
    background: none;
    border: none;
    padding: 8px 16px;
    text-align: left;
    color: #e8e8f0;
    font-size: 13px;
    cursor: pointer;
}

.lang-option:hover {
    background: #1a1a2e;
    color: #00d4aa;
}
        .export-btn { margin-top: 20px; padding: 12px; background: #1a1a2e; border: 1px solid #2a2a3a; border-radius: 12px; color: #e8e8f0; cursor: pointer; width: 100%; }
        
        /* modal styles */
        .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 1000; align-items: flex-start; justify-content: center; overflow-y: auto; }
        .modal-content { background: #12121a; width: 100%; max-width: 550px; min-height: 100vh; border-radius: 0; margin: 0; }
        @media (min-width: 600px) { .modal-content { min-height: auto; border-radius: 24px; margin: 40px 20px; max-height: 90vh; overflow-y: auto; } .modal-overlay { align-items: center; } }
        .modal-header { padding: 20px; border-bottom: 1px solid #2a2a3a; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #12121a; }
        .close-modal { background: none; border: none; color: #9a9ab0; font-size: 28px; cursor: pointer; }
        .modal-body { padding: 20px; }
        .main-value { font-size: 32px; font-weight: 700; }
        .trend-up { color: #ef4444; font-weight: 600; }
        .trend-stable { color: #22c55e; font-weight: 600; }
        .info-block-title { color: #00d4aa; font-size: 11px; font-weight: 600; margin-bottom: 10px; letter-spacing: 1px; }
        .info-card { background: #1a1a2e; border-radius: 12px; padding: 14px; margin-bottom: 20px; }
        .warning-icon { color: #f59e0b; margin-right: 8px; }
        .expert-btn { width: 100%; margin-top: 20px; padding: 12px; background: #2a2a3a; border: 1px solid #00d4aa; border-radius: 12px; color: #00d4aa; font-weight: 600; cursor: pointer; }
        .chart-placeholder { background: #1a1a2e; border-radius: 12px; padding: 16px; text-align: center; margin-bottom: 20px; border: 1px solid #2a2a3a; }
        .value-section { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; margin-bottom: 20px; }
        .trend-section { text-align: right; }
        .trend-label { color: #9a9ab0; font-size: 11px; margin-bottom: 4px; }

        /* Custom tooltip */
.custom-tooltip {
    position: relative;
    cursor: help;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    background-color: #1a1a2e;
    color: #e8e8f0;
    text-align: left;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #f59e0b;
    font-size: 12px;
    font-weight: normal;
    position: absolute;
    z-index: 1000;
    top: -8px;
    left: 100%;
    margin-left: 10px;
    white-space: normal;
    width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.custom-tooltip .tooltip-text::after {
    content: '';
    position: absolute;
    top: 10px;
    left: -10px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #f59e0b transparent transparent;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
}

/* ===== МОБИЛЬНЫЕ КАРТОЧКИ (телефоны) ===== */
.mobile-cards {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.biomarker-card {
    background: #12121a;
    border: 1px solid #2a2a3a;
    border-radius: 16px;
    padding: 16px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-name {
    font-size: 16px;
    font-weight: 600;
    color: #e8e8f0;
}

.card-badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

.card-values {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.card-value {
    font-size: 24px;
    font-weight: 700;
}

.card-value.high {
    color: #ef4444;
}

.card-value.normal {
    color: #22c55e;
}

.card-ref {
    font-size: 12px;
    color: #6a6a8a;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #2a2a3a;
    padding-top: 12px;
    margin-top: 4px;
}

.card-link {
    color: #00d4aa;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

/* На телефонах скрываем таблицу, показываем карточки */
@media (max-width: 768px) {
    .results-table {
        display: none;
    }
    
    .mobile-cards {
        display: flex;
    }
    
    .container {
        padding: 60px 12px 20px;
    }
    
    .export-btn,
    .manual-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ===== ВЕРХНЯЯ СТРОКА: ЛОГОТИП + ЯЗЫК ===== */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.logo-area {
    flex: 1;
}

.logo-area h1 {
    margin-bottom: 4px;
    font-size: 24px;
}

.logo-area .sub {
    margin-bottom: 0;
}

/* Адаптация для телефонов */
@media (max-width: 480px) {
    .header-row {
        align-items: center;
    }
    
    .logo-area h1 {
        font-size: 20px;
    }
    
    .logo-area .sub {
        font-size: 11px;
    }
}

/* ===== ПОДСКАЗКИ ДЛЯ НАЗВАНИЙ МАРКЕРОВ ===== */
.suggestions-list {
    background: #12121a;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.suggestions-list div {
    padding: 10px 14px;
    cursor: pointer;
    color: #e8e8f0;
    font-size: 13px;
    transition: all 0.1s;
}

.suggestions-list div:hover {
    background: #1a1a2e;
    color: #00d4aa;
}

.suggestions-header {
    padding: 8px 14px;
    background: #0a0a0f;
    color: #9a9ab0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #2a2a3a;
}

.export-btn, #manualBtnResults, .manual-btn {
    background: linear-gradient(135deg, #2a2a3a, #1a1a2e);
    border: 1px solid #00d4aa;
    color: #00d4aa;
    cursor: pointer;
}

    </style>