/*
    Shared shell and view layout.
    Page-specific arrangements belong in static/css/pages/*.css or the legacy page CSS.
*/

.console-frame {
    width: 1920px;
    height: 440px;
    max-height: 440px;
    margin: 0 auto;
    padding: 8px 12px;
    background: linear-gradient(180deg, var(--frame-top) 0%, var(--frame-bottom) 100%);
    border: 1px solid var(--frame-border);
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 18px 50px rgba(0, 0, 0, 0.38);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 8px;
    padding: 0 4px;
    color: #17212c;
}

.top-bar-left {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.top-bar-right {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.app-view {
    display: none;
    min-height: 0;
    margin-bottom: 8px;
    animation: fadeViewIn 220ms ease;
}

.app-view-active {
    display: block;
}

.page-stage {
    min-height: 320px;
    margin-bottom: 8px;
}

.telemetry-strip {
    display: grid;
    grid-template-columns: 1.05fr 1.2fr 1.1fr;
    gap: 10px;
    height: 320px;
    max-height: 320px;
    align-items: stretch;
    overflow: hidden;
}

.detail-view-grid {
    display: grid;
    grid-template-columns: 1fr 0.72fr 0.72fr;
    gap: 14px;
}

.bottom-nav-rail {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    border-radius: 14px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 6px 18px rgba(0, 0, 0, 0.16);
}

.bottom-nav-status {
    margin-left: auto;
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: var(--text-muted);
}

@keyframes fadeViewIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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