/* /salary: панель «график слева, фильтры справа»; внутри только волосяные разделители.
   Токены и заголовок — 01_hero.css */

.sv-stage {
    position: relative;
}

.sv-stage::before {
    content: "";
    position: absolute;
    inset: -96px 4% auto;
    height: 320px;
    background: radial-gradient(50% 100% at 50% 100%, color-mix(in srgb, var(--accent-color) 42%, transparent), transparent 72%);
    filter: blur(32px);
    pointer-events: none;
}

.sv-board {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 344px;
    overflow: hidden;
}

.sv-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sv-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 32px 0;
}

.sv-figure {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 6px;
}

.sv-num {
    color: var(--text-color);
    font-size: 56px;
    font-weight: var(--fw-semibold);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sv-delta {
    color: var(--accent-color);
    font-size: var(--fs-16);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-16);
    white-space: nowrap;
}

.sv-delta.is-down {
    color: var(--text-muted);
}

.sv-legend {
    display: flex;
    gap: 16px;
    padding-top: 2px;
    color: var(--text-muted);
    font-size: var(--fs-14);
    letter-spacing: var(--ls-14);
    white-space: nowrap;
}

.sv-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sv-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

.sv-legend-me i {
    background: var(--sv-my);
}

.sv-chart {
    position: relative;
    flex: 1 1 auto;
    min-height: 300px;
    margin: 16px 24px 12px 20px;
}

.sv-chart canvas {
    position: absolute;
    top: 0;
    left: 0;
}

.sv-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--sv-line);
}

.sv-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 84px;
    padding: 16px 32px;
    box-sizing: border-box;
}

.sv-stat + .sv-stat {
    border-left: 1px solid var(--sv-line);
}

.sv-stat-value {
    color: var(--text-color);
    font-size: var(--fs-20);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-20);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.sv-stat-me {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.sv-stat-me em {
    color: var(--sv-my);
    font-size: var(--fs-14);
    font-style: normal;
    font-weight: var(--fw-regular);
    letter-spacing: var(--ls-14);
}

.sv-stat .btn {
    flex: none;
}

/* ---------- Фильтры: разметка и чипы сайта без собственной плитки — её роль играет панель ---------- */

.sv-side {
    display: flex;
    flex-direction: column;
    /* Отступ до линии над подсказкой: margin-top: auto у неё схлопывается в ноль, когда панель по высоте фильтров */
    gap: 16px;
    padding: 24px 24px 20px;
    border-left: 1px solid var(--sv-line);
}

.sv-side .filters-container {
    position: static;
    display: block;
    width: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.sv-side .filters-container-inner {
    margin: 0;
    padding: 0;
    overflow: visible;
}

.sv-side .filter-chip:not(.active) {
    background: var(--surface-secondary);
}

.sv-side .filter-group:last-of-type {
    margin-bottom: 0;
}

.sv-side .salary-my-filters-btn {
    width: 100%;
    margin-top: 16px;
}

.sv-side-note {
    margin-top: auto;
    padding-top: 16px;
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: var(--lh-14);
    letter-spacing: var(--ls-14);
}

.sv-side .filters-container + .sv-side-note {
    border-top: 1px solid var(--sv-line);
}

.sv-mobile-filters {
    display: none;
}

.sv-source {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: var(--lh-14);
    letter-spacing: var(--ls-14);
    text-align: center;
}

@media (max-width: 1279px) {
    .sv-mobile-filters {
        display: block;
        margin-bottom: 8px;
    }

    .sv-mobile-filters .filter-btn {
        width: 100%;
        height: 44px;
        max-height: none;
        border-radius: 16px;
        justify-content: center;
    }

    .sv-stage::before {
        inset: -40px 0 auto;
        height: 160px;
    }

    .sv-board {
        grid-template-columns: minmax(0, 1fr);
    }

    .sv-side {
        display: none;
    }

    .sv-head {
        padding: 20px 20px 0;
    }

    .sv-num {
        font-size: 40px;
    }

    .sv-chart {
        min-height: 220px;
        margin: 16px 12px 8px 8px;
    }

    .sv-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .sv-stat {
        min-height: 64px;
        padding: 12px 20px;
    }

    .sv-stat + .sv-stat {
        border-top: 1px solid var(--sv-line);
        border-left: 0;
    }

    .sv-source {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }

    /* stats.js переносит «На основе…» на вторую строку символом \n */
    #salaryChartNote {
        white-space: pre-line;
    }

    .sv-source .salary-status-dot {
        align-self: flex-start;
        margin-top: 4px;
    }
}
