/*
 * SMART.CSS STRUCTURE
 * 1. Smart tab shell, selected filters and AJAX states.
 * 2. Flow listing: app tree, sliders, locked previews and paywall modal.
 * 3. Gamification/cards helpers and sidebar anchors.
 * 4. Performance helpers: soft enter animations, lazy rendering and responsive fixes.
 */

#benchmarkCount {
    transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

#benchmarkCount.benchmark-count-updating {
    opacity: 0.54;
    transform: translateY(2px);
    filter: blur(0.15px);
}

/* =========================================================
   SMART MAIN FILTER: TOP TABS
========================================================= */

.benchmark-top-filter {
    margin: 18px auto 10px;
    padding: 0 96px;
    max-width: 100%;
    box-sizing: border-box;
}

.benchmark-top-filter__tabs,
.benchmark-smart-tabs {
    display: flex;
    gap: 8px; 
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.benchmark-top-filter__tabs::-webkit-scrollbar,
.benchmark-smart-tabs::-webkit-scrollbar {
    display: none;
}

.benchmark-top-filter__tab,
.benchmark-smart-tab {
    flex: 0 0 auto;
    border: 0;
    background: var(--tab-bg);
    color: var(--tab-text-color);
    border-radius: 9999px;
    padding: 14px 20px 13px 20px;
    font-size: 15px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
    font-family: "PragmaticaWebMedium";
    letter-spacing: -0.02em;
}

.benchmark-top-filter__tab.active,
.benchmark-smart-tab.active {
    background: var(--tab-bg--active);
    color: var(--tab-text-color--active);
}

.benchmark-smart-tab[data-special="all"] {
    padding-left: 22px;
    padding-right: 22px;
}

.benchmark-smart-tabs-container {
    margin: 8px auto 24px;
    padding: 0 96px;
    max-width: 100%;
    box-sizing: border-box;
}

.benchmark-smart-tabs {
    padding-bottom: 10px;
}

/* =========================================================
   GLOBAL SMART SEARCH — BENCHMARKEE MONO STYLE
========================================================= */

.benchmark-global-search-wrap {
    position: relative;
    z-index: 10001;
    display: flex;
    justify-content: center;
    margin: 0 auto 28px;
    padding: 0 96px;
    box-sizing: border-box;
    transition: all 0.24s ease;
}

.benchmark-global-search-wrap.is-open {
    position: fixed;
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    width: min(1240px, calc(100% - 32px));
    padding: 0;
    margin: 0;
    z-index: 10003;
}

.benchmark-global-search {
    position: relative;
    width: min(620px, 100%);
    transition: width 0.24s ease;
}

.benchmark-global-search-wrap.is-open .benchmark-global-search {
    width: 100%;
}

.benchmark-global-search__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.85);
    pointer-events: none;
    z-index: 2;
}

.benchmark-global-search input {
    width: 100%;
    height: 56px;
    border: 3px solid rgba(255,255,255,0.12);
    border-radius: 9999px;
    background: linear-gradient(180deg, rgba(30,32,39,0.98) 0%, rgba(21,23,28,0.98) 100%);
    color: #fff;
    padding: 0 56px 0 52px;
    box-sizing: border-box;
    font-family: "PragmaticaWebMedium";
    font-size: 16px;
    line-height: 20px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow:
        0 10px 28px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.benchmark-global-search input::placeholder {
    color: rgba(255,255,255,0.64);
}

.benchmark-global-search input:focus {
    border-color: rgba(255,255,255,0.82);
    box-shadow:
        0 0 0 4px rgba(255,255,255,0.1),
        0 16px 34px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.benchmark-global-search__clear {
    position: absolute;
    right: 12px;
    top: 29px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255,255,255,0.88);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    opacity: 0.85;
    padding: 0;
    z-index: 2;
    transition: background 0.16s ease, opacity 0.16s ease;
}

.benchmark-global-search__clear:hover {
    opacity: 1;
}

.benchmark-global-search__clear.is-visible {
    display: flex;
}

.benchmark-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    background: rgba(10,10,12,0.56);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.benchmark-search-overlay.is-open {
    display: block;
}

.benchmark-search-panel {
    position: fixed;
    z-index: 10002;
    left: 50%;
    top: 90px;
    width: min(1240px, calc(100% - 32px));
    max-height: calc(100vh - 112px);
    transform: translateX(-50%);
    display: none;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(27,29,35,0.98) 0%, rgba(20,22,27,0.98) 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 24px 90px rgba(0,0,0,0.42),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.benchmark-search-panel.is-open {
    display: block;
}

.benchmark-search-panel__inner {
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    padding: 22px 22px 24px;
    box-sizing: border-box;
    scrollbar-width: none;
}

.benchmark-search-panel__inner::-webkit-scrollbar {
    display: none;
}

.benchmark-search-panel__tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-bottom: 22px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9999px;
    background: rgba(255,255,255,0.02);
}

.benchmark-search-panel__tab {
    min-height: 46px;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: rgba(255,255,255,0.86);
    cursor: pointer;
    font-family: "PragmaticaWebMedium";
    font-size: 15px;
    line-height: 1;
    transition: all 0.18s ease;
}

.benchmark-search-panel__tab:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

.benchmark-search-panel__tab.active {
    background: #fff;
    color: #1d1d1f;
    box-shadow: 0 10px 26px rgba(255,255,255,0.12);
}

.benchmark-search-section {
    margin-bottom: 26px;
}

.benchmark-search-section:last-child {
    margin-bottom: 0;
}

.benchmark-search-section__title {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 20px;
    color: #fff;
    font-weight: 500;
}

.benchmark-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.benchmark-search-chip {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 9999px;
    background: rgba(255,255,255,0.02);
    color: #fff;
    cursor: pointer;
    font-family: "PragmaticaWebMedium";
    font-size: 14px;
    line-height: 1;
    transition: all 0.16s ease;
}

.benchmark-search-chip:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.34);
    transform: translateY(-1px);
}

.benchmark-search-results {
    display: grid;
    gap: 8px;
}

.benchmark-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 62px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: rgba(255,255,255,0.01);
    color: #fff;
    cursor: pointer;
    text-align: left;
    font-family: "PragmaticaWebMedium";
    box-sizing: border-box;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.benchmark-search-result:hover,
.benchmark-search-result.is-active {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.benchmark-search-result__icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(36,39,47,1) 0%, rgba(24,26,31,1) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 8px 18px rgba(0,0,0,0.18);
}

.benchmark-search-result__icon.has-app-icon {
    padding: 4px;
    background: linear-gradient(180deg, rgba(44,47,57,1) 0%, rgba(26,28,34,1) 100%);
}

.benchmark-search-result__body {
    min-width: 0;
    flex: 1;
}

.benchmark-search-result__title {
    display: block;
    margin: 0 0 4px;
    color: #fff;
    font-size: 15px;
    line-height: 18px;
    font-weight: 500;
}

.benchmark-search-result__meta {
    display: block;
    margin: 0;
    color: rgba(255,255,255,0.66);
    font-size: 14px;
    line-height: 17px;
}

.benchmark-search-empty {
    padding: 28px 10px;
    color: rgba(255,255,255,0.68);
    font-size: 15px;
    line-height: 22px;
}

/* =========================================================
   FLOWS MVP
========================================================= */

.benchmark-content--flows {
    display: block;
}

.benchmark-flows-shell {
    width: min(1480px, calc(100vw - 56px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: start;
}

.benchmark-flows-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 22px;
}

.benchmark-flows-search {
    width: min(420px, 100%);
    height: 42px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 999px;
    padding: 0 16px;
    color: #101114;
    background: #fff;
    outline: none;
}

.benchmark-flows-summary {
    color: rgba(20,22,26,0.62);
    font-size: 14px;
    white-space: nowrap;
}

.benchmark-flows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.benchmark-flow-card {
    min-width: 0;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

.benchmark-flow-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.benchmark-flow-card__icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 999px;
    object-fit: cover;
    background: #f1f3f5;
}

.benchmark-flow-card__title {
    margin: 0;
    color: #101114;
    font-size: 17px;
    line-height: 21px;
    font-weight: 700;
}

.benchmark-flow-card__meta {
    margin: 3px 0 0;
    color: rgba(20,22,26,0.56);
    font-size: 13px;
    line-height: 17px;
}

.benchmark-flow-list {
    display: grid;
    gap: 8px;
}

.benchmark-flow-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 8px;
    color: #101114;
    background: #f7f8fa;
    text-decoration: none;
    font-size: 14px;
    line-height: 18px;
    transition: background .18s ease, transform .18s ease;
}

.benchmark-flow-link:hover {
    background: #eceff3;
    transform: translateY(-1px);
}

.benchmark-flow-link__tag {
    flex: 0 0 auto;
    color: rgba(20,22,26,0.52);
    font-size: 12px;
}

.benchmark-flows-sidebar {
    position: sticky;
    top: 88px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.benchmark-flows-sidebar__title {
    margin: 0 0 10px;
    color: #101114;
    font-size: 14px;
    font-weight: 700;
}

.benchmark-flow-filter {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 9px 10px;
    background: transparent;
    color: rgba(20,22,26,0.68);
    text-align: left;
    cursor: pointer;
}

.benchmark-flow-filter.is-active,
.benchmark-flow-filter:hover {
    color: #101114;
    background: #f2f4f7;
}

.benchmark-flow-filter__count {
    color: rgba(20,22,26,0.42);
    font-size: 12px;
}

.benchmark-flows-empty {
    border: 1px dashed rgba(0,0,0,0.14);
    border-radius: 8px;
    padding: 32px;
    color: rgba(20,22,26,0.58);
    background: #fff;
    text-align: center;
}

@media (max-width: 980px) {
    .benchmark-flows-shell {
        width: min(100% - 24px, 720px);
        grid-template-columns: 1fr;
    }

    .benchmark-flows-sidebar {
        position: static;
        order: -1;
    }

    .benchmark-flows-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .benchmark-flows-summary {
        white-space: normal;
    }
}

/* FLOWS POLISH */

body.benchmark-flows-active #benchmarkFlowsPortal {
    margin: 18px auto 96px !important;
    padding: 0 64px !important;
}

#benchmarkFlowsPortal .benchmark-flows-shell {
    width: min(1760px, 100%) !important;
    grid-template-columns: 310px minmax(0, 1fr) !important;
    gap: 44px !important;
    align-items: start !important;
}

#benchmarkFlowsPortal .benchmark-flows-sidebar {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

#benchmarkFlowsPortal .benchmark-flow-tree {
    gap: 24px !important;
}

#benchmarkFlowsPortal .benchmark-flow-tree-link {
    border: 0 !important;
    background: transparent !important;
    width: 100% !important;
    text-align: left !important;
    cursor: pointer !important;
     font-size: 15px;
    white-space: nowrap;
    font-family: "PragmaticaWebMedium";
    letter-spacing: -0.02em;
}

#benchmarkFlowsPortal .benchmark-flow-tree-link.is-active {
    color: #101114 !important;
   
}

#benchmarkFlowsPortal .benchmark-flow-view-main {
    width: 100% !important;
    min-width: 0 !important;
}

#benchmarkFlowsPortal .benchmark-flow-view-section {
    margin: 0 !important;
}

#benchmarkFlowsPortal .benchmark-flow-screens-row {
    display: flex !important;
    gap: 28px !important;
    align-items: flex-start !important;
    overflow-x: auto !important;
    padding: 6px 0 28px !important;
}

#benchmarkFlowsPortal .benchmark-flow-screen {
    flex: 0 0 280px !important;
    max-width: 280px !important;
}

#benchmarkFlowsPortal .benchmark-flow-screen img {
    border-radius: 30px !important;
    aspect-ratio: 9 / 19.2 !important;
    object-fit: cover !important;
}

#benchmarkFlowsPortal .benchmark-flow-view-title {
    max-width: 760px !important;

}

@media (max-width: 980px) {
    body.benchmark-flows-active #benchmarkFlowsPortal { padding: 0 16px !important; }
    #benchmarkFlowsPortal .benchmark-flows-shell { grid-template-columns: 1fr !important; }
    #benchmarkFlowsPortal .benchmark-flow-screen { flex-basis: 220px !important; max-width: 220px !important; }
}

/* FLOWS PORTAL FIX */

#benchmarkFlowsPortal {
    display: none;
    position: relative;
    z-index: 5;
    width: 100%;
    box-sizing: border-box;
    margin: 22px 0 90px;
    background: #fff;
    color: #202126;
}

body.benchmark-flows-active #benchmarkFlowsPortal {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.benchmark-flows-active #content.benchmark-content--flows {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.benchmark-flows-active #content.benchmark-content--flows > .benchmark-flows-empty,
body.benchmark-flows-active #content.benchmark-content--flows > .benchmark-flows-shell {
    display: none !important;
}

#benchmarkFlowsPortal * {
    box-sizing: border-box;
}

/* FLOWS VISIBILITY FIX */

#content.benchmark-content--flows {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    overflow: visible !important;
    min-height: 360px !important;
    margin-top: 22px !important;
    padding: 0 0 80px !important;
}

#content.benchmark-content--flows.benchmark-content-loading,
#content.benchmark-content--flows.benchmark-content-switching {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}

#content.benchmark-content--flows .benchmark-flows-shell,
#content.benchmark-content--flows .benchmark-flow-view-main,
#content.benchmark-content--flows .benchmark-flow-view-section {
    opacity: 1 !important;
    visibility: visible !important;
}

/* FLOWS VIEW LAYOUT OVERRIDE */

.benchmark-content--flows .benchmark-flows-shell {
    width: min(1540px, calc(100vw - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
}

.benchmark-content--flows .benchmark-flows-sidebar {
    position: sticky;
    top: 92px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    max-height: calc(100vh - 112px);
    overflow: auto;
}

.benchmark-flows-shown { margin: 0 0 22px; color: rgba(20,22,26,0.56); font-size: 14px; line-height: 18px; }

.benchmark-flow-tree { display: grid; gap: 22px; }

.benchmark-flow-tree-app__head { display: flex; align-items: center; gap: 10px; margin: 0 0 9px; color: #202126; text-decoration: none; }

.benchmark-flow-tree-app__icon { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 999px; object-fit: cover; background: #f1f3f5; }

.benchmark-flow-tree-app__title {
 min-width: 0; 
 overflow: hidden; 
 text-overflow: ellipsis; 
   font-size: 16px;
    white-space: nowrap;
    font-family: "PragmaticaWebMedium";
    letter-spacing: -0.02em;
}

.benchmark-flow-tree-list { display: grid; margin-left: 17px; padding-left: 13px; border-left: 1px solid rgba(20,22,26,0.18); }

.benchmark-flow-tree-link { position: relative; display: block; padding: 5px 0 6px; color: rgba(20,22,26,0.62); font-size: 14px; line-height: 18px; text-decoration: none; }

.benchmark-flow-tree-link::before { content: ''; position: absolute; left: -13px; top: 12px; width: 8px; height: 1px; background: rgba(20,22,26,0.18); }

.benchmark-flow-tree-link:hover { color: #101114; }

.benchmark-flow-view-main { min-width: 0; }

.benchmark-flow-view-section { scroll-margin-top: 120px; margin: 0 0 44px; }

.benchmark-flow-view-header { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 16px; align-items: center; margin: 0 0 18px; }

.benchmark-flow-view-icon { width: 54px; height: 54px; border-radius: 999px; object-fit: cover; background: #f1f3f5; }

.benchmark-flow-view-title {
    margin: 0;
    color: #202126;
    font-size: 16px;
    font-weight: normal;
    text-align: left;
}

.benchmark-flow-view-meta { margin: 3px 0 0; color: rgba(20,22,26,0.48); font-size: 14px; line-height: 18px; }

.benchmark-flow-screens-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 250px); gap: 26px; overflow-x: auto; padding: 2px 0 18px; overscroll-behavior-inline: contain; }

.benchmark-flow-screen { display: block; color: inherit; text-decoration: none; }

.benchmark-flow-screen img { display: block; width: 100%; aspect-ratio: 9 / 19.2; object-fit: cover; border-radius: 28px; background: #eef0f3; box-shadow: 0 16px 42px rgba(15,23,42,0.12); }

.benchmark-flow-screen__caption { display: block; margin: 9px 4px 0; color: rgba(20,22,26,0.48); font-size: 12px; line-height: 16px; }

.benchmark-flow-view-empty { padding: 42px 0; color: rgba(20,22,26,0.54); font-size: 15px; }

@media (max-width: 980px) {
    .benchmark-content--flows .benchmark-flows-shell { width: min(100% - 24px, 760px); grid-template-columns: 1fr; gap: 22px; }
    .benchmark-content--flows .benchmark-flows-sidebar { position: static; max-height: none; }
    .benchmark-flow-tree { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
    .benchmark-flow-tree-app { min-width: 220px; }
    .benchmark-flow-screens-row { grid-auto-columns: minmax(180px, 70vw); gap: 16px; }
}

body.benchmark-search-open {
    overflow: hidden;
}

/* =========================================================
   SEARCH TYPE ICONS — BENCHMARKEE MONO STYLE
========================================================= */

.benchmark-search-result__icon.has-type-icon {
    position: relative;
    background: linear-gradient(180deg, rgba(36,36,38,1) 0%, rgba(29,29,31,1) 100%);
    border: 1px solid rgba(255,255,255,0.1);
}

.benchmark-search-type-icon {
    width: 24px;
    height: 24px;
    display: block;
    color: #fff;
}

.benchmark-search-type-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.benchmark-search-type-icon svg * {
    stroke: currentColor;
}

.benchmark-search-result:hover .benchmark-search-result__icon.has-type-icon,
.benchmark-search-result.is-active .benchmark-search-result__icon.has-type-icon {
    background: #fff;
    border-color: #fff;
}

.benchmark-search-result:hover .benchmark-search-type-icon,
.benchmark-search-result.is-active .benchmark-search-type-icon {
    color: #1d1d1f;
}

/* =========================================================
   SELECTED FILTER BAR
========================================================= */

.benchmark-smart-selected {
    display: none;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 6px;
    min-height: 56px;
    border-radius: 9999px;
    background: #050505;
    border: 1px solid rgba(255,255,255,0.16);
    box-sizing: border-box;
    margin-top: 23px;
}

.benchmark-smart-selected.is-visible {
    display: flex;
}

.benchmark-smart-selected__list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.benchmark-smart-selected__list::-webkit-scrollbar {
    display: none;
}

.benchmark-smart-selected__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 14px 0 16px;
    border: 0;
    border-radius: 9999px;
    background: #fff;
    color: #1d1d1f;
    font-family: "PragmaticaWebMedium";
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.benchmark-smart-selected__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #1d1d1f;
    font-size: 18px;
    line-height: 1;
    margin-top: 1px;
}

.benchmark-smart-selected__clear {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: "PragmaticaWebMedium";
    font-size: 34px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.9;
    transition: 0.2s ease;
}

.benchmark-smart-selected__clear:hover {
    opacity: 1;
}

.benchmark-smart-empty {
    display: none;
    padding: 12px 14px;
    border-radius: 18px;
    background: #f5f5f7;
    color: #68686e;
    font-size: 14px;
    line-height: 20px;
}

.benchmark-smart-empty.is-visible {
    display: block;
}

.benchmark-smart-selected__share {
    flex: 0 0 auto;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 9999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
    font-family: "PragmaticaWebMedium";
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: background 0.18s ease, opacity 0.18s ease;
}

.benchmark-smart-selected__share:hover {
    background: rgba(255,255,255,0.18);
}

.benchmark-smart-selected__share.is-copied {
    background: #fff;
    color: #1d1d1f;
}

@media (max-width: 630px) {
    .benchmark-smart-selected__share {
        width: 38px;
        min-width: 38px;
        height: 38px;
        padding: 0;
        font-size: 0;
    }

    .benchmark-smart-selected__share::before {
        content: "в†—";
        font-size: 17px;
        line-height: 1;
    }
}

/* =========================================================
   LOADING / SWITCHING
========================================================= */

.benchmark-smart-loader,
.benchmark-smart-status {
    display: none !important;
}

#content {
    transition:
        opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
        min-height 0.26s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

#content.benchmark-content-loading {
    opacity: 0.58;
    transform: translateY(4px);
    pointer-events: none;
}

#content.benchmark-content-switching {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
    pointer-events: none;
}

#content.benchmark-content-enter {
    animation: benchmarkContentEnter 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes benchmarkContentEnter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.995);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.benchmark-is-switching #content {
    overflow-anchor: none;
}

body.benchmark-is-switching .benchmark-smart-tabs,
body.benchmark-is-switching #benchmarkAppsTabsContainer #tabs,
body.benchmark-is-switching #tabs {
    scroll-behavior: auto !important;
}

.benchmark-smart-tabs-container,
#benchmarkAppsTabsContainer {
    transition:
        opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.benchmark-tabs-switching {
    opacity: 0;
    transform: translateY(5px);
    pointer-events: none;
}

.benchmark-smart-tabs-container.benchmark-smart-loading .benchmark-smart-tab,
.benchmark-smart-tabs-container.benchmark-smart-loading .benchmark-smart-selected__item,
.benchmark-smart-tabs-container.benchmark-smart-loading .benchmark-smart-selected__clear {
    pointer-events: none;
    opacity: 0.72;
}

/* =========================================================
   SMART CONTENT PRELOADER + STABLE SCREEN APPEARANCE
========================================================= */

.benchmark-content-preloader {
    width: 100%;
    padding: 10px 0 34px;
    box-sizing: border-box;
}

.benchmark-content-preloader__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 26px;
}

.benchmark-content-preloader__icon {
    position: relative;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    background: #1d1d1f;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 14px 34px rgba(0,0,0,0.12);
}

.benchmark-content-preloader__icon::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.26);
    border-top-color: #fff;
    animation: benchmarkSmartSpin 0.72s linear infinite;
}

.benchmark-content-preloader__title {
    color: var(--text-color);
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.03em;
    font-weight: 500;
}

.benchmark-content-preloader__text {
    margin-top: 4px;
    color: #68686e;
    font-size: 14px;
    line-height: 18px;
}

.benchmark-content-preloader__group {
    margin-bottom: 42px;
}

.benchmark-content-preloader__app {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.benchmark-content-preloader__app-icon,
.benchmark-content-preloader__line,
.benchmark-content-preloader__phone {
    position: relative;
    overflow: hidden;
    background: #f1f1f3;
}

.benchmark-content-preloader__app-icon::after,
.benchmark-content-preloader__line::after,
.benchmark-content-preloader__phone::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.74) 46%, transparent 100%);
    animation: benchmarkSkeletonMove 1.05s ease-in-out infinite;
}

.benchmark-content-preloader__app-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 50%;
}

.benchmark-content-preloader__lines {
    width: min(320px, 68%);
}

.benchmark-content-preloader__line {
    height: 15px;
    border-radius: 9999px;
    margin-bottom: 9px;
}

.benchmark-content-preloader__line--short {
    width: 58%;
    height: 12px;
    opacity: 0.72;
}

.benchmark-content-preloader__grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -16.5px;
}

.benchmark-content-preloader__phone {
    flex: 0 0 355px;
    aspect-ratio: 7.5 / 16;
    margin: 0 16.5px 30px;
    border-radius: 10% / 5%;
}

@keyframes benchmarkSkeletonMove {
    to {
        transform: translateX(100%);
    }
}

body.dark-theme .benchmark-content-preloader__title {
    color: #fff;
}

body.dark-theme .benchmark-content-preloader__text {
    color: rgba(255,255,255,0.58);
}

body.dark-theme .benchmark-content-preloader__app-icon,
body.dark-theme .benchmark-content-preloader__line,
body.dark-theme .benchmark-content-preloader__phone {
    background: rgba(255,255,255,0.08);
}

body.dark-theme .benchmark-content-preloader__app-icon::after,
body.dark-theme .benchmark-content-preloader__line::after,
body.dark-theme .benchmark-content-preloader__phone::after {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 46%, transparent 100%);
}

#content.benchmark-content-preparing {
    opacity: 1;
    transform: none;
    pointer-events: none;
}

#content.benchmark-content-ready-pending {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
}

#content .resource-group,
#content .screenshots-carousel .swiper-slide,
#content .resource-item-card,
#content .gallery.block {
    backface-visibility: hidden;
    transform: translateZ(0);
}

body.benchmark-is-switching #content .resource-group,
body.benchmark-is-switching #content .screenshots-carousel .swiper-slide,
body.benchmark-is-switching #content .resource-item-card,
body.benchmark-is-switching #content .gallery.block {
    transition: none !important;
}

@media (max-width: 630px) {
    .benchmark-content-preloader__grid {
        margin: 0 -10px !important;
    }

    .benchmark-content-preloader__phone {
        flex: 0 0 calc(50% - 20px);
        margin: 0 10px 20px !important;
    }

    .benchmark-content-preloader__title {
        font-size: 18px;
        line-height: 22px;
    }
}

@media (min-width: 631px) and (max-width: 960px) {
    .benchmark-content-preloader__phone {
        flex: 0 0 calc(33.33% - 33px);
    }
}

@media (min-width: 961px) and (max-width: 1599px) {
    .benchmark-content-preloader__phone {
        flex: 0 0 calc(25% - 33px);
    }
}

@media (min-width: 1600px) and (max-width: 1980px) {
    .benchmark-content-preloader__phone {
        flex: 0 0 calc(20% - 33px);
    }
}

@media (min-width: 1981px) {
    .benchmark-content-preloader__phone {
        flex: 0 0 calc(16.66% - 33px);
    }
}

/* =========================================================
   GAMIFICATION CONTENT PRELOADER
   Matches .benchmark-gamification-grid / .benchmark-gamification-card
========================================================= */

.benchmark-gamification-preloader {
    width: 100%;
    padding: 10px 0 34px;
    box-sizing: border-box;
}

.benchmark-gamification-preloader__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 26px;
}

.benchmark-gamification-preloader__icon {
    position: relative;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    background: #1d1d1f;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 14px 34px rgba(0,0,0,0.12);
}

.benchmark-gamification-preloader__icon::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.26);
    border-top-color: #fff;
    animation: benchmarkSmartSpin 0.72s linear infinite;
}

.benchmark-gamification-preloader__title {
    color: var(--text-color);
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.03em;
    font-weight: 500;
}

.benchmark-gamification-preloader__text {
    margin-top: 4px;
    color: #68686e;
    font-size: 14px;
    line-height: 18px;
}

.benchmark-gamification-preloader__grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -16.5px;
    width: 100%;
    align-items: flex-start;
}

.benchmark-gamification-preloader__card {
    flex: 0 0 355px;
    margin: 0 16.5px;
    box-sizing: border-box;
    padding-bottom: 34px;
    min-width: 0;
}

.benchmark-gamification-preloader__preview,
.benchmark-gamification-preloader__app-icon,
.benchmark-gamification-preloader__line {
    position: relative;
    overflow: hidden;
    background: #f1f1f3;
}

.benchmark-gamification-preloader__preview::after,
.benchmark-gamification-preloader__app-icon::after,
.benchmark-gamification-preloader__line::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.74) 46%, transparent 100%);
    animation: benchmarkSkeletonMove 1.05s ease-in-out infinite;
}

.benchmark-gamification-preloader__preview {
    width: 100%;
    aspect-ratio: 7.5 / 16;
    border-radius: 10% / 5%;
    outline: solid 2px rgba(0,0,0,0.08);
    outline-offset: -2px;
}

.benchmark-gamification-preloader__info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.benchmark-gamification-preloader__app-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
}

.benchmark-gamification-preloader__lines {
    min-width: 0;
    width: min(260px, 70%);
}

.benchmark-gamification-preloader__line {
    height: 14px;
    border-radius: 9999px;
    margin-bottom: 8px;
}

.benchmark-gamification-preloader__line--short {
    width: 58%;
    height: 12px;
    opacity: 0.72;
}

body.dark-theme .benchmark-gamification-preloader__title {
    color: #fff;
}

body.dark-theme .benchmark-gamification-preloader__text {
    color: rgba(255,255,255,0.58);
}

body.dark-theme .benchmark-gamification-preloader__preview,
body.dark-theme .benchmark-gamification-preloader__app-icon,
body.dark-theme .benchmark-gamification-preloader__line {
    background: rgba(255,255,255,0.08);
}

body.dark-theme .benchmark-gamification-preloader__preview::after,
body.dark-theme .benchmark-gamification-preloader__app-icon::after,
body.dark-theme .benchmark-gamification-preloader__line::after {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 46%, transparent 100%);
}

@media (min-width: 631px) and (max-width: 960px) {
    .benchmark-gamification-preloader__card {
        flex: 0 0 calc(33.33% - 33px);
    }
}

@media (min-width: 961px) and (max-width: 1599px) {
    .benchmark-gamification-preloader__card {
        flex: 0 0 calc(25% - 33px);
    }
}

@media (min-width: 1600px) and (max-width: 1980px) {
    .benchmark-gamification-preloader__card {
        flex: 0 0 calc(20% - 33px);
    }
}

@media (min-width: 1981px) {
    .benchmark-gamification-preloader__card {
        flex: 0 0 calc(16.66% - 33px);
    }
}

@media (max-width: 630px) {
    .benchmark-gamification-preloader__grid {
        margin: 0 16.6px;
    }

    .benchmark-gamification-preloader__card {
        flex: 0 0 calc(50% - 20px);
        margin: 0 10px;
        padding-bottom: 24px;
    }

    .benchmark-gamification-preloader__info {
        gap: 10px;
        margin-top: 12px;
    }

    .benchmark-gamification-preloader__app-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .benchmark-gamification-preloader__title {
        font-size: 18px;
        line-height: 22px;
    }
}

/* =========================================================
   HORIZONTAL SCROLL + EDGE GRADIENT
========================================================= */

.benchmark-top-filter__tabs,
.benchmark-smart-tabs,
#benchmarkAppsTabsContainer #tabs,
#tabs {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.benchmark-top-filter__tabs::-webkit-scrollbar,
.benchmark-smart-tabs::-webkit-scrollbar,
#benchmarkAppsTabsContainer #tabs::-webkit-scrollbar,
#tabs::-webkit-scrollbar {
    display: none;
}

.benchmark-top-filter__tabs.is-overflowing,
.benchmark-smart-tabs.is-overflowing,
#benchmarkAppsTabsContainer #tabs.is-overflowing,
#tabs.is-overflowing {
    transition: -webkit-mask-image 0.2s ease, mask-image 0.2s ease;
}

.benchmark-top-filter__tabs.is-overflowing.has-right-overflow:not(.has-left-overflow),
.benchmark-smart-tabs.is-overflowing.has-right-overflow:not(.has-left-overflow),
#benchmarkAppsTabsContainer #tabs.is-overflowing.has-right-overflow:not(.has-left-overflow),
#tabs.is-overflowing.has-right-overflow:not(.has-left-overflow) {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 64px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 64px), transparent 100%);
}

.benchmark-top-filter__tabs.is-overflowing.has-left-overflow:not(.has-right-overflow),
.benchmark-smart-tabs.is-overflowing.has-left-overflow:not(.has-right-overflow),
#benchmarkAppsTabsContainer #tabs.is-overflowing.has-left-overflow:not(.has-right-overflow),
#tabs.is-overflowing.has-left-overflow:not(.has-right-overflow) {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 42px, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 42px, #000 100%);
}

.benchmark-top-filter__tabs.is-overflowing.has-left-overflow.has-right-overflow,
.benchmark-smart-tabs.is-overflowing.has-left-overflow.has-right-overflow,
#benchmarkAppsTabsContainer #tabs.is-overflowing.has-left-overflow.has-right-overflow,
#tabs.is-overflowing.has-left-overflow.has-right-overflow {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 42px, #000 calc(100% - 64px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 42px, #000 calc(100% - 64px), transparent 100%);
}

.benchmark-top-filter__tabs.is-dragging,
.benchmark-smart-tabs.is-dragging,
#benchmarkAppsTabsContainer #tabs.is-dragging,
#tabs.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

/* =========================================================
   RESULTS HEADER
========================================================= */

.tag-search-results {
    width: 100%;
}

.tag-search-results .tag-header {
    margin: 0 0 36px;
    padding: 24px 28px;
    border-radius: 28px;
    background: #f5f5f7;
}

.tag-search-results .tag-header h2 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 36px;
    letter-spacing: -0.04em;
    font-weight: 500;
    color: var(--text-color);
}

.tag-search-results .tag-header .tag-name {
    color: #1d1d1f;
}

.tag-search-results .results-count {
    margin: 0;
    font-size: 15px;
    line-height: 20px;
    color: #68686e;
}

/* =========================================================
   RESOURCE GROUP
========================================================= */

.resource-group {
    width: 100%;
    margin-bottom: 64px;
    padding-bottom: 54px;
}

.resource-group-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.resource-icon-large {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f1f3;
}

.resource-icon-large img,
.app-icon-large {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.resource-group-title {
    min-width: 0;
    flex: 1;
}

.resource-group-title h3 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: -0.03em;
    font-weight: 500;
}

.resource-title-link {
    color: var(--text-color);
    text-decoration: none;
}

.resource-title-link:hover {
    opacity: 0.65;
}

.resource-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    line-height: 18px;
    color: #8d8d8d;
}

.resource-path {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-group-actions {
    flex: 0 0 auto;
    display: none;
}

.resource-group-actions .action-btn,
.action-btn.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 9999px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    transition: 0.2s ease;
}

.resource-group-actions .action-btn:hover,
.action-btn.primary:hover {
    opacity: 0.78;
}

/* =========================================================
   SCREENSHOTS GRID
========================================================= */

.screenshots-carousel {
    width: 100%;
    overflow: visible;
}

.screenshots-carousel .swiper {
    width: 100%;
    overflow: visible;
    padding: 0;
}

.screenshots-carousel .swiper-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    margin: 0 -16.5px !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
}

.screenshots-carousel .swiper-slide {
    flex: 0 0 355px;
    width: auto !important;
    height: auto !important;
    margin: 0 16.5px !important;
    box-sizing: border-box;
    padding-bottom: 30px;
    cursor: pointer;
}

.screenshots-carousel .swiper-pagination,
.screenshots-carousel .swiper-button-next,
.screenshots-carousel .swiper-button-prev {
    display: none !important;
}

.screenshot-frame {
    position: relative;
    overflow: hidden;
    border-radius: 10% / 5%;
    background: rgba(0,0,0,0.08);
    aspect-ratio: 7.5 / 16;
    transition: transform 0.22s ease, filter 0.22s ease;
}

.screenshot-frame:hover {
    transform: translateY(-3px);
    filter: brightness(0.96);
}

.screenshot-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    border-radius: inherit;
    outline: solid 2px rgba(0,0,0,0.08);
    outline-offset: -2px;
    background: rgba(0,0,0,0.08);
}

.screenshot-caption {
    margin-top: 10px;
    min-height: 24px;
    font-size: 13px;
    line-height: 18px;
    color: #68686e;
    text-align: center;
}

.tag-caption,
.meta-tag-small {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 9999px;
    background: #f5f5f7;
    color: #555;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-items-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -16.5px;
}

.resource-item-card {
    flex: 0 0 355px;
    margin: 0 16.5px;
    box-sizing: border-box;
    padding-bottom: 30px;
}

.item-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 10% / 5%;
    background: rgba(0,0,0,0.08);
    aspect-ratio: 7.5 / 16;
    cursor: pointer;
    transition: transform 0.22s ease, filter 0.22s ease;
}

.item-thumbnail:hover {
    transform: translateY(-3px);
    filter: brightness(0.96);
}

.item-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    border-radius: inherit;
}

.item-info {
    margin-top: 10px;
}

.item-title {
    font-size: 14px;
    line-height: 18px;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 8px;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.item-actions {
    display: none;
}

/* =========================================================
   LIGHTBOX + TAG FILTERS
========================================================= */

#lightbox.benchmark-main-lightbox-open {
    display: block;
    z-index: 99999;
}

#lightbox.benchmark-main-lightbox-open #modal-left-sidebar {
    display: block;
}

#lightbox.benchmark-main-lightbox-open .modal-img {
    width: calc(100% - 240px);
}

#lightbox.benchmark-main-lightbox-open img.modal-content {
    cursor: default;
}

body.benchmark-main-modal-open {
    overflow: hidden;
}

#lightbox.benchmark-main-lightbox-open #tags {
    gap: 2px;
}

div#tags, div#tagList {
    width: calc(270px - 24px);
}

#lightbox.benchmark-main-lightbox-open #tags .title-tags {
    display: flex;
}

#lightbox.benchmark-main-lightbox-open #tags .benchmark-modal-filter-summary {
    width: calc(100% - 24px);
    padding: 0 12px 12px 12px;
    color: rgba(255,255,255,0.46);
    font-size: 13px;
    line-height: 18px;
    box-sizing: border-box;
}

#lightbox.benchmark-main-lightbox-open #tags .benchmark-smart-modal-tag {
    height: auto;
    min-height: 20px;
}

#lightbox.benchmark-main-lightbox-open #tags .benchmark-smart-modal-tag .name-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

#lightbox.benchmark-main-lightbox-open #tags .benchmark-modal-tag-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

#lightbox.benchmark-main-lightbox-open #tags .smart-modal-tag-count {
    flex: 0 0 auto;
    min-width: 24px;
    height: 20px;
    padding: 0 7px;
    border-radius: 9999px;

    color: rgba(255,255,255,0.64);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;

}

#lightbox.benchmark-main-lightbox-open #tags .benchmark-smart-modal-tag.active .smart-modal-tag-count {

    color: #fff;
}

#lightbox.benchmark-main-lightbox-open #tags .item.is-empty {
    opacity: 0.35;
    pointer-events: none;
}

/* =========================================================
   SMART LIGHTBOX APP INFO OVERLAY
========================================================= */

#lightbox.benchmark-main-lightbox-open .modal-img {
    position: relative;
}

.benchmark-modal-app-info {
    position: absolute;
    top: 16px;
    left: 50%;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: min(360px, calc(100% - 44px));
    min-height: 44px;
    padding: 5px 12px 5px 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.88);
    color: #1d1d1f;
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(-50%);
    box-sizing: border-box;
    pointer-events: none;
}

.benchmark-modal-app-info__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f1f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.benchmark-modal-app-info__icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.benchmark-modal-app-info__body {
    min-width: 0;
    display: block;
    text-align: left;
}

.benchmark-modal-app-info__title {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "PragmaticaWebMedium", Arial, sans-serif;
    font-size: 14px;
    line-height: 17px;
    color: #1d1d1f;
}

body.dark-theme .benchmark-modal-app-info {
    background: rgba(29, 29, 31, 0.78);
    color: #fff;
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.dark-theme .benchmark-modal-app-info__icon {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-theme .benchmark-modal-app-info__title {
    color: #fff;
}

@media (max-width: 630px) {
    .benchmark-modal-app-info {
        top: 12px;
        min-height: 40px;
        max-width: calc(100% - 28px);
        padding: 4px 10px 4px 5px;
        gap: 8px;
    }

    .benchmark-modal-app-info__icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .benchmark-modal-app-info__title {
        max-width: 190px;
        font-size: 13px;
        line-height: 16px;
    }

}

/* =========================================================
   DARK THEME
========================================================= */

body.dark-theme .tag-search-results .tag-header,
body.dark-theme .tag-caption,
body.dark-theme .meta-tag-small,
body.dark-theme .benchmark-smart-empty {
    background: #1d1d1f;
}

body.dark-theme .tag-search-results .tag-header .tag-name {
    color: #fff;
}

body.dark-theme .benchmark-smart-selected {
    background: #050505;
    border-color: rgba(255,255,255,0.18);
}

body.dark-theme .benchmark-smart-selected__item {
    background: #fff;
    color: #1d1d1f;
}

body.dark-theme .benchmark-smart-selected__remove {
    color: rgba(29,29,31,0.82);
}

body.dark-theme .resource-group {
    border-bottom-color: rgba(255,255,255,0.1);
}

body.dark-theme .resource-icon-large,
body.dark-theme .screenshot-frame,
body.dark-theme .item-thumbnail {
    background: rgba(255,255,255,0.08);
}

body.dark-theme .tag-search-results .results-count,
body.dark-theme .resource-meta,
body.dark-theme .screenshot-caption,
body.dark-theme .benchmark-smart-empty {
    color: rgba(255,255,255,0.58);
}

body.dark-theme .tag-caption,
body.dark-theme .meta-tag-small {
    color: rgba(255,255,255,0.75);
}

body.dark-theme .benchmark-search-result__icon.has-type-icon {
    background: linear-gradient(180deg, rgba(44,44,46,1) 0%, rgba(29,29,31,1) 100%);
    border-color: rgba(255,255,255,0.12);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 960px) {
    .benchmark-global-search-wrap {
        padding: 0 20px;
        margin-bottom: 22px;
    }

    .benchmark-global-search-wrap.is-open {
        width: calc(100% - 20px);
        top: 12px;
    }

    .benchmark-global-search {
        width: 100%;
    }

    .benchmark-search-panel {
        top: 78px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 90px);
        border-radius: 18px;
    }

    .benchmark-search-panel__inner {
        max-height: calc(100vh - 90px);
        padding: 18px;
    }

    .benchmark-search-panel__tabs {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 22px;
    }

    .benchmark-search-panel__tab {
        min-height: 42px;
    }

    #lightbox.benchmark-main-lightbox-open .modal-inner {
        flex-direction: column-reverse;
    }

    #lightbox.benchmark-main-lightbox-open #modal-left-sidebar {
        width: 100%;
        display: block;
    }

    #lightbox.benchmark-main-lightbox-open .modal-img {
        width: 100%;
    }

    #lightbox.benchmark-main-lightbox-open #tags {
        width: 100%;
        overflow-x: scroll;
        overflow-y: hidden;
        flex-direction: row;
        height: auto;
        align-items: center;
    }

    #lightbox.benchmark-main-lightbox-open #tags .title-tags,
    #lightbox.benchmark-main-lightbox-open #tags .benchmark-modal-filter-summary {
        display: none;
    }

    #lightbox.benchmark-main-lightbox-open #tags .benchmark-smart-modal-tag {
        width: auto;
        min-width: max-content;
        flex: 0 0 auto;
    }
}

@media (max-width: 630px) {
    .benchmark-global-search-wrap {
        margin-top: 8px;
        padding: 0 20px;
    }

    .benchmark-global-search-wrap.is-open {
        width: calc(100% - 16px);
        top: 10px;
    }

    .benchmark-global-search input {
        height: 50px;
        font-size: 15px;
    }

    .benchmark-search-panel {
        top: 68px;
        width: calc(100% - 16px);
        max-height: calc(100vh - 80px);
    }

    .benchmark-search-panel__inner {
        max-height: calc(100vh - 80px);
        padding: 14px;
    }

    .benchmark-search-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .benchmark-search-chips::-webkit-scrollbar {
        display: none;
    }

    .benchmark-search-chip {
        flex: 0 0 auto;
    }

    .benchmark-top-filter {
        padding: 0 20px;
        margin-top: 14px;
    }

    .benchmark-smart-tabs-container {
        padding: 0 20px;
        margin-bottom: 18px;
    }

    .benchmark-smart-selected {
        border-radius: 28px;
        min-height: 52px;
        padding: 5px;
    }

    .benchmark-smart-selected__item {
        min-height: 38px;
        font-size: 14px;
        padding: 0 12px 0 14px;
    }

    .benchmark-smart-selected__clear {
        width: 38px;
        height: 38px;
    }

    .tag-search-results .tag-header {
        padding: 18px 20px;
        border-radius: 22px;
        margin-bottom: 28px;
    }

    .tag-search-results .tag-header h2 {
        font-size: 26px;
        line-height: 30px;
    }

    .resource-group {
        margin-bottom: 42px;
        padding-bottom: 34px;
    }

    .resource-group-header {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .resource-icon-large {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .resource-group-title h3 {
        font-size: 20px;
        line-height: 24px;
    }

    .resource-group-actions {
        display: none;
    }

    .screenshots-carousel .swiper-wrapper,
    .resource-items-grid {
        margin: 0 -10px !important;
    }

    .screenshots-carousel .swiper-slide,
    .resource-item-card {
        flex: 0 0 calc(50% - 20px);
        margin: 0 10px !important;
        padding-bottom: 20px;
    }

    .screenshot-caption {
        font-size: 12px;
        line-height: 16px;
    }
}

@media (min-width: 631px) and (max-width: 960px) {
    .benchmark-top-filter,
    .benchmark-smart-tabs-container {
        padding: 0 96px;
    }

    .screenshots-carousel .swiper-slide,
    .resource-item-card {
        flex: 0 0 calc(33.33% - 33px);
    }
}

@media (min-width: 961px) and (max-width: 1599px) {
    .screenshots-carousel .swiper-slide,
    .resource-item-card {
        flex: 0 0 calc(25% - 33px);
    }
}

@media (min-width: 1600px) and (max-width: 1980px) {
    .screenshots-carousel .swiper-slide,
    .resource-item-card {
        flex: 0 0 calc(20% - 33px);
    }
}

@media (min-width: 1981px) {
    .screenshots-carousel .swiper-slide,
    .resource-item-card {
        flex: 0 0 calc(16.66% - 33px);
    }
}

/* =========================================================
   CLEAN SEARCH ICONS — BENCHMARKEE MONO STYLE
========================================================= */

.benchmark-search-result__icon.has-benchmark-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, #2a2a2d 0%, #1d1d1f 100%);
    border: 1px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 8px 18px rgba(0,0,0,0.22);
}

.benchmark-search-result__icon.has-benchmark-icon svg {
    width: 25px;
    height: 25px;
    display: block;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.24));
}

.benchmark-search-result__icon.has-app-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 9999px;
    padding: 4px;
    background:
        linear-gradient(180deg, #2a2a2d 0%, #1d1d1f 100%);
    border: 1px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 8px 18px rgba(0,0,0,0.22);
    box-sizing: border-box;
}

.benchmark-search-result__icon.has-app-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 9999px;
}

/* =========================================================
   REMOVE RESULT HEADER + RESOURCE PATH
========================================================= */

.tag-search-results .tag-header {
    display: none !important;
}

.resource-path {
    display: none !important;
}

.resource-meta {
    gap: 8px;
}

.resource-meta span:empty {
    display: none;
}

.bench-search-paywall-divider {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    margin: 42px 0 24px;
    color: var(--text-color);
}

.bench-search-paywall-divider__line {
    height: 1px;
    background: rgba(29, 29, 31, 0.18);
}

.bench-search-paywall-divider__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    max-width: 520px;
}

.bench-search-paywall-divider__title {
    font-size: 17px;
    line-height: 22px;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

.bench-search-paywall-divider__text {
    font-size: 14px;
    line-height: 20px;
    color: #68686e;
    max-width: 460px;
}

.bench-search-paywall-divider__actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.bench-search-paywall-divider__btn {
    min-height: 38px;
    padding: 0 15px;
    border-radius: 9999px;
    background: #1d1d1f;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.bench-search-paywall-divider__btn--secondary {
    background: #f5f5f7;
    color: #1d1d1f;
}

body.dark-theme .bench-search-paywall-divider__line {
    background: rgba(255, 255, 255, 0.18);
}

body.dark-theme .bench-search-paywall-divider__text {
    color: rgba(255, 255, 255, 0.58);
}

body.dark-theme .bench-search-paywall-divider__btn {
    background: #fff;
    color: #1d1d1f;
}

body.dark-theme .bench-search-paywall-divider__btn--secondary {
    background: #1d1d1f;
    color: #fff;
}

@media (max-width: 630px) {
    .bench-search-paywall-divider {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 32px 0 20px;
    }

    .bench-search-paywall-divider__line {
        display: none;
    }

    .bench-search-paywall-divider__content {
        width: 100%;
        padding: 20px;
        border-radius: 22px;
        background: #f5f5f7;
        box-sizing: border-box;
    }

    body.dark-theme .bench-search-paywall-divider__content {
        background: #1d1d1f;
    }

    .bench-search-paywall-divider__title {
        white-space: normal;
    }

    .bench-search-paywall-divider__actions {
        flex-wrap: wrap;
    }
}

body.has-no-bench-subscription #content .swiper-pagination,
body.has-no-bench-subscription #content .swiper-button-next,
body.has-no-bench-subscription #content .swiper-button-prev,
body.has-no-bench-subscription #content .swiper-scrollbar,
body.has-no-bench-subscription #content hr,
body.has-no-bench-subscription #content hr.her {
    display: none !important;
}

/* Backup-based paywall restore: hide only technical separators in smart output for all users. */

#content .tag-search-results > hr,
#content .resource-group > hr,
#content hr.her {
    display: none !important;
}

#content .tag-search-results .tag-header {
    display: none !important;
}

#content .resource-path {
    display: none !important;
}

.bench-search-paywall-notice {
    width: 100%;
    margin: 56px 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}

.bench-search-paywall-notice__line {
    height: 1px;
    background: rgba(29, 29, 31, 0.16);
}

.bench-search-paywall-notice__content {
    max-width: 420px;
    text-align: center;
}

.bench-search-paywall-notice__title {
    font-size: 20px;
    line-height: 24px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.bench-search-paywall-notice__text {
    font-size: 15px;
    line-height: 21px;
    color: #68686e;
    margin-bottom: 16px;
}

.bench-search-paywall-notice__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 9999px;
    background: #1d1d1f;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
}

.bench-search-paywall-notice__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bench-search-paywall-notice__btn--secondary {
    background: #f5f5f7;
    color: #1d1d1f;
}

.bench-search-paywall-notice__btn:hover {
    opacity: 0.78;
}

body.dark-theme .bench-search-paywall-notice__line {
    background: rgba(255, 255, 255, 0.16);
}

body.dark-theme .bench-search-paywall-notice__title {
    color: #fff;
}

body.dark-theme .bench-search-paywall-notice__text {
    color: rgba(255, 255, 255, 0.64);
}

body.dark-theme .bench-search-paywall-notice__btn {
    background: #fff;
    color: #1d1d1f;
}

body.dark-theme .bench-search-paywall-notice__btn--secondary {
    background: #1d1d1f;
    color: #fff;
}

@media (max-width: 630px) {
    .bench-search-paywall-notice {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 38px;
    }

    .bench-search-paywall-notice__line {
        display: none;
    }

    .bench-search-paywall-notice__content {
        max-width: 100%;
        padding: 24px 20px;
        border-radius: 22px;
        background: #f5f5f7;
    }

    body.dark-theme .bench-search-paywall-notice__content {
        background: #1d1d1f;
    }
}

.benchmark-smart-load-more {
    width: 100%;
    padding: 34px 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #68686e;
    font-size: 14px;
    line-height: 20px;
}

.benchmark-smart-load-more span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 9999px;
    background: #f5f5f7;
}

.benchmark-smart-load-more.is-loading span::before {
    content: "";
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border-radius: 50%;
    border: 2px solid rgba(29, 29, 31, 0.18);
    border-top-color: #1d1d1f;
    animation: benchmarkSmartSpin 0.75s linear infinite;
}

@keyframes benchmarkSmartSpin {
    to {
        transform: rotate(360deg);
    }
}

body.dark-theme .benchmark-smart-load-more {
    color: rgba(255, 255, 255, 0.58);
}

body.dark-theme .benchmark-smart-load-more span {
    background: #1d1d1f;
}

body.dark-theme .benchmark-smart-load-more.is-loading span::before {
    border-color: rgba(255, 255, 255, 0.18);
    border-top-color: #fff;
}

div#benchmarkTopFilterTabs {
    justify-content: center;
    margin-bottom: 28px;
}

@media (max-width: 630px) {
    div#benchmarkTopFilterTabs {
        justify-content: flex-start !important;
        margin-bottom: 18px;
    }
}

div#modalBenchmarkVideo {
    z-index: 99999;
}

/* =========================================================
   GAMIFICATION PAYWALL NOTICE
========================================================= */

.bench-gamification-paywall-notice {
    width: 100%;
    margin: 48px 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}

.bench-gamification-paywall-notice__line {
    height: 1px;
    background: rgba(29, 29, 31, 0.16);
}

.bench-gamification-paywall-notice__content {
    max-width: 460px;
    text-align: center;
}

.bench-gamification-paywall-notice__title {
    font-size: 20px;
    line-height: 24px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 10px;
}

.bench-gamification-paywall-notice__text {
    font-size: 15px;
    line-height: 21px;
    color: #68686e;
    margin-bottom: 16px;
}

.bench-gamification-paywall-notice__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 9999px;
    background: #1d1d1f;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
}

.bench-gamification-paywall-notice__btn:hover {
    opacity: 0.78;
}

.bench-gamification-paywall-notice__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bench-gamification-paywall-notice__btn--secondary {
    background: #f5f5f7;
    color: #1d1d1f;
}

body.dark-theme .bench-gamification-paywall-notice__line {
    background: rgba(255, 255, 255, 0.16);
}

body.dark-theme .bench-gamification-paywall-notice__text {
    color: rgba(255, 255, 255, 0.64);
}

body.dark-theme .bench-gamification-paywall-notice__btn {
    background: #fff;
    color: #1d1d1f;
}

body.dark-theme .bench-gamification-paywall-notice__btn--secondary {
    background: #1d1d1f;
    color: #fff;
}

@media (max-width: 630px) {
    .bench-gamification-paywall-notice {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 34px;
    }

    .bench-gamification-paywall-notice__line {
        display: none;
    }

    .bench-gamification-paywall-notice__content {
        max-width: 100%;
        padding: 24px 20px;
        border-radius: 22px;
        background: #f5f5f7;
        box-sizing: border-box;
    }

    body.dark-theme .bench-gamification-paywall-notice__content {
        background: #1d1d1f;
    }
}

/* =========================================================
   GLOBAL SEARCH GAMIFICATION APP CHIPS
========================================================= */

.benchmark-search-chips--apps {
    align-items: center;
}

.benchmark-search-chip--app {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 5px 14px 5px 6px;
}

.benchmark-search-chip__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.benchmark-search-chip__icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.benchmark-search-chip__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.benchmark-search-chip__text {
    min-width: 0;
    white-space: nowrap;
}

.benchmark-search-empty--compact {
    padding: 14px 2px 0;
}

@media (max-width: 630px) {
    .benchmark-search-chip--app {
        min-height: 42px;
        padding-right: 12px;
    }

    .benchmark-search-chip__icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
}

/* =========================================================
   INSTAGRAM BLUR SPOILER — SMART SEARCH / SMART CONTENT
========================================================= */

.bench-blur-spoiler {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
    margin: 0 .01em;
    color: inherit;
    cursor: default;
    user-select: none;
}

.bench-blur-spoiler.is-blur-spoiler {
    color: rgba(0, 0, 0, var(--bench-spoiler-dim, .46));
    filter: blur(var(--bench-spoiler-blur, 10px));
    -webkit-filter: blur(var(--bench-spoiler-blur, 10px));
    text-shadow:
        0 0 var(--bench-spoiler-spread, 2px) rgba(0,0,0,.82),
        0 0 calc(var(--bench-spoiler-spread, 2px) * 2) rgba(0,0,0,.44);
    transform: translateZ(0);
    will-change: filter;
    pointer-events: auto;
}

.bench-blur-spoiler.is-blur-spoiler:hover,
.bench-blur-spoiler.is-blur-spoiler:focus,
.bench-blur-spoiler.is-blur-spoiler:focus-visible {
    color: rgba(0, 0, 0, var(--bench-spoiler-dim, .46));
    filter: blur(var(--bench-spoiler-blur, 10px));
    -webkit-filter: blur(var(--bench-spoiler-blur, 10px));
}

body.dark-theme .bench-blur-spoiler.is-blur-spoiler,
.benchmark-search-panel .bench-blur-spoiler.is-blur-spoiler,
.benchmark-search-result .bench-blur-spoiler.is-blur-spoiler {
    color: rgba(255, 255, 255, var(--bench-spoiler-dim, .54));
    text-shadow:
        0 0 var(--bench-spoiler-spread, 2px) rgba(255,255,255,.72),
        0 0 calc(var(--bench-spoiler-spread, 2px) * 2) rgba(255,255,255,.34);
}

.bench-logo-blur-spoiler {
    transform: translateZ(0);
    will-change: filter, opacity;
}

.bench-logo-blur-spoiler.is-logo-blur-spoiler {
    opacity: var(--bench-logo-spoiler-opacity, .55);
    filter:
        blur(var(--bench-logo-spoiler-blur, 8px))
        saturate(var(--bench-logo-spoiler-saturate, .15))
        contrast(.92);
    -webkit-filter:
        blur(var(--bench-logo-spoiler-blur, 8px))
        saturate(var(--bench-logo-spoiler-saturate, .15))
        contrast(.92);
}

.bench-logo-blur-spoiler.is-logo-blur-spoiler:hover,
.bench-logo-blur-spoiler.is-logo-blur-spoiler:focus,
.bench-logo-blur-spoiler.is-logo-blur-spoiler:focus-visible {
    opacity: var(--bench-logo-spoiler-opacity, .55);
    filter:
        blur(var(--bench-logo-spoiler-blur, 8px))
        saturate(var(--bench-logo-spoiler-saturate, .15))
        contrast(.92);
    -webkit-filter:
        blur(var(--bench-logo-spoiler-blur, 8px))
        saturate(var(--bench-logo-spoiler-saturate, .15))
        contrast(.92);
}

@media (prefers-reduced-motion: reduce) {
    .bench-blur-spoiler.is-blur-spoiler,
    .bench-logo-blur-spoiler.is-logo-blur-spoiler {
        will-change: auto;
    }
}

/* =========================================================
   INSTAGRAM BLUR SPOILER — FAST / NO-FLICKER
   Не меняет визуальную сетку, только скрывает Instagram-текст и лого.
========================================================= */

:root {
    --bench-inst-text-blur-resource: 11px;
    --bench-inst-text-blur-search: 8px;
    --bench-inst-text-blur-modal: 8px;
    --bench-inst-text-blur-chip: 7px;

    --bench-inst-logo-blur-resource: 9px;
    --bench-inst-logo-blur-search: 6px;
    --bench-inst-logo-blur-modal: 7px;
    --bench-inst-logo-blur-chip: 6px;

    --bench-inst-logo-opacity: .55;
    --bench-inst-logo-saturate: .15;
}

/* Текст */

.bench-instagram-blur-text,
.bench-instagram-blur-tail {
    display: inline-block;
    color: rgba(0, 0, 0, var(--bench-inst-text-dim, .5)) !important;
    filter: blur(var(--bench-inst-text-blur, 10px));
    -webkit-filter: blur(var(--bench-inst-text-blur, 10px));
    text-shadow:
        0 0 var(--bench-inst-text-spread, 2px) rgba(0,0,0,.82),
        0 0 calc(var(--bench-inst-text-spread, 2px) * 2) rgba(0,0,0,.42);
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
    will-change: filter;
    user-select: none;
}

/* Чаще блюрим только хвост gram */

.bench-instagram-title-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}

/* Лого */

.bench-instagram-blur-logo {
    opacity: var(--bench-inst-logo-opacity, .55) !important;
    filter:
        blur(var(--bench-inst-logo-blur, 8px))
        saturate(var(--bench-inst-logo-saturate, .15))
        contrast(.92);
    -webkit-filter:
        blur(var(--bench-inst-logo-blur, 8px))
        saturate(var(--bench-inst-logo-saturate, .15))
        contrast(.92);
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
    will-change: filter, opacity;
}

/* Ничего не раскрываем при hover/focus */

.bench-instagram-blur-text:hover,
.bench-instagram-blur-tail:hover,
.bench-instagram-blur-logo:hover,
.bench-instagram-blur-text:focus,
.bench-instagram-blur-tail:focus,
.bench-instagram-blur-logo:focus {
    filter: inherit;
    -webkit-filter: inherit;
}

/* Контексты */

.resource-group .bench-instagram-blur-tail,
.resource-group-title .bench-instagram-blur-tail {
    --bench-inst-text-blur: var(--bench-inst-text-blur-resource);
    --bench-inst-text-dim: .48;
    --bench-inst-text-spread: 3px;
}

.benchmark-search-result .bench-instagram-blur-tail,
.benchmark-search-chip .bench-instagram-blur-tail {
    --bench-inst-text-blur: var(--bench-inst-text-blur-search);
    --bench-inst-text-dim: .56;
    --bench-inst-text-spread: 2px;
}

.benchmark-modal-app-info .bench-instagram-blur-tail {
    --bench-inst-text-blur: var(--bench-inst-text-blur-modal);
    --bench-inst-text-dim: .52;
    --bench-inst-text-spread: 2px;
}

.benchmark-search-chip .bench-instagram-blur-tail {
    --bench-inst-text-blur: var(--bench-inst-text-blur-chip);
}

.resource-icon-large .bench-instagram-blur-logo,
.resource-icon-large img.bench-instagram-blur-logo,
.app-icon-large.bench-instagram-blur-logo {
    --bench-inst-logo-blur: var(--bench-inst-logo-blur-resource);
}

.benchmark-search-result__icon .bench-instagram-blur-logo,
.benchmark-search-chip__icon .bench-instagram-blur-logo {
    --bench-inst-logo-blur: var(--bench-inst-logo-blur-search);
}

.benchmark-modal-app-info__icon .bench-instagram-blur-logo {
    --bench-inst-logo-blur: var(--bench-inst-logo-blur-modal);
}

/* Мягкое появление только нового контента, без изменения дизайна */

#content.benchmark-smart-soft-enter .resource-group,
#content.benchmark-smart-soft-enter .resource-item-card,
#content.benchmark-smart-soft-enter .gallery.block,
#content.benchmark-smart-soft-enter .swiper-slide {
    animation: benchmarkSmartSoftEnter .28s cubic-bezier(.16,1,.3,1) both;
}

@keyframes benchmarkSmartSoftEnter {
    from {
        opacity: 0;
        transform: translate3d(0, 6px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bench-instagram-blur-text,
    .bench-instagram-blur-tail,
    .bench-instagram-blur-logo {
        will-change: auto;
    }

    #content.benchmark-smart-soft-enter .resource-group,
    #content.benchmark-smart-soft-enter .resource-item-card,
    #content.benchmark-smart-soft-enter .gallery.block,
    #content.benchmark-smart-soft-enter .swiper-slide {
        animation: none !important;
    }
}

/* Guard: скриншоты нельзя блюрить, даже если класс случайно попал на img */

.screenshot-frame img.bench-instagram-blur-logo,
.item-thumbnail img.bench-instagram-blur-logo,
.screenshots-carousel img.bench-instagram-blur-logo,
.resource-item-card img.bench-instagram-blur-logo,
.gallery.block img.bench-instagram-blur-logo,
.img-container img.bench-instagram-blur-logo {
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* =========================================================
   END INSTAGRAM BLUR SPOILER
========================================================= */

/* =========================================================
   BENCH SMART PERFORMANCE + APP ANCHOR SIDEBAR
   Лёгкая оптимизация рендера и правый сайдбар-якорь.
========================================================= */

:root {
    --bench-smart-anchor-sidebar-right: 16px;
    --bench-smart-anchor-sidebar-top: 50%;
    --bench-smart-anchor-sidebar-size: 42px;
    --bench-smart-anchor-sidebar-gap: 8px;
}

.benchmark-smart-anchor-sidebar {
    position: fixed;
    right: var(--bench-smart-anchor-sidebar-right);
    top: var(--bench-smart-anchor-sidebar-top);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: var(--bench-smart-anchor-sidebar-gap);
    transform: translate3d(0, -50%, 0);
    max-height: min(72vh, 620px);
    padding: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(29, 29, 31, 0.08);
    box-shadow:
        0 18px 44px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    scrollbar-width: none;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity .22s ease,
        transform .22s ease;
    will-change: opacity, transform;
}

.benchmark-smart-anchor-sidebar::-webkit-scrollbar {
    display: none;
}

.benchmark-smart-anchor-sidebar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, -50%, 0);
}

.benchmark-smart-anchor-sidebar__item {
    position: relative;
    width: var(--bench-smart-anchor-sidebar-size);
    height: var(--bench-smart-anchor-sidebar-size);
    flex: 0 0 var(--bench-smart-anchor-sidebar-size);
    border: 0;
    border-radius: 50%;
    padding: 4px;
    background: rgba(245,245,247,0.86);
    cursor: pointer;
    box-sizing: border-box;
    transition:
        transform .16s ease,
        background .16s ease,
        box-shadow .16s ease,
        opacity .16s ease;
}

.benchmark-smart-anchor-sidebar__item:hover {
    background: #1d1d1f;
    transform: translate3d(-2px, 0, 0);
    box-shadow: 0 8px 20px rgba(0,0,0,0.16);
}

.benchmark-smart-anchor-sidebar__item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.benchmark-smart-anchor-sidebar__item.is-loading {
    opacity: .58;
    pointer-events: none;
}

.benchmark-smart-anchor-sidebar__tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    max-width: 180px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #1d1d1f;
    color: #fff;
    font-size: 13px;
    line-height: 16px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(4px, -50%, 0);
    transition:
        opacity .16s ease,
        transform .16s ease;
}

.benchmark-smart-anchor-sidebar__item:hover .benchmark-smart-anchor-sidebar__tooltip {
    opacity: 1;
    transform: translate3d(0, -50%, 0);
}

.benchmark-smart-lazy-hidden {
    content-visibility: auto;
    contain-intrinsic-size: 355px 760px;
}

.screenshots-carousel .swiper-slide,
.resource-item-card,
.gallery.block {
    content-visibility: auto;
    contain-intrinsic-size: 355px 760px;
}

.resource-group {
    scroll-margin-top: 96px;
    contain: layout paint style;
}

#content.benchmark-smart-optimized-enter .resource-group {
    animation: benchmarkSmartGroupSoftIn .26s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes benchmarkSmartGroupSoftIn {
    from {
        opacity: 0;
        transform: translate3d(0, 8px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

body.dark-theme .benchmark-smart-anchor-sidebar {
    background: rgba(29, 29, 31, 0.72);
    border-color: rgba(255,255,255,0.1);
    box-shadow:
        0 18px 44px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

body.dark-theme .benchmark-smart-anchor-sidebar__item {
    background: rgba(255,255,255,0.08);
}

body.dark-theme .benchmark-smart-anchor-sidebar__item:hover {
    background: #fff;
}

@media (max-width: 1180px) {
    .benchmark-smart-anchor-sidebar {
        right: 10px;
        --bench-smart-anchor-sidebar-size: 38px;
    }
}

@media (max-width: 960px) {
    .benchmark-smart-anchor-sidebar {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .benchmark-smart-anchor-sidebar,
    .benchmark-smart-anchor-sidebar__item,
    .benchmark-smart-anchor-sidebar__tooltip,
    #content.benchmark-smart-optimized-enter .resource-group {
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================================
   END BENCH SMART PERFORMANCE + APP ANCHOR SIDEBAR
========================================================= */

/* =========================================================
   BENCH SMART SMOOTHER PERF PATCH
   Быстрее сайдбар, плавнее табы/скролл, меньше микрофризов.
========================================================= */

html {
    scroll-behavior: smooth;
}

#content {
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
}

.benchmark-smart-tab,
.benchmark-top-filter__tab,
#tabs .tab {
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
    will-change: background-color, color, transform, opacity;
}

.benchmark-smart-tab:active,
.benchmark-top-filter__tab:active,
#tabs .tab:active {
    transform: translate3d(0,1px,0);
}

.benchmark-smart-anchor-sidebar__item img {
    opacity: 1;
    transition: opacity .16s ease;
    background: rgba(0,0,0,.04);
}

.benchmark-smart-anchor-sidebar__item img[src=""],
.benchmark-smart-anchor-sidebar__item img:not([src]) {
    opacity: 0;
}

.benchmark-smart-anchor-sidebar {
    contain: layout paint style;
    will-change: opacity, transform;
}

#content.benchmark-content-loading,
#content.benchmark-content-switching,
#content.benchmark-content-ready-pending {
    will-change: opacity, transform;
}

@media (prefers-reduced-motion: no-preference) {
    #content.benchmark-smart-optimized-enter .resource-group {
        animation-duration: .22s;
    }
}

/* =========================================================
   END BENCH SMART SMOOTHER PERF PATCH
========================================================= */

/* =========================================================
   SMART SIDEBAR MULTISELECT — SAFE PATCH
========================================================= */

.benchmark-smart-anchor-sidebar__item {
    position: relative;
}

.benchmark-smart-anchor-sidebar__item.is-selected {
    transform: translateX(-2px);
}

.benchmark-smart-anchor-sidebar__item.is-selected img {
    box-shadow: 0 0 0 2px #fff, 0 8px 20px rgba(0,0,0,0.22);
}

.benchmark-smart-anchor-sidebar__remove {
    position: absolute;
    right: -4px;
    top: -4px;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1d1d1f;
    font-size: 14px;
    line-height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 6px 14px rgba(0,0,0,0.22);
}

.benchmark-smart-anchor-sidebar__item.is-selected .benchmark-smart-anchor-sidebar__remove {
    display: inline-flex;
}

.benchmark-smart-selected-loading {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-color);
    font-family: "PragmaticaWebMedium";
    opacity: 0.78;
}

body.dark-theme .benchmark-smart-selected-loading {
    color: #fff;
}

/* Fixed selected apps zone inside smart sidebar */

.benchmark-smart-anchor-sidebar__selected,
.benchmark-smart-anchor-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: var(--bench-smart-anchor-sidebar-gap);
    align-items: center;
}

.benchmark-smart-anchor-sidebar__selected {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding-bottom: 8px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(29,29,31,0.1);
}

.benchmark-smart-anchor-sidebar__selected:empty {
    display: none;
}

.benchmark-smart-anchor-sidebar__list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(min(72vh, 620px) - 16px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.benchmark-smart-anchor-sidebar__list::-webkit-scrollbar {
    display: none;
}

.benchmark-smart-anchor-sidebar__selected:not(:empty) + .benchmark-smart-anchor-sidebar__list {
    max-height: calc(min(72vh, 620px) - 16px - var(--bench-smart-anchor-sidebar-size) - var(--bench-smart-anchor-sidebar-gap) - 10px);
}

.benchmark-smart-anchor-sidebar__item.is-active {
    background: rgba(245,245,247,0.86);
    transform: none;
    box-shadow: none;
}

.benchmark-smart-anchor-sidebar__item.is-active:hover {
    background: #1d1d1f;
    transform: translate3d(-2px, 0, 0);
    box-shadow: 0 8px 20px rgba(0,0,0,0.16);
}

body.dark-theme .benchmark-smart-anchor-sidebar__selected {
    border-bottom-color: rgba(255,255,255,0.12);
}

body.dark-theme .benchmark-smart-anchor-sidebar__item.is-active {
    background: rgba(255,255,255,0.08);
}

body.dark-theme .benchmark-smart-anchor-sidebar__item.is-active:hover {
    background: #fff;
}

/* =========================================================
   SMART SIDEBAR + CONTENT SMOOTH PATCH
   Маскирует подмену HTML и не показывает нерелевантные приложения в сайдбаре.
========================================================= */

#content.benchmark-smart-content-out {
    opacity: .42;
    transform: translate3d(0, 8px, 0) scale(.997);
    filter: blur(1px);
    pointer-events: none;
    transition:
        opacity .14s ease,
        transform .14s ease,
        filter .14s ease;
}

#content.benchmark-smart-content-in {
    animation: benchmarkSmartContentSoftIn .28s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes benchmarkSmartContentSoftIn {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0) scale(.997);
        filter: blur(1px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

.benchmark-smart-anchor-sidebar.is-updating .benchmark-smart-anchor-sidebar__item {
    opacity: .56;
    transform: translate3d(0, 2px, 0);
}

.benchmark-smart-anchor-sidebar__item {
    animation: benchmarkSmartSidebarItemIn .18s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes benchmarkSmartSidebarItemIn {
    from {
        opacity: 0;
        transform: translate3d(0, 4px, 0) scale(.96);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    #content.benchmark-smart-content-out,
    #content.benchmark-smart-content-in,
    .benchmark-smart-anchor-sidebar.is-updating .benchmark-smart-anchor-sidebar__item,
    .benchmark-smart-anchor-sidebar__item {
        transition: none !important;
        animation: none !important;
        filter: none !important;
    }
}

/* =========================================================
   BENCH SMOOTH SCREENSHOTS REVEAL
   Плавная подгрузка скриншотов без рывков и резких скачков.
========================================================= */

#content.bench-smooth-images .screenshots-carousel .swiper-slide,
#content.bench-smooth-images .resource-item-card,
#content.bench-smooth-images .gallery.block {
    content-visibility: visible !important;
    contain: layout paint;
    backface-visibility: hidden;
    transform: translateZ(0);
}

#content.bench-smooth-images .screenshot-frame,
#content.bench-smooth-images .item-thumbnail,
#content.bench-smooth-images .gallery.block .img-container,
#content.bench-smooth-images .gallery.block picture {
    position: relative;
    overflow: hidden;
    background: #f1f1f3;
    transform: translateZ(0);
    backface-visibility: hidden;
}

body.dark-theme #content.bench-smooth-images .screenshot-frame,
body.dark-theme #content.bench-smooth-images .item-thumbnail,
body.dark-theme #content.bench-smooth-images .gallery.block .img-container,
body.dark-theme #content.bench-smooth-images .gallery.block picture {
    background: rgba(255,255,255,0.08);
}

#content.bench-smooth-images .screenshot-frame::after,
#content.bench-smooth-images .item-thumbnail::after,
#content.bench-smooth-images .gallery.block .img-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.66) 46%, transparent 100%);
    transform: translateX(-100%);
}

#content.bench-smooth-images .screenshot-frame.is-bench-img-loading::after,
#content.bench-smooth-images .item-thumbnail.is-bench-img-loading::after,
#content.bench-smooth-images .gallery.block .img-container.is-bench-img-loading::after {
    opacity: 1;
    animation: benchSmoothImageSkeleton 1.05s ease-in-out infinite;
}

@keyframes benchSmoothImageSkeleton {
    to { transform: translateX(100%); }
}

#content.bench-smooth-images img[data-bench-smooth-img="1"] {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, 8px, 0) scale(1.012);
    transition:
        opacity .42s cubic-bezier(.16, 1, .3, 1),
        filter .52s cubic-bezier(.16, 1, .3, 1),
        transform .52s cubic-bezier(.16, 1, .3, 1);
    will-change: opacity, filter, transform;
}

#content.bench-smooth-images img[data-bench-smooth-img="1"].bench-img-loaded {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
    will-change: auto;
}

#content.bench-smooth-images .bench-card-smooth {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    transition:
        opacity .34s cubic-bezier(.16, 1, .3, 1),
        transform .42s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--bench-card-delay, 0ms);
    will-change: opacity, transform;
}

#content.bench-smooth-images .bench-card-smooth.bench-card-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

#content.bench-smooth-images .screenshot-frame:hover,
#content.bench-smooth-images .item-thumbnail:hover {

}

@media (prefers-reduced-motion: reduce) {
    #content.bench-smooth-images img[data-bench-smooth-img="1"],
    #content.bench-smooth-images .bench-card-smooth {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    #content.bench-smooth-images .screenshot-frame::after,
    #content.bench-smooth-images .item-thumbnail::after,
    #content.bench-smooth-images .gallery.block .img-container::after {
        display: none !important;
    }
}

/* ---- BenchMainSmartAssets extracted style block ---- */

#content {
    position: relative;
    overflow-anchor: none;
    backface-visibility: hidden;
    transform: translateZ(0);
}

#content.bench-detail-like-lock {
    contain: layout paint;
    overflow: visible;
}

#content.benchmark-content-loading,
#content.benchmark-content-switching,
#content.benchmark-content-ready-pending,
#content.bench-results-leaving {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

.bench-results-ghost-layer {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    z-index: 20;
    pointer-events: none;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
        opacity .42s cubic-bezier(.16, 1, .3, 1),
        transform .42s cubic-bezier(.16, 1, .3, 1),
        filter .42s cubic-bezier(.16, 1, .3, 1);
    will-change: opacity, transform, filter;
}

.bench-results-ghost-layer.is-out {
    opacity: 0;
    transform: translate3d(0, -6px, 0) scale(.998);
    filter: blur(.8px);
}

#content.bench-detail-like-preparing > :not(.bench-results-ghost-layer) {
    opacity: 0 !important;
}

#content.benchmark-content--gamification.bench-detail-like-preparing > .benchmark-gamification-results {
    opacity: 1 !important;
}

#content.bench-detail-like-entering > :not(.bench-results-ghost-layer) {
    animation: benchDetailLikeContentIn .58s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes benchDetailLikeContentIn {
    0% {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

#content.bench-detail-like-entering .resource-group,
#content.bench-detail-like-entering .resource-item-card,
#content.bench-detail-like-entering .screenshots-carousel .swiper-slide,
#content.bench-detail-like-entering .gallery.block,
#content.bench-detail-like-entering .benchmark-gamification-card {
    opacity: 0;
    animation: benchDetailLikeItemIn .68s cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: var(--bench-detail-like-delay, 0ms);
    will-change: opacity, transform;
}

@keyframes benchDetailLikeItemIn {
    0% {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

#content.benchmark-content--smart .screenshot-frame,
#content.benchmark-content--smart .item-thumbnail,
#content.benchmark-content--smart .img-container .shimmer-effect,
#content.benchmark-content--gamification .video-block_img {
    transform: translateZ(0);
    backface-visibility: hidden;
}

#content.benchmark-content--smart .screenshot-frame img,
#content.benchmark-content--smart .item-thumbnail img,
#content.benchmark-content--smart .img-container .shimmer-effect img {
    transition: opacity .42s cubic-bezier(.16, 1, .3, 1), filter .42s cubic-bezier(.16, 1, .3, 1) !important;
}

#content.benchmark-content--smart .screenshot-frame:not(.is-image-loaded),
#content.benchmark-content--smart .item-thumbnail:not(.is-image-loaded),
#content.benchmark-content--smart .img-container .shimmer-effect:not(.lazyloaded) {
    background: linear-gradient(110deg, rgba(0,0,0,.07) 8%, rgba(0,0,0,.13) 18%, rgba(0,0,0,.07) 33%);
    background-size: 200% 100%;
    animation: benchDetailLikeSkeleton 1.2s linear infinite;
}

body.dark-theme #content.benchmark-content--smart .screenshot-frame:not(.is-image-loaded),
body.dark-theme #content.benchmark-content--smart .item-thumbnail:not(.is-image-loaded),
body.dark-theme #content.benchmark-content--smart .img-container .shimmer-effect:not(.lazyloaded) {
    background: linear-gradient(110deg, rgba(255,255,255,.055) 8%, rgba(255,255,255,.115) 18%, rgba(255,255,255,.055) 33%);
    background-size: 200% 100%;
}

@keyframes benchDetailLikeSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

#content.benchmark-content--smart .screenshot-frame img:not(.lazyloaded),
#content.benchmark-content--smart .item-thumbnail img:not(.lazyloaded),
#content.benchmark-content--smart .img-container .shimmer-effect img.lazyload {
    opacity: 0;
}

#content.benchmark-content--smart .screenshot-frame.is-image-loaded,
#content.benchmark-content--smart .item-thumbnail.is-image-loaded,
#content.benchmark-content--smart .img-container .shimmer-effect.lazyloaded {
    animation: none;
    background: transparent;
}

#content.benchmark-content--smart .screenshot-frame.is-image-loaded img,
#content.benchmark-content--smart .item-thumbnail.is-image-loaded img,
#content.benchmark-content--smart .img-container .shimmer-effect.lazyloaded img {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .bench-results-ghost-layer,
    #content.bench-detail-like-entering > :not(.bench-results-ghost-layer),
    #content.bench-detail-like-entering .resource-group,
    #content.bench-detail-like-entering .resource-item-card,
    #content.bench-detail-like-entering .screenshots-carousel .swiper-slide,
    #content.bench-detail-like-entering .gallery.block,
    #content.bench-detail-like-entering .benchmark-gamification-card {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* В режиме «Приложения» detail-like transition не трогает карточки postTpl. */

#content.benchmark-content--apps .block.main_page_block img {
    filter: none !important;
    transform: none !important;
}

/* ---- BenchMainSmartAssets extracted style block ---- */

/* Не даем smart-карточкам внезапно растягиваться на всю ширину после reload. */

#content.benchmark-content--smart .resource-group .gallery.block,
#content.benchmark-content--smart .tag-search-results .gallery.block {
    flex: 0 0 355px !important;
    width: auto !important;
    max-width: 355px !important;
    margin: 0 16.5px 30px !important;
    box-sizing: border-box !important;
}

#content.benchmark-content--smart .resource-group .img-container,
#content.benchmark-content--smart .resource-group .block_img,
#content.benchmark-content--smart .resource-group .shimmer-effect,
#content.benchmark-content--smart .tag-search-results .img-container,
#content.benchmark-content--smart .tag-search-results .block_img,
#content.benchmark-content--smart .tag-search-results .shimmer-effect {
    width: 100% !important;
    max-width: 355px !important;
    aspect-ratio: 7.5 / 16 !important;
    min-height: 0 !important;
    border-radius: 10% / 5% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#content.benchmark-content--smart .resource-group .img-container img,
#content.benchmark-content--smart .resource-group .block_img img,
#content.benchmark-content--smart .resource-group .shimmer-effect img,
#content.benchmark-content--smart .tag-search-results .img-container img,
#content.benchmark-content--smart .tag-search-results .block_img img,
#content.benchmark-content--smart .tag-search-results .shimmer-effect img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block !important;
}

@media (max-width: 630px) {
    #content.benchmark-content--smart .resource-group .gallery.block,
    #content.benchmark-content--smart .tag-search-results .gallery.block {
        flex: 0 0 calc(50% - 20px) !important;
        max-width: none !important;
        margin: 0 10px 20px !important;
    }

    #content.benchmark-content--smart .resource-group .img-container,
    #content.benchmark-content--smart .resource-group .block_img,
    #content.benchmark-content--smart .resource-group .shimmer-effect,
    #content.benchmark-content--smart .tag-search-results .img-container,
    #content.benchmark-content--smart .tag-search-results .block_img,
    #content.benchmark-content--smart .tag-search-results .shimmer-effect {
        max-width: none !important;
    }
}

/* Gamification result view */

/* =========================================================
   HOTFIX: GAMIFICATION SMOOTH GRID WITHOUT GHOST CONFLICT
   Не трогаем обычную smart-выдачу и сайдбар.
========================================================= */

#content.benchmark-content--gamification {
    transition:
        opacity .24s cubic-bezier(.16, 1, .3, 1),
        transform .24s cubic-bezier(.16, 1, .3, 1),
        filter .24s cubic-bezier(.16, 1, .3, 1),
        min-height .24s cubic-bezier(.16, 1, .3, 1);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: opacity, transform;
}

#content.benchmark-content--gamification.benchmark-content-switching,
#content.benchmark-content--gamification.benchmark-content-ready-pending {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(.998);
    filter: blur(.4px);
    pointer-events: none;
}

#content.benchmark-content--gamification .benchmark-gamification-results,
#content.benchmark-content--gamification .benchmark-gamification-grid {
    width: 100%;
    transform: translateZ(0);
    backface-visibility: hidden;
}

#content.benchmark-content--gamification .benchmark-gamification-card {
    opacity: 1;
    animation: benchmarkGamificationCardSoftIn .42s cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: min(calc(var(--bench-card-index, 0) * 22ms), 176ms);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: opacity, transform;
}

#content.benchmark-content--gamification .benchmark-gamification-card:nth-child(1) { --bench-card-index: 0; }

#content.benchmark-content--gamification .benchmark-gamification-card:nth-child(2) { --bench-card-index: 1; }

#content.benchmark-content--gamification .benchmark-gamification-card:nth-child(3) { --bench-card-index: 2; }

#content.benchmark-content--gamification .benchmark-gamification-card:nth-child(4) { --bench-card-index: 3; }

#content.benchmark-content--gamification .benchmark-gamification-card:nth-child(5) { --bench-card-index: 4; }

#content.benchmark-content--gamification .benchmark-gamification-card:nth-child(6) { --bench-card-index: 5; }

#content.benchmark-content--gamification .benchmark-gamification-card:nth-child(7) { --bench-card-index: 6; }

#content.benchmark-content--gamification .benchmark-gamification-card:nth-child(8) { --bench-card-index: 7; }

#content.benchmark-content--gamification .benchmark-gamification-card:nth-child(9) { --bench-card-index: 8; }

#content.benchmark-content--gamification .benchmark-gamification-card:nth-child(10) { --bench-card-index: 9; }

#content.benchmark-content--gamification .benchmark-gamification-card:nth-child(11) { --bench-card-index: 10; }

#content.benchmark-content--gamification .benchmark-gamification-card:nth-child(12) { --bench-card-index: 11; }

@keyframes benchmarkGamificationCardSoftIn {
    from {
        opacity: 0;
        transform: translate3d(0, 12px, 0) scale(.994);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* ghost-layer не должен участвовать в геймификации */

#content.benchmark-content--gamification .bench-results-ghost-layer {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    #content.benchmark-content--gamification,
    #content.benchmark-content--gamification .benchmark-gamification-card {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
}

/* Apps tab return fixes */

/* HOTFIX apps return: CSS sizes removed. Оставляем родную сетку приложений из основного styles.css. */

#content.benchmark-content--apps .bench-results-ghost-layer { display: none !important; }

/* FLOWS SWIPER POLISH */

body.benchmark-flows-active #benchmarkFlowsPortal { position: relative !important; left: 50% !important; width: 100vw !important; max-width: none !important; margin: 34px 0 112px !important; padding: 0 clamp(24px, 4vw, 76px) !important; box-sizing: border-box !important; transform: translateX(-50%) !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-view-main, body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-view-section { width: 100% !important; max-width: none !important; min-width: 0 !important; margin: 0 !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flows-toolbar { width: 100% !important; margin: 0 0 22px !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flows-search { width: min(440px, 100%) !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screens-row { display: none !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screens-slider, body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screens-swiper { position: relative !important; width: 100% !important; max-width: none !important; overflow: hidden !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screens-swiper { padding: 8px 56px 34px 0 !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screen.swiper-slide { width: clamp(220px, 15vw, 310px) !important; flex: 0 0 auto !important; max-width: none !important; display: block !important; border: 0 !important; padding: 0 !important; background: transparent !important; color: inherit !important; text-align: left !important; cursor: zoom-in !important; font: inherit !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screen img { display: block !important; width: 100% !important; aspect-ratio: 9 / 19.2 !important; object-fit: cover !important; border-radius: 30px !important; box-shadow: 0 24px 52px rgba(18,22,30,0.10) !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screen__caption { display: block !important; margin-top: 10px !important; color: rgba(20,22,26,0.66) !important; font-size: 13px !important; line-height: 1.35 !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-swiper-button { position: absolute !important; top: 42% !important; z-index: 5 !important; width: 40px !important; height: 40px !important; border: 1px solid var(--gray-200, #e5e5e5) !important; border-radius: 50% !important; background: #fff !important; color: transparent !important; box-shadow: 0 20px 30px -10px rgba(0,0,0,0.10) !important; font-size: 0 !important; line-height: 1 !important; text-align: center !important; cursor: pointer !important; transition: opacity .24s ease, transform .24s ease, box-shadow .24s ease !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-swiper-button::after { content: "" !important; display: block !important; width: 24px !important; height: 24px !important; margin: 0 auto !important; background-position: center !important; background-repeat: no-repeat !important; background-size: 24px 24px !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-swiper-prev::after { background-image: url("/assets/components/gallerysearch/img/chevron--left.svg") !important;  margin-left: -3px !important;}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-swiper-next::after { background-image: url("/assets/components/gallerysearch/img/chevron--right.svg") !important; margin-left: -2px !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-swiper-button:hover { opacity: .78 !important; transform: translateY(-1px) !important; box-shadow: 0 24px 34px -12px rgba(0,0,0,0.14) !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-swiper-prev { left: 6px !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-swiper-next { right: 6px !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-swiper-button.swiper-button-disabled { opacity: 0 !important; pointer-events: none !important; }

/* FLOWS LIST + DETAIL POLISH 2026-06-30 */

html, body { max-width: 100%; }

body.benchmark-flows-active { overflow-x: clip; }

body.benchmark-flows-active #benchmarkFlowsPortal { position: relative !important; left: 50% !important; width: calc(100vw - 32px) !important; max-width: none !important; margin: 34px 0 112px !important; padding: 0 !important; box-sizing: border-box !important; transform: translateX(-50%) !important; overflow-x: clip !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flows-shell { width: 100% !important; max-width: none !important; margin: 0 !important; display: grid !important; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr) !important; gap: clamp(28px, 3.4vw, 58px) !important; align-items: start !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-view-main { min-width: 0 !important; max-width: 100% !important; overflow: hidden !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-stack { display: grid !important; gap: 76px !important; min-width: 0 !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-section { min-width: 0 !important; scroll-margin-top: 120px !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-header { margin: 0 0 16px !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-titlelink { display: inline-flex !important; align-items: center !important; gap: 14px !important; color: #202126 !important; text-decoration: none !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-titlelink strong { display: block !important; font-size: 24px !important; line-height: 1.12 !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-titlelink em { display: block !important; margin-top: 3px !important; color: rgba(20,22,26,0.48) !important; font-style: normal !important; font-size: 13px !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-view-section { width: 100% !important; max-width: none !important; margin: 0 !important; min-width: 0 !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-view-header--compact { grid-template-columns: 1fr !important; margin-bottom: 16px !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screens-slider, body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screens-swiper { width: 100% !important; max-width: 100% !important; min-width: 0 !important; overflow: hidden !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screens-swiper { padding: 8px 56px 34px 0 !important; box-sizing: border-box !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screen.swiper-slide, .benchmark-detail-flow-view .benchmark-flow-screen.swiper-slide { width: clamp(220px, 14vw, 300px) !important; flex: 0 0 auto !important; max-width: none !important; display: block !important; border: 0 !important; padding: 0 !important; background: transparent !important; color: inherit !important; text-align: left !important; cursor: zoom-in !important; font: inherit !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screen img, .benchmark-detail-flow-view .benchmark-flow-screen img { 
    display: block !important; 
    width: 100% !important; 
    aspect-ratio: 9 / 19.2 !important; 
    object-fit: fill !important; 
    border-radius: 30px !important;  
    outline: solid 2px rgba(0, 0, 0, 0.08);
    outline-offset: -2px;
    background: rgba(0, 0, 0, 0.08);
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screen__caption, .benchmark-detail-flow-view .benchmark-flow-screen__caption { display: block !important; margin-top: 10px !important; color: rgba(20,22,26,0.66) !important; font-size: 13px !important; line-height: 1.35 !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-load-more { display: block !important; margin: 18px auto 0 !important; border: 0 !important; border-radius: 999px !important; padding: 14px 22px !important; background: #111216 !important; color: #fff !important; font-weight: 700 !important; cursor: pointer !important; }

.benchmark-detail-display-toggle { display: inline-flex; gap: 8px; align-items: center; padding: 6px; margin-left: 14px; border-radius: 999px; background: #f0f0f4; }

.benchmark-detail-display-toggle__btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 15px; color: rgba(20,22,26,0.72); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }

.benchmark-detail-display-toggle__btn svg { width: 17px; height: 17px; }

.benchmark-detail-display-toggle__btn.is-active { background: #111216; color: #fff; }

.benchmark-detail-flow-view { display: none; width: 100%; max-width: 100%; overflow: hidden; }

.benchmark-detail-flow-view.is-active { display: block; }

.benchmark-detail-flow-view .benchmark-flow-app-section { margin: 0 0 64px; }

.benchmark-detail-flow-view .benchmark-flow-screens-swiper { overflow: hidden; padding: 8px 56px 34px 0; }

@media (max-width: 980px) { body.benchmark-flows-active #benchmarkFlowsPortal { width: calc(100vw - 20px) !important; margin-top: 22px !important; } body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flows-shell { grid-template-columns: 1fr !important; } body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flows-sidebar { position: static !important; max-height: 260px !important; overflow: auto !important; } body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screen.swiper-slide, .benchmark-detail-flow-view .benchmark-flow-screen.swiper-slide { width: min(72vw, 280px) !important; } .benchmark-detail-display-toggle { margin: 10px 0 0; } }

/* FLOW NO CENTER TABS 2026-06-30 */

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-section { position: relative !important; display: block !important; overflow: hidden !important; clear: both !important; padding-top: 2px !important; border-top: 0 !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-section:first-child { border-top: 0 !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-view-header--compact { margin-top: 10px !important; text-align: center !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-view-meta { text-align: left !important; }

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screens-slider { clear: both !important; }

/* FLOW APP ROW ALIGN FIX 2026-06-30 */

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 92px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-section {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    contain: layout paint !important;
    isolation: isolate !important;
    padding-top: 0 !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-header {
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 0 12px !important;
    display: flex !important;
    align-items: center !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-view-section {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: both !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-view-header--compact {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 54px !important;
    margin: 0 0 18px !important;
    text-align: center !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screens-slider {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    clear: both !important;
    overflow: hidden !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screens-swiper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screens-swiper .swiper-wrapper {
    align-items: flex-start !important;
}

/* FLOW PER APP ROWS 2026-06-30 */

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flows-shell--rows {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flows-shell--rows .benchmark-flow-view-main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 86px !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-section {
    display: grid !important;
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr) !important;
    gap: clamp(28px, 3.4vw, 58px) !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    contain: layout paint !important;
    border-top:0;
    padding-top: 22px !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-section:first-child {
    border-top: 0 !important;
    padding-top: 0 !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-section > .benchmark-flow-tree-app {
    min-width: 0 !important;
    width: 100% !important;
    align-self: start !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-main {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    align-self: start !important;
    transition:
        opacity .18s ease,
        transform .18s ease,
        filter .18s ease !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-main.is-flow-switching {
    opacity: .24 !important;
    transform: translate3d(0, 8px, 0) scale(.998) !important;
    filter: blur(1px) !important;
    pointer-events: none !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-main.is-flow-entering .benchmark-flow-view-section {
    animation: benchmarkFlowSectionSoftIn .44s cubic-bezier(.16, 1, .3, 1) both !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-main.is-flow-entering .benchmark-flow-screen {
    animation: benchmarkFlowScreenSoftIn .54s cubic-bezier(.16, 1, .3, 1) both !important;
    animation-delay: min(calc(var(--bench-flow-screen-index, 0) * 28ms), 224ms) !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screen:nth-child(1) { --bench-flow-screen-index: 0; }
body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screen:nth-child(2) { --bench-flow-screen-index: 1; }
body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screen:nth-child(3) { --bench-flow-screen-index: 2; }
body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screen:nth-child(4) { --bench-flow-screen-index: 3; }
body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screen:nth-child(5) { --bench-flow-screen-index: 4; }
body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screen:nth-child(6) { --bench-flow-screen-index: 5; }
body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screen:nth-child(7) { --bench-flow-screen-index: 6; }
body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screen:nth-child(8) { --bench-flow-screen-index: 7; }

@keyframes benchmarkFlowSectionSoftIn {
    from {
        opacity: 0;
        transform: translate3d(0, 8px, 0) scale(.998);
        filter: blur(.8px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes benchmarkFlowScreenSoftIn {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0) scale(.992);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-section .benchmark-flow-view-section {
    margin: 0 !important;
    padding: 0 !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-section .benchmark-flow-view-header--compact {
    min-height: 46px !important;
    margin: 0 0 18px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: center !important;
    padding: 0;
    border: 0;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-section .benchmark-flow-screens-slider,
body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-section .benchmark-flow-screens-swiper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 980px) {
    body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-section { grid-template-columns: 1fr !important; }
}

/* Flow tab layout */

/* FLOW MAIN WIDTH + APP ANCHOR FILTER 2026-06-30 */

body.benchmark-flows-active { overflow-x: hidden !important; }

body.benchmark-flows-active #benchmarkFlowsPortal {
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: calc(100% - 96px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 34px auto 112px !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flows-shell--rows {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-view-main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flows-toolbar,
body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flows-search,
body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flows-summary,
body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-filter-sidebar {
    display: none !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-section {
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr) !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-anchor-sidebar {
    right: var(--bench-smart-anchor-sidebar-right, 16px) !important;
    top: var(--bench-smart-anchor-sidebar-top, 50%) !important;
    z-index: 9998 !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-anchor-sidebar__item.is-selected {
    background: #1d1d1f !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.16) !important;
}

body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-anchor-sidebar__item.is-selected img {
    outline: 2px solid #fff !important;
    outline-offset: -2px !important;
}

@media (max-width: 1180px) {
    body.benchmark-flows-active #benchmarkFlowsPortal {
        width: calc(100% - 32px) !important;
        margin-top: 24px !important;
    }
}

@media (max-width: 960px) {
    body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-anchor-sidebar {
        display: none !important;
    }
}

@media (max-width: 760px) {
    body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-section {
        grid-template-columns: 1fr !important;
    }
}

/* FLOW PAYWALL 2026-06-30 */

.benchmark-flow-tree-link.is-locked {
    opacity: .58 !important;
    cursor: pointer !important;
}

.benchmark-flow-lock-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 7px;
    border-radius: 999px;
    background: rgba(20,22,26,.10);
    font-size: 13px;
    line-height: 1;
}

.benchmark-flow-screen__media { display: block; position: relative; border-radius: inherit; overflow: hidden; }

.benchmark-flow-screen.is-locked img {
    filter: blur(12px) saturate(.78) brightness(.88) !important;
    transform: scale(1.035) !important;
}

.benchmark-flow-screen.is-locked { cursor: pointer !important; }

.benchmark-flow-screen__lock {
    position: absolute;
    left: 50%;
    top: 48%;
    z-index: 4;
    transform: translate(-50%, -50%);
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(17,18,22,.92);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 14px 32px rgba(0,0,0,.22);
}

.benchmark-flow-paywall-modal { position: fixed; inset: 0; z-index: 100000; display: none; }

.benchmark-flow-paywall-modal.is-open { display: block; }

.benchmark-flow-paywall-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.52); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.benchmark-flow-paywall-modal__dialog { position: relative; z-index: 2; width: min(520px, calc(100% - 32px)); margin: 12vh auto 0; padding: 28px; border-radius: 28px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.22); box-sizing: border-box; }

.benchmark-flow-paywall-modal__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: #111; font-size: 24px; cursor: pointer; }

.benchmark-flow-paywall-modal__badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: #111; color: #fff; font-size: 12px; margin-bottom: 16px; }

.benchmark-flow-paywall-modal__title { margin: 0 36px 12px 0; font-size: 32px; line-height: 1.08; letter-spacing: 0; color: #111; }

.benchmark-flow-paywall-modal__text { margin: 0 0 22px; color: #666; font-size: 16px; line-height: 1.55; }

.benchmark-flow-paywall-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* FLOW PAYWALL CLEANUP 2026-06-30 */

.benchmark-flow-lock-dot { display: none !important; }

.benchmark-flow-screen__lock { display: none !important; }

.benchmark-flow-screen__media, .benchmark-flow-screen__media img { border-radius: 30px !important; }

.benchmark-flow-screen.is-locked .benchmark-flow-screen__media { overflow: hidden !important; }

/* FLOW SERVER PREVIEW 2026-06-30 */

.benchmark-flow-screen.is-locked img { filter: none !important; transform: none !important; }

/* FLOW MOBILE PICKER 2026-07-02 */

.benchmark-flow-mobile-open {
    display: none;
}

.benchmark-flow-picker {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: none;
    background: #fff;
    color: #202126;
}

.benchmark-flow-picker__panel {
    width: 100%;
    min-height: 100%;
    padding: 18px 18px 30px;
    box-sizing: border-box;
}

.benchmark-flow-picker__header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: -18px -18px 16px;
    padding: 18px;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(20,22,26,.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.benchmark-flow-picker__app {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.benchmark-flow-picker__app img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f3f5;
}

.benchmark-flow-picker__app strong,
.benchmark-flow-picker__app span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.benchmark-flow-picker__app strong {
    font-family: "PragmaticaWebMedium", Arial, sans-serif;
    font-size: 18px;
    line-height: 22px;
}

.benchmark-flow-picker__app span {
    margin-top: 2px;
    color: rgba(20,22,26,.54);
    font-size: 13px;
    line-height: 16px;
}

.benchmark-flow-picker__close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    border-radius: 50%;
    background: #f0f0f4;
    color: #202126;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.benchmark-flow-picker__list {
    display: grid;
    gap: 10px;
}

.benchmark-flow-picker__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 0;
    border-radius: 18px;
    background: #f0f0f4;
    color: #202126;
    font-family: "PragmaticaWebMedium", Arial, sans-serif;
    text-align: left;
    cursor: pointer;
}

.benchmark-flow-picker__item.is-active {
    background: #111216;
    color: #fff;
}

.benchmark-flow-picker__item.is-locked {
    opacity: .56;
}

.benchmark-flow-picker__item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    line-height: 20px;
}

.benchmark-flow-picker__item em {
    flex: 0 0 auto;
    color: inherit;
    opacity: .58;
    font-style: normal;
    font-size: 13px;
    line-height: 16px;
}

body.benchmark-flow-picker-open {
    overflow: hidden !important;
}

body.benchmark-flow-picker-open .benchmark-flow-picker {
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 760px) {
    body.benchmark-flows-active #benchmarkFlowsPortal {
        width: calc(100% - 28px) !important;
        margin-top: 28px !important;
    }

    body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-stack {
        gap: 72px !important;
    }

    body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-app-section {
        display: block !important;
        overflow: visible !important;
        padding-top: 0 !important;
    }

    body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-tree-app {
        margin-bottom: 18px !important;
        display: flex;
        gap: 10px;
    }

    body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-tree-app__head {
        margin-bottom: 8px !important;
    }

    body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-tree-list {
        display: none !important;
    }

       body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-mobile-open {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        height: 35px;
        padding: 0 14px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #000;
        font-family: "PragmaticaWebMedium", Arial, sans-serif;
        font-size: 13px;
        line-height: 16px;
        cursor: pointer;
        text-decoration: underline;

    body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-view-header--compact {
        min-height: 0 !important;
        margin: 0 0 14px !important;
        text-align: left !important;
    }

    body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-view-title {
        font-size: 17px !important;
        line-height: 22px !important;
    }

    body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-view-meta {
        font-size: 13px !important;
        line-height: 16px !important;
    }

    body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screens-swiper {
        overflow: visible !important;
        padding: 4px 0 30px !important;
    }

    body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-screen.swiper-slide {
        width: min(70vw, 260px) !important;
    }

    body.benchmark-flows-active #benchmarkFlowsPortal .benchmark-flow-swiper-button {
        display: none !important;
    }
}
