/* Загружается последним: высота меню измеряется, а не задаётся отдельно для страниц. */
:root { --paxor-header-menu-bottom: 62px; --paxor-page-heading-height: 50px; }
html body.paxor-has-page-header {
    padding-top: var(--paxor-header-menu-bottom) !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
}
html body.paxor-has-page-header .main-content,
html body.paxor-has-page-header :is(.account-container, .account-box, .blockchain-shell, .dapp-container, .dapp-box, .smart-contracts-page, .analytics-page) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* overflow:hidden на предках мешает position:sticky следовать прокрутке окна. */
html body.paxor-has-page-header .paxor-header-flow {
    overflow: visible !important;
    transform: none !important;
    contain: none !important;
}
html body .paxor-page-header-space { display: none; }
html body.paxor-has-page-header .paxor-pinned-tab-header {
    position: sticky !important;
    top: calc(var(--paxor-header-menu-bottom) + var(--paxor-page-heading-height)) !important;
    z-index: 1100 !important;
    background: linear-gradient(180deg, #0d303d, #081b24) !important;
    scroll-margin-top: calc(var(--paxor-header-menu-bottom) + var(--paxor-page-heading-height));
}
@media (max-width: 760px) {
    html body.paxor-has-page-header .paxor-pinned-page-header {
        position: fixed !important;
        top: var(--paxor-header-menu-bottom) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        transform: none !important;
        z-index: 1200 !important;
        background: linear-gradient(180deg, #0d303d, #081b24) !important;
    }
    html body.paxor-has-page-header .paxor-page-header-space {
        display: block;
        height: var(--paxor-page-heading-height);
        flex: 0 0 var(--paxor-page-heading-height);
    }
}
@media (min-width: 761px) {
    html body.paxor-has-page-header .paxor-pinned-page-header:not(.account-mobile-header) {
        position: sticky !important;
        top: var(--paxor-header-menu-bottom) !important;
        margin-top: 0 !important;
        z-index: 1200 !important;
    }
    html body.paxor-has-page-header .account-hero {
        position: relative !important;
        top: auto !important;
        margin-top: 0 !important;
    }
    html body.paxor-has-page-header #account-dashboard-sidebar#account-dashboard-sidebar {
        position: sticky !important;
        top: var(--paxor-header-menu-bottom) !important;
        align-self: start !important;
        max-height: calc(100dvh - var(--paxor-header-menu-bottom) - var(--paxor-player-height, 88px)) !important;
    }
    html body.paxor-has-page-header:not(.paxor-account-compact) #account-dashboard-sidebar#account-dashboard-sidebar > .account-mobile-drawer-header {
        display: none !important;
    }
    html body.paxor-account-compact #account-dashboard-sidebar#account-dashboard-sidebar > .account-mobile-drawer-header {
        display: grid !important;
    }
}
html body.light-theme.paxor-has-page-header :is(.paxor-pinned-page-header, .paxor-pinned-tab-header) {
    background: linear-gradient(180deg, #e8f4f8, #d8ebf1) !important;
    color: #123342 !important;
}

html body .paxor-compact-page-title { display: none !important; }
@media (min-width: 761px) {
    /* Полноразмерная шапка Smart Contracts восстанавливается вместе с исходным фоном. */
    html body.paxor-has-page-header .smart-contracts-page .smart-contracts-hero.paxor-pinned-page-header:not(.paxor-desktop-compact) {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: 230px !important;
        min-height: 230px !important;
        max-height: none !important;
        padding: 22px 26px !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        background: linear-gradient(110deg, #032435, #025570) !important;
    }
    html body.paxor-has-page-header .smart-contracts-hero:not(.paxor-desktop-compact)::before {
        content: '' !important;
        display: block !important;
        background: url('/static/img/smart_contracts_header.webp?v=1') center / cover no-repeat !important;
    }
    html body.paxor-has-page-header .smart-contracts-hero:not(.paxor-desktop-compact) .smart-contracts-hero-text {
        display: flex !important;
        max-width: 560px !important;
    }
    html body.paxor-has-page-header .smart-contracts-hero:not(.paxor-desktop-compact) h1 {
        display: block !important;
        font-size: 31px !important;
        line-height: 1.15 !important;
        margin: 0 0 10px !important;
        text-align: left !important;
    }
    html body.paxor-has-page-header .smart-contracts-hero:not(.paxor-desktop-compact) h1::before { display: none !important; }
    html body.paxor-has-page-header .smart-contracts-hero:not(.paxor-desktop-compact) :is(p, .smart-contracts-eyebrow) { display: block !important; }

    html body.paxor-has-page-header .paxor-pinned-page-header.paxor-desktop-compact {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        padding: 0 18px !important;
        overflow: hidden !important;
        border-radius: 0 0 14px 14px !important;
        background: linear-gradient(180deg, #0d303d, #081b24) !important;
    }
    html body.paxor-has-page-header .paxor-desktop-compact > :not(.paxor-compact-page-title),
    html body.paxor-has-page-header .paxor-desktop-compact::before,
    html body.paxor-has-page-header .paxor-desktop-compact::after { display: none !important; }
    html body.paxor-has-page-header .paxor-desktop-compact > .paxor-compact-page-title {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        min-width: 0;
        font-size: 19px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        color: #f4f8fa !important;
    }
    html body.paxor-has-page-header .paxor-compact-page-title span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
@media (max-width: 760px) {
    /* Текст большой шапки не занимает место в мобильной версии. */
    html body.paxor-has-page-header .smart-contracts-hero.smart-contracts-compact-header .smart-contracts-hero-text {
        display: block !important;
        width: 100% !important;
    }
    html body.paxor-has-page-header .smart-contracts-hero.smart-contracts-compact-header :is(p, .smart-contracts-eyebrow) { display: none !important; }
}
html body.light-theme.paxor-has-page-header .paxor-desktop-compact {
    background: linear-gradient(180deg, #e8f4f8, #d8ebf1) !important;
}
html body.light-theme.paxor-has-page-header .paxor-desktop-compact > .paxor-compact-page-title { color: #123342 !important; }

/* V3: компактная desktop-шапка и живой статус из исходного элемента страницы. */
@media (min-width: 761px) {
    html body.paxor-has-page-header .paxor-pinned-page-header.paxor-desktop-compact {
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        border-radius: 14px !important;
        gap: 18px !important;
        justify-content: space-between !important;
    }
    html body.paxor-has-page-header .paxor-desktop-compact > .paxor-compact-page-title {
        flex: 1 1 auto !important;
        order: 1 !important;
    }
    html body.paxor-has-page-header .paxor-pinned-page-header.paxor-desktop-compact > :is(.dapp-builder-status, .network-status, .analytics-hero-status, .smart-builder-status) {
        display: inline-flex !important;
        position: static !important;
        inset: auto !important;
        transform: none !important;
        flex: 0 1 auto !important;
        order: 2 !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 45% !important;
        height: auto !important;
        min-height: 28px !important;
        margin: 0 !important;
        padding: 6px 10px !important;
        opacity: 1 !important;
        visibility: visible !important;
        white-space: nowrap !important;
        z-index: 2 !important;
    }
    html body.paxor-has-page-header .paxor-desktop-compact > :is(.dapp-builder-status, .network-status, .analytics-hero-status, .smart-builder-status) > [id] {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
    }
    html body.paxor-has-page-header .smart-contracts-hero:not(.paxor-desktop-compact) .smart-contracts-hero-badge {
        display: inline-flex !important;
        top: 18px !important;
        right: 22px !important;
        bottom: auto !important;
    }
    html body.paxor-has-page-header .smart-contracts-hero:not(.paxor-desktop-compact) .smart-builder-status {
        display: inline-flex !important;
        top: auto !important;
        right: 22px !important;
        bottom: 22px !important;
        width: auto !important;
        max-width: 45% !important;
    }
}

/* V4: единый стиль шапок кабинета и компактная кнопка карточки в каждой вкладке. */
:root {
    --paxor-account-heading-bg: linear-gradient(180deg, #0d303d, #081b24);
    --paxor-account-heading-border: rgba(32, 217, 255, .28);
    --paxor-account-heading-text: #f4f8fa;
}
body.light-theme {
    --paxor-account-heading-bg: linear-gradient(180deg, #e8f4f8, #d8ebf1);
    --paxor-account-heading-text: #123342;
}
html body.paxor-account-heading-controls #account-profile-overview-toggle#account-profile-overview-toggle {
    display: none !important;
}
html body.paxor-account-heading-controls .account-dashboard-main.profile-overview-collapsed .account-profile-overview {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
}
html body.paxor-account-heading-controls .account-container :is(#personal-info, #transactions, #wallets, #notifications, #settings, #security) .paxor-pinned-tab-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 4px 10px 4px 14px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}
html body.paxor-account-heading-controls .paxor-pinned-tab-header :is(h2, .wallet-header-center) {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--paxor-account-heading-text) !important;
}
html body.paxor-account-heading-controls .paxor-pinned-tab-header > .paxor-profile-heading-toggle {
    display: inline-flex !important;
    position: static !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(32, 217, 255, .3) !important;
    border-radius: 8px !important;
    background: rgba(32, 217, 255, .08) !important;
    color: var(--paxor-account-heading-text) !important;
    box-shadow: none !important;
    cursor: pointer;
}
html body .paxor-profile-heading-toggle:focus-visible { outline: 2px solid #20d9ff; outline-offset: 2px; }
html body .paxor-profile-heading-toggle .paxor-profile-chevron {
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateY(2px) rotate(-45deg);
}
html body .paxor-profile-heading-toggle[aria-expanded="false"] .paxor-profile-chevron {
    transform: translateY(-2px) rotate(135deg);
}
@media (min-width: 761px) {
    html body.paxor-has-page-header #account-dashboard-sidebar#account-dashboard-sidebar > .account-mobile-drawer-header {
        height: 64px !important;
        min-height: 64px !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 22px 24px !important;
        gap: 2px !important;
        align-items: center !important;
        justify-items: stretch !important;
        padding: 8px 12px !important;
        margin: 0 -10px 8px !important;
        border: 1px solid var(--paxor-account-heading-border) !important;
        border-radius: 14px !important;
        background: var(--paxor-account-heading-bg) !important;
        color: var(--paxor-account-heading-text) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
    }
    html body.paxor-has-page-header #account-dashboard-sidebar#account-dashboard-sidebar > .account-mobile-drawer-header strong {
        text-align: left !important;
        justify-self: start !important;
        color: var(--paxor-account-heading-text) !important;
        font-size: 19px !important;
    }
    html body #account-dashboard-sidebar .account-mobile-drawer-header #account-page-status {
        display: inline-flex !important;
        position: static !important;
        inset: auto !important;
        transform: none !important;
        justify-self: end !important;
        align-self: end !important;
        gap: 6px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 22px !important;
        min-height: 22px !important;
        margin: 0 !important;
        padding: 2px 7px !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
    }
    html body #account-dashboard-sidebar #account-page-status-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* V5: параметры компактной Леи из leya_v3.css (expanded sidebar, desktop). */
:root {
    --paxor-leya-heading-height: 56px;
    --paxor-leya-heading-radius: 16px;
    --paxor-account-heading-bg: linear-gradient(135deg, rgba(4,32,47,.99), rgba(3,92,116,.97));
    --paxor-account-heading-border: rgba(47,194,232,.35);
    --paxor-leya-heading-shadow: 0 10px 26px rgba(0,0,0,.28), 0 0 18px rgba(3,125,156,.12);
}
/* Прежние декоративные слои вкладок не должны менять единый градиент. */
html body.paxor-account-heading-controls .account-container :is(#personal-info, #transactions, #wallets, #notifications, #settings, #security) .paxor-pinned-tab-header::before,
html body.paxor-account-heading-controls .account-container :is(#personal-info, #transactions, #wallets, #notifications, #settings, #security) .paxor-pinned-tab-header::after {
    content: none !important;
    display: none !important;
}
html body.paxor-account-heading-controls .account-container :is(#personal-info, #transactions, #wallets, #notifications, #settings, #security) .paxor-pinned-tab-header :is(h2, .wallet-header-center) {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    order: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
html body.paxor-account-heading-controls .account-container :is(#personal-info, #transactions, #wallets, #notifications, #settings, #security) .paxor-pinned-tab-header > .paxor-profile-heading-toggle {
    order: 2 !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    align-self: center !important;
    margin: 0 0 0 auto !important;
    flex: 0 0 28px !important;
}
@media (min-width: 761px) {
    html body.paxor-has-page-header #account-dashboard-sidebar#account-dashboard-sidebar > .account-mobile-drawer-header,
    html body.paxor-has-page-header .paxor-pinned-page-header.paxor-desktop-compact {
        height: var(--paxor-leya-heading-height) !important;
        min-height: var(--paxor-leya-heading-height) !important;
        max-height: var(--paxor-leya-heading-height) !important;
        border: 1px solid var(--paxor-account-heading-border) !important;
        border-radius: var(--paxor-leya-heading-radius) !important;
        background: var(--paxor-account-heading-bg) !important;
        box-shadow: var(--paxor-leya-heading-shadow) !important;
        box-sizing: border-box !important;
    }
    html body.paxor-has-page-header #account-dashboard-sidebar#account-dashboard-sidebar > .account-mobile-drawer-header {
        grid-template-rows: 18px 20px !important;
        gap: 0 !important;
        padding: 8px 10px !important;
    }
    html body.paxor-has-page-header #account-dashboard-sidebar#account-dashboard-sidebar > .account-mobile-drawer-header strong,
    html body.paxor-has-page-header .paxor-desktop-compact > .paxor-compact-page-title {
        font-size: 15px !important;
        line-height: 18px !important;
        font-weight: 700 !important;
    }
    html body #account-dashboard-sidebar .account-mobile-drawer-header #account-page-status {
        height: 20px !important;
        min-height: 20px !important;
        padding: 1px 6px !important;
        font-size: 9.5px !important;
    }
}
@media (max-width: 760px) {
    html body.paxor-has-page-header .paxor-pinned-page-header {
        background: var(--paxor-account-heading-bg) !important;
        border-color: var(--paxor-account-heading-border) !important;
        border-radius: var(--paxor-leya-heading-radius) !important;
        box-shadow: var(--paxor-leya-heading-shadow) !important;
    }
}

/* V6: кнопка в статической шапке кошелька должна получать указательные события. */
html body.paxor-account-heading-controls .account-container .paxor-pinned-tab-header > .paxor-profile-heading-toggle {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    overflow: visible !important;
}
html body .paxor-profile-heading-toggle svg.paxor-profile-chevron {
    display: block !important;
    flex: 0 0 14px !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    transform: none !important;
    pointer-events: none !important;
}
html body .paxor-profile-heading-toggle[aria-expanded="false"] svg.paxor-profile-chevron { transform: rotate(180deg) !important; }
@media (min-width:761px) {
    html body.paxor-has-page-header #account-dashboard-sidebar#account-dashboard-sidebar > .account-mobile-drawer-header strong {
        padding-left: 52px !important;
        font-family: Inter, sans-serif !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 18px !important;
        color: rgba(225,235,242,.72) !important;
    }
    html body #account-dashboard-sidebar .account-mobile-drawer-header #account-page-status {
        height: 16px !important;
        min-height: 16px !important;
        padding: 0 5px !important;
        gap: 4px !important;
        font-size: 8.5px !important;
        line-height: 12px !important;
    }
    html body #account-dashboard-sidebar #account-page-status .account-page-status-dot { width:5px !important; height:5px !important; flex:0 0 5px !important; }
}
@media (max-width:760px) {
    html body #account-mobile-menu-toggle { pointer-events:auto !important; touch-action:manipulation; }
    html body.account-mobile-drawer-open #account-dashboard-sidebar#account-dashboard-sidebar {
        visibility:visible !important; opacity:1 !important; pointer-events:auto !important;
        transform:translate3d(0,0,0) !important; z-index:5000 !important;
    }
    html body #music-player#music-player#music-player {
        grid-template-rows: minmax(0, 1fr) !important;
        padding: 4px 12px !important;
    }
    html body #music-player#music-player#music-player .music-progress-row {
        grid-row: auto !important;
    }
    html body #music-player#music-player#music-player .music-player-track {
        align-self:center !important; align-items:center !important;
    }
    html body #music-player#music-player#music-player .music-player-copy {
        display:flex !important; flex-direction:column !important;
        justify-content:center !important; align-self:center !important;
        height:54px !important; min-height:0 !important;
        position:static !important; inset:auto !important;
        padding:0 !important; margin:0 !important; transform:none !important;
    }
    html body #music-player#music-player#music-player .music-player-copy > a {
        position:static !important; inset:auto !important;
        margin:0 !important; padding:0 !important;
        transform:none !important; line-height:1.3 !important;
    }
    html body #music-player#music-player#music-player :is(.music-player-center,.music-player-controls) {
        align-self:center !important; place-items:center !important;
        height:48px !important; min-height:48px !important; max-height:48px !important;
    }
    html body #music-player#music-player#music-player #music-play-toggle {
        width:44px !important; min-width:44px !important; max-width:44px !important;
        height:44px !important; min-height:44px !important; max-height:44px !important;
        border-radius:50% !important; margin:0 !important; padding:0 !important;
        transform:none !important; box-sizing:border-box !important;
        align-self:center !important;
    }
    html body #music-player#music-player#music-player #music-play-toggle > i { font-size:18px !important; line-height:1 !important; }
    html body .music-shell :is(.music-main,.music-scroll-area,.music-queue-section,#music-queue) {
        min-width:0 !important;
        overflow-x:hidden !important;
        overscroll-behavior-x:none !important;
    }
    html body .music-shell .music-queue-section,
    html body .music-shell #music-queue {
        width:100% !important; min-width:0 !important; max-width:100% !important;
        left:0 !important; right:auto !important;
        touch-action:pan-y pinch-zoom !important;
        box-sizing:border-box !important;
    }
    html body .music-shell #music-queue > .music-queue-row { min-width:0 !important; max-width:100% !important; }
}

/* V7: заголовки всех вкладок, включая вложенный текст Wallets. */
@media (max-width:760px) {
    html body.paxor-account-heading-controls .account-container .paxor-pinned-tab-header :is(h2, .wallet-title) {
        font-family: Inter, sans-serif !important;
        font-size:15px !important; font-weight:700 !important;
        line-height:18px !important; letter-spacing:normal !important;
        text-transform:none !important; margin:0 !important;
    }
    /* Счётчики и подсказки не участвуют в сетке значков. */
    html body > nav > :is(.menu-left,.menu-right) {
        height:100% !important; margin-top:0 !important; margin-bottom:0 !important;
        padding-top:0 !important; padding-bottom:0 !important;
        align-items:center !important; flex-wrap:nowrap !important;
    }
    html body > nav:not(.paxor-mobile-bottom-nav) > :is(.menu-left,.menu-right):is(.menu-left,.menu-right):is(.menu-left,.menu-right) > li {
        height:100% !important; min-height:0 !important; max-height:none !important; margin:0 !important; padding:0 !important;
        display:flex !important; align-items:center !important; justify-content:center !important;
        top:auto !important; bottom:auto !important; transform:none !important;
    }
    html body > nav :is(.notification-wrapper,.music-messages-top) {
        position:relative !important; display:flex !important;
        align-items:center !important; justify-content:center !important;
        width:100% !important; height:100% !important;
        margin:0 !important; padding:0 !important; transform:none !important;
    }
    html body > nav :is(#account-button,#wallet-menu-button,#notificationButton,#music-messages-toggle,#language-button,#toggleMenu,.paxor-nav-control).paxor-nav-control.paxor-nav-control {
        position:relative !important; inset:auto !important;
        display:grid !important; grid-template-columns:1fr !important; grid-template-rows:1fr !important;
        place-items:center !important; place-content:center !important;
        margin:0 !important; padding:0 !important; gap:0 !important;
        transform:none !important; translate:none !important;
        background:transparent !important; border-color:transparent !important;
        box-shadow:none !important; -webkit-tap-highlight-color:transparent !important;
        transition:none !important;
    }
    html body > nav :is(#account-button,#wallet-menu-button,#notificationButton,#music-messages-toggle,#language-button,#toggleMenu,.paxor-nav-control).paxor-nav-control.paxor-nav-control > :is(img,i,svg),
    html body > nav :is(#account-button,#wallet-menu-button,#notificationButton,#music-messages-toggle,#language-button,#toggleMenu,.paxor-nav-control).paxor-nav-control.paxor-nav-control::before {
        grid-area:1 / 1 !important; place-self:center !important;
        position:static !important; inset:auto !important;
        margin:0 !important; padding:0 !important;
        transform:none !important; translate:none !important;
        transform-origin:center !important; transition:transform 140ms ease-out !important;
        vertical-align:middle !important; object-fit:contain !important;
    }
    html body > nav :is(#account-button,#wallet-menu-button,#notificationButton,#music-messages-toggle,#language-button,#toggleMenu,.paxor-nav-control).paxor-nav-control.paxor-nav-control > i {
        align-items:center !important; justify-content:center !important; line-height:1 !important;
    }
    html body > nav :is(#account-button,#wallet-menu-button,#notificationButton,#music-messages-toggle,#language-button,#toggleMenu,.paxor-nav-control).paxor-nav-control.paxor-nav-control:active > :is(img,i,svg),
    html body > nav :is(#account-button,#wallet-menu-button,#notificationButton,#music-messages-toggle,#language-button,#toggleMenu,.paxor-nav-control).paxor-nav-control.paxor-nav-control:active::before {
        transform:scale(1.1) !important;
    }
    html body > nav :is(#account-button,#wallet-menu-button,#notificationButton,#music-messages-toggle,#language-button,#toggleMenu,.paxor-nav-control).paxor-nav-control.paxor-nav-control:focus:not(:focus-visible) { outline:none !important; }
    html body > nav :is(#account-button,#wallet-menu-button,#notificationButton,#music-messages-toggle,#language-button,#toggleMenu,.paxor-nav-control).paxor-nav-control.paxor-nav-control:focus-visible { outline:2px solid #00ccff !important; outline-offset:-2px !important; }
    html body > nav :is(#account-button,#wallet-menu-button,#notificationButton,#music-messages-toggle,#language-button,#toggleMenu,.paxor-nav-control).paxor-nav-control.paxor-nav-control::after { display:none !important; }
    html body > nav .paxor-nav-control > :is(.notification-badge,.music-messages-badge,.wallet-menu-status-dot) {
        position:absolute !important; margin:0 !important;
    }
    html body > nav .paxor-nav-control > :is(.notification-badge,.music-messages-badge) {
        top:3px !important; right:1px !important; bottom:auto !important; left:auto !important;
    }
    html body > nav .paxor-nav-control > :is(.notification-tooltip,.menu-tooltip),
    html body > nav.paxor-mobile-bottom-nav .paxor-nav-control > span { display:none !important; }
    html body > nav.paxor-mobile-bottom-nav { align-items:center !important; }
    @media (prefers-reduced-motion:reduce) {
        html body > nav :is(#account-button,#wallet-menu-button,#notificationButton,#music-messages-toggle,#language-button,#toggleMenu,.paxor-nav-control).paxor-nav-control.paxor-nav-control > :is(img,i,svg),
        html body > nav :is(#account-button,#wallet-menu-button,#notificationButton,#music-messages-toggle,#language-button,#toggleMenu,.paxor-nav-control).paxor-nav-control.paxor-nav-control::before { transition:none !important; }
    }
}

/* V8: компактная мобильная страница трека; desktop сохраняет прежнее меню. */
@media (max-width:760px) {
    html body :is(#music-detail-view,#music-feature,.music-shell) .paxor-mobile-track-info.paxor-mobile-track-info {
        display:block !important; position:relative !important; inset:auto !important;
        grid-column:1 / -1 !important; width:100% !important; min-width:0 !important;
        margin:6px 0 8px !important; padding:0 !important; z-index:30 !important;
        overflow:visible !important; transform:none !important;
    }
    html body :is(#music-detail-view,#music-feature,.music-shell) .paxor-mobile-track-info .music-track-accordion-menu {
        display:flex !important; justify-content:center !important; align-items:center !important;
        gap:6px !important; flex-wrap:wrap !important;
    }
    html body :is(#music-detail-view,#music-feature,.music-shell) .paxor-mobile-track-info .music-track-accordion-button {
        pointer-events:auto !important; touch-action:manipulation;
        min-height:36px !important; margin:0 !important;
    }
    html body :is(#music-detail-view,#music-feature,.music-shell) .paxor-mobile-track-info .music-track-accordion-content {
        position:relative !important; inset:auto !important; height:auto !important;
        max-height:none !important; overflow:visible !important; margin:6px 0 0 !important;
    }
    html body :is(#music-detail-view,#music-feature,.music-shell) .paxor-mobile-track-info .music-track-accordion-panel:not([hidden]) {
        display:block !important; position:relative !important; height:auto !important;
        min-height:48px !important; max-height:50dvh !important;
        overflow-x:hidden !important; overflow-y:auto !important;
        visibility:visible !important; opacity:1 !important; pointer-events:auto !important;
        overscroll-behavior:contain; touch-action:pan-y pinch-zoom;
    }
    html body :is(#music-detail-view,#music-feature,.music-shell) .paxor-mobile-track-info .music-track-accordion-panel[hidden] { display:none !important; }
    html body :is(#music-detail-view,#music-feature,.music-shell) :is(.music-track-detail-hero,.music-feature-track-hero) .music-public-hero-copy {
        min-height:0 !important; justify-content:flex-start !important; gap:6px !important;
        padding-top:0 !important; padding-bottom:0 !important;
    }
    html body :is(#music-detail-view,#music-feature,.music-shell) :is(.music-track-detail-waveform,.music-feature-waveform) {
        margin-top:8px !important; margin-bottom:0 !important;
    }
    html body :is(#music-detail-view,#music-feature,.music-shell) .music-track-title-row { margin-bottom:0 !important; }
    html body :is(#music-detail-view,#music-feature,.music-shell) .music-track-detail-controls {
        margin-top:6px !important; margin-bottom:0 !important; padding:0 !important;
    }
    html body :is(#music-detail-view,#music-feature,.music-shell) :is(.music-track-controls-row,.music-feature-controls) {
        display:flex !important; flex-wrap:wrap !important; align-items:center !important;
        justify-content:space-evenly !important; gap:6px !important;
        width:100% !important; padding:0 !important; box-sizing:border-box !important;
    }
    html body :is(#music-detail-view,#music-feature,.music-shell) .music-track-hero-actions {
        display:flex !important; flex:0 1 auto !important; align-items:center !important;
        justify-content:center !important; gap:6px !important; margin:0 !important;
    }
    html body :is(#music-detail-view,#music-feature,.music-shell) :is(.music-track-detail-buy,.music-track-detail-more-actions) {
        position:relative !important; inset:auto !important; transform:none !important;
        flex:0 0 auto !important; margin:0 !important; order:0 !important;
    }
    html body :is(#music-detail-view,#music-feature,.music-shell) .music-track-detail-stats {
        flex:1 0 100% !important; width:100% !important; order:1 !important;
        justify-content:center !important; margin:2px 0 0 !important; padding:0 !important;
    }
}
@media (max-width:760px) {
    html body :is(#music-detail-view,#music-feature,.music-shell) .paxor-mobile-track-info :is(.music-track-info-list,.music-track-info-full,.music-market-panel) {
        display:block !important; position:static !important; inset:auto !important;
        width:100% !important; max-width:100% !important; height:auto !important;
        transform:none !important; box-sizing:border-box !important;
    }
    html body :is(#music-detail-view,#music-feature,.music-shell) .paxor-mobile-track-info .music-track-info-extra { display:block !important; }
}
@media (max-width:760px) {
    html body :is(#music-detail-view,#music-feature) .music-track-hero-actions {
        width:auto !important; min-width:0 !important; max-width:none !important;
        flex:0 0 auto !important;
    }
    html body :is(#music-detail-view,#music-feature) .music-track-hero-actions .music-track-icon-action {
        width:32px !important; min-width:32px !important; max-width:32px !important;
        height:36px !important; min-height:36px !important; padding:0 !important;
    }
    html body :is(#music-detail-view,#music-feature) .music-track-detail-buy {
        width:auto !important; min-width:48px !important; max-width:40% !important;
        height:auto !important; min-height:36px !important; padding:5px 8px !important;
    }
    html body :is(#music-detail-view,#music-feature) .music-track-detail-more-actions {
        width:32px !important; min-width:32px !important; height:36px !important;
        display:flex !important; align-items:center !important; justify-content:center !important;
    }
    html body :is(#music-detail-view,#music-feature) .music-track-detail-more-actions > .music-track-more {
        width:32px !important; min-width:32px !important; height:36px !important;
        padding:0 !important; margin:0 !important; position:static !important; transform:none !important;
    }
}

/* V9: плеер внутри трека заменяет нижний глобальный плеер. */
@media (max-width:760px) {
    html body:is(.music-track-detail-page,.music-mobile-track-page) #music-player#music-player#music-player {
        display:none !important; visibility:hidden !important; pointer-events:none !important;
        height:0 !important; min-height:0 !important; max-height:0 !important;
        padding:0 !important; margin:0 !important; border:0 !important; box-shadow:none !important;
    }
    html body:is(.music-track-detail-page,.music-mobile-track-page) #music-detail-view .music-track-controls-row {
        display:grid !important;
        grid-template-columns:minmax(0,1fr) minmax(48px,max-content) 32px !important;
        grid-template-areas:"actions buy more" "stats stats stats" !important;
        align-items:center !important; column-gap:8px !important; row-gap:4px !important;
        width:100% !important; min-width:0 !important; padding:0 4px !important;
    }
    html body #music-detail-view .music-track-controls-row > .music-track-hero-actions {
        grid-area:actions !important; width:100% !important; min-width:0 !important;
        gap:4px !important; justify-content:space-evenly !important;
    }
    html body #music-detail-view .music-track-controls-row > .music-track-detail-buy {
        grid-area:buy !important; width:auto !important; max-width:110px !important;
        justify-self:center !important; overflow-wrap:anywhere;
    }
    html body #music-detail-view .music-track-controls-row > .music-track-detail-more-actions {
        grid-area:more !important; justify-self:center !important;
    }
    html body #music-detail-view .music-track-controls-row > .music-track-detail-stats {
        grid-area:stats !important; width:100% !important; min-width:0 !important;
    }
}

/* V10: внешний controls тоже был сеткой и сжимал внутренний ряд. */
@media (max-width:760px) {
    html body #music-detail-view > .music-track-detail-controls {
        display:block !important; grid-template-columns:none !important; grid-template-areas:none !important;
        width:100% !important; min-width:0 !important; max-width:none !important;
        margin:6px 0 0 !important; padding:0 !important; box-sizing:border-box !important;
    }
    html body #music-detail-view .music-track-controls-row .music-track-hero-actions {
        display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important;
        gap:4px !important; min-width:0 !important;
    }
    html body #music-detail-view .music-track-controls-row .music-track-hero-actions > .music-track-icon-action {
        justify-self:center !important; margin:0 !important; transform:none !important;
    }
    html body:has(#music-detail-view:not([hidden]) .music-track-detail-hero) {
        --paxor-mobile-chrome-clearance:calc(var(--paxor-mobile-bottom-nav-height,58px) + var(--paxor-mobile-safe-bottom,0px)) !important;
        --paxor-player-height:0px !important;
    }
    html body:has(#music-detail-view:not([hidden]) .music-track-detail-hero) > .main-content {
        position:fixed !important; top:var(--paxor-mobile-top-nav-height,52px) !important;
        bottom:var(--paxor-mobile-chrome-clearance) !important; left:0 !important; right:0 !important;
        height:auto !important; min-height:0 !important; max-height:none !important;
        padding:0 !important; margin:0 !important;
        overflow:visible !important; transform:none !important; filter:none !important;
        contain:none !important;
    }
    html body:has(#music-detail-view:not([hidden]) .music-track-detail-hero) .music-shell .music-main,
    html body:has(#music-detail-view:not([hidden]) .music-track-detail-hero) .music-shell .music-scroll-area {
        height:100% !important; min-height:0 !important; max-height:none !important;
    }
    html body:has(#music-detail-view:not([hidden]) .music-track-detail-hero) #music-player#music-player#music-player {
        display:none !important; height:0 !important; min-height:0 !important; max-height:0 !important;
    }
}
