.header {
    padding: 28px 24px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.header::after {
    content: ''; position: absolute; bottom: -1px; left: 10%; width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* --- Sophisticated Logo Architecture --- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-graphic {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

/* Solid skewed element with theme neon gradient */
.poly-solid {
    width: 20px;
    height: 14px;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    transform: skewX(-25deg);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    border-radius: 1px;
}

/* Wireframe element representing mesh deformation */
.poly-outline {
    width: 20px;
    height: 14px;
    border: 1.5px solid rgba(59, 130, 246, 0.8);
    transform: skewX(-25deg);
    border-radius: 1px;
    position: relative;
}

.logo-text h1 {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: #ffffff;
    line-height: 1;
}

.logo-text h1 span {
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.logo-text p {
    font-size: 0.58rem;
    font-family: monospace;
    color: rgba(100, 116, 139, 0.85);
    letter-spacing: 0.8px;
    margin-top: 5px;
    font-weight: 600;
}

/* --- Left-Aligned Premium Glossy Scrollbar --- */
.scroll-container {
    flex: 1;
    overflow-y: scroll; /* Force track space allocation */
    overflow-x: hidden;
    padding: 24px 20px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    height: 100%;
    
    /* Mirror tracking axis to place scrollbar on the absolute left edge */
    direction: rtl; 
}

/* Restores standard horizontal alignment for form cards and buttons */
.scroll-container > * {
    direction: ltr;
}

/* Native fallback descriptors */
.scroll-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 254, 0.25) rgba(255, 255, 255, 0.02);
}

/* Webkit high-visibility engine design rules */
.scroll-container::-webkit-scrollbar {
    width: 6px;
}

.scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 242, 254, 0.25) 50%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 242, 254, 0.3) 0%, rgba(59, 130, 246, 0.6) 50%, rgba(0, 242, 254, 0.3) 100%);
    border-color: rgba(0, 242, 254, 0.6);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* --- Section Titles & Dash Layouts --- */
.section-title {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.8px; color: var(--accent);
    font-weight: 700; margin-bottom: 14px; text-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-strength)); -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-top-color: rgba(255, 255, 255, 0.12); border-left-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 var(--glass-shine);
    position: absolute; z-index: 5; transition: var(--transition-smooth);
}

#status-bar { top: 24px; left: 24px; padding: 12px 22px; display: flex; gap: 24px; font-size: 0.78rem; font-weight: 600; }
#telemetry-panel { bottom: 24px; left: 24px; padding: 16px; width: 280px; display: flex; flex-direction: column; gap: 12px; }
#telemetryCanvas { width: 100%; height: 60px; background: rgba(0, 0, 0, 0.3); border-radius: 6px; border: 1px solid var(--glass-border); }
#legend { bottom: 24px; right: 24px; padding: 16px; width: 220px; display: flex; flex-direction: column; gap: 10px; }
.legend-bar { width: 100%; height: 6px; background: linear-gradient(90deg, #0000ff, #00ffff, #00ff00, #ffff00, #ff0000); border-radius: 20px; }
.legend-labels { display: flex; justify-content: space-between; font-size: 0.68rem; font-family: monospace; color: var(--text-muted); }

.credits { padding: 18px; font-size: 0.68rem; color: var(--text-muted); border-top: 1px solid var(--glass-border); text-align: center; }
.credits span { color: #cbd5e1; font-weight: 600; }

@media (max-width: 768px) {
    #status-bar { top: 16px; left: 16px; padding: 10px 16px; gap: 14px; }
    #legend { bottom: 16px; right: 16px; padding: 12px; width: 140px; }
    #telemetry-panel { bottom: 16px; left: 16px; width: 180px; padding: 12px; }
}