.analysis-subnav {
    display: none;
    gap: 7px;
    width: max-content;
    max-width: 100%;
    padding: 7px;
    margin: 0 0 18px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(16,39,31,.1);
    backdrop-filter: blur(12px);
}
.analysis-subnav::-webkit-scrollbar { display: none; }
.analysis-subnav button {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
    padding: 9px 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
}
.analysis-subnav button span {
    display: grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    padding: 0 4px;
    border-radius: 7px;
    background: #edf3f0;
    font-size: 10px;
}
.analysis-subnav button.active { background: var(--nav); color: #fff; }
.analysis-subnav button.active span { background: var(--green); color: #fff; }
#meta-adatok, #vasarlasok, #eredmeny, #elemzes-beallitasok { scroll-margin-top: 100px; }
@media (max-width: 680px) {
    .analysis-subnav {
        position: sticky;
        display: flex;
        z-index: 12;
        top: 8px;
        width: calc(100% + 14px);
        max-width: none;
        margin-right: -14px;
        border-radius: 12px 0 0 12px;
        scroll-snap-type: x proximity;
        overscroll-behavior-x: contain;
    }
    .analysis-subnav button {
        min-width: 126px;
        justify-content: center;
        padding: 10px 11px;
        scroll-snap-align: start;
    }
    .analysis-layout { display: flex; flex-direction: column; }
    .analysis-form { order: 1; }
    .results { order: 2; }
}
