/*
 * i18n.css (T14) — language switcher + RTL corrections of the site's own styles.
 * Included on every page by site/templates/_partials/i18n-head.html (last in <head>).
 * The switcher reuses the site's visual patterns 1:1 (values copied, no new design):
 *   trigger      — .support-dropdown__trigger (header) / mobile-menu support trigger;
 *   panel        — .support-dropdown__panel (glass panel, 20px radius, arrow, 320ms cubic-bezier(.22,1,.36,1));
 *   items        — .catalog-games__list-item (genres list: #9CA3AF, hover, active = blue tint);
 *   chevron      — .catalog-games__filter-chevron; mobile menu title — .footer__column-title;
 *   mobile panel — .catalog-games__filters-panel (folds with max-height).
 * Self-contained: does not rely on Bootstrap utilities (legal pages have no Bootstrap / common.css).
 */

/* ============================== Language switcher ============================== */

.lang-switcher {
    --lang-shift: 0px;
    position: relative;
    z-index: 12;
}

.lang-switcher__title {
    display: none;
}

.lang-switcher__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

.lang-switcher__trigger:focus-visible {
    outline: 2px solid #28C3F4;
    outline-offset: 4px;
    border-radius: 8px;
}

.lang-switcher__code {
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
}

.lang-switcher__name {
    display: none;
    color: #fff;
    white-space: nowrap;
}

.lang-switcher__chevron {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid #5C5C5C;
    border-bottom: 2px solid #5C5C5C;
    transform: translateY(-2px) rotate(45deg);
    transition:
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.25s ease-out;
}

.lang-switcher.active .lang-switcher__chevron {
    transform: translateY(2px) rotate(-135deg);
    border-color: #28C3F4;
}

.lang-switcher__panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    z-index: 1112;
    box-sizing: border-box;
    min-width: 340px;
    padding: 12px;
    border-radius: 20px;
    background-color: rgba(33, 32, 32, 0.92);
    border: 1px solid rgba(245, 247, 250, 0.1);
    box-shadow: 0 24px 48px rgba(22, 22, 22, 0.72);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(calc(-50% + var(--lang-shift))) translateY(-10px);
    transition:
        opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 320ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lang-switcher__panel::before {
    content: '';
    position: absolute;
    top: -6px;
    left: calc(50% - var(--lang-shift));
    width: 12px;
    height: 12px;
    background-color: rgba(33, 32, 32, 0.92);
    border-top: 1px solid rgba(245, 247, 250, 0.1);
    border-left: 1px solid rgba(245, 247, 250, 0.1);
    transform: translateX(-50%) rotate(45deg);
}

.lang-switcher.active .lang-switcher__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(calc(-50% + var(--lang-shift))) translateY(0);
    transition-property: opacity, transform;
}

.lang-switcher__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.lang-switcher__list .lang-switcher__item {
    display: block;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: start;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.lang-switcher__list .lang-switcher__item:hover {
    color: #F5F7FA;
    background-color: rgba(245, 247, 250, 0.06);
    border-color: rgba(245, 247, 250, 0.06);
}

.lang-switcher__list .lang-switcher__item.active {
    color: #F5F7FA;
    background-color: rgba(40, 195, 244, 0.14);
    border-color: rgba(40, 195, 244, 0.35);
}

.lang-switcher__list .lang-switcher__item:focus-visible {
    outline: 2px solid #28C3F4;
    outline-offset: 2px;
}

/* ---- mobile menu (same as .mobile-menu .support-dropdown; list folds like the genres panel) ---- */

/* the menu is position:fixed without a height: let it scroll (it already has overflow-y:auto) while the list is open */
.mobile-menu:has(.lang-switcher.active) {
    max-height: 100vh;
    max-height: 100dvh;
}

.mobile-menu .lang-switcher {
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.mobile-menu .lang-switcher__title {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #5C5C5C;
}

.lang-switcher--menu .lang-switcher__code {
    display: none;
}

.lang-switcher--menu .lang-switcher__name {
    display: inline;
}

.mobile-menu .lang-switcher__panel {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    border-width: 0;
    transform: none;
    transition:
        max-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
        margin-top 320ms cubic-bezier(0.22, 1, 0.36, 1),
        padding 320ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu .lang-switcher__panel::before {
    display: none;
}

.mobile-menu .lang-switcher.active .lang-switcher__panel {
    max-height: 640px;
    margin-top: 14px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-width: 1px;
    transform: none;
    transition-property: max-height, margin-top, padding, opacity;
}

/* ---- legal pages: own <header> (gradient, centred <h1>), Arial, no site CSS — top corner of the header ---- */

header > h1 ~ .lang-switcher {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 5;
    font-size: 16px;
    line-height: 1.4;
    text-align: start;
}

[dir="rtl"] header > h1 ~ .lang-switcher {
    right: auto;
    left: 20px;
}

header > h1 ~ .lang-switcher .lang-switcher__chevron {
    border-color: rgba(255, 255, 255, 0.85);
}

header > h1 ~ .lang-switcher.active .lang-switcher__chevron {
    border-color: #fff;
}

header > h1 ~ .lang-switcher .lang-switcher__panel {
    top: calc(100% + 10px);
    left: auto;
    right: 0;
    min-width: 320px;
    padding: 10px;
    border: none;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: translateX(var(--lang-shift)) translateY(-10px);
}

[dir="rtl"] header > h1 ~ .lang-switcher .lang-switcher__panel {
    right: auto;
    left: 0;
}

header > h1 ~ .lang-switcher.active .lang-switcher__panel {
    transform: translateX(var(--lang-shift)) translateY(0);
}

header > h1 ~ .lang-switcher .lang-switcher__panel::before {
    display: none;
}

header > h1 ~ .lang-switcher .lang-switcher__list .lang-switcher__item {
    color: #333;
    font-family: inherit;
}

header > h1 ~ .lang-switcher .lang-switcher__list .lang-switcher__item:hover {
    color: #007bff;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

header > h1 ~ .lang-switcher .lang-switcher__list .lang-switcher__item.active {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.08);
    border-color: rgba(0, 123, 255, 0.35);
}

header > h1 ~ .lang-switcher .lang-switcher__list .lang-switcher__item:focus-visible,
header > h1 ~ .lang-switcher .lang-switcher__trigger:focus-visible {
    outline-color: #fff;
}

header > h1 ~ .lang-switcher .lang-switcher__list .lang-switcher__item:focus-visible {
    outline-color: #007bff;
}

@media (prefers-reduced-motion: reduce) {
    .lang-switcher__panel,
    .lang-switcher__chevron,
    .lang-switcher__item {
        transition: none;
    }
}

/* ============================== RTL (dir="rtl", e.g. ar) ============================== */
/* Bootstrap: the server swaps bootstrap.css → bootstrap.rtl.css (same 5.2.0) on RTL pages.            */
/* Below: the site's own common/components/pages/inside.css rules that are tied to left/right.          */

/* direction icons: "go" arrows (↗) and the pointer arrow of the alert modal are mirrored;
   gamepad D-pad icons (left-play.svg) name physical buttons and are NOT mirrored */
[dir="rtl"] img[src$="icons/arrow.svg"],
[dir="rtl"] img[src$="icons/arrow-white.svg"],
[dir="rtl"] img[src$="icons/curvy-arrow.svg"] {
    transform: scaleX(-1);
}

[dir="rtl"] .promo-label::after {
    transform: translateY(-50%) scaleX(-1);
}

/* days slider (plan, cabinet): JS sets the tooltip `left: x%` and a 90deg track gradient inline — the widget stays LTR
   (its rules are excluded from the generated *.rtl.css, see tools/t14/rtlcss.mjs KEEP_LTR) */
[dir="rtl"] .slider-wrapper {
    direction: ltr;
}

/* legal pages + faq: their inline <style> is mirrored by the server, but a script re-adds the same CSS at runtime
   (`const css = \`…\``, appended after this file) — mirror its few directional rules with a higher specificity */
[dir="rtl"] .main-content {
    padding-right: 0;
    padding-left: 20px;
}

[dir="rtl"] .main-content ul {
    padding-left: 0;
    padding-right: 30px;
}

[dir="rtl"] .main-content .icon {
    margin-right: 0;
    margin-left: 10px;
}

/* ---- PSNInfo (own dark page: .app card, Inter, orange accent): top corner of the card header ---- */

.app > header {
    position: relative;
}

.app > header > .lang-switcher {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    font-size: 14px;
    line-height: 1.4;
    text-align: start;
}

[dir="rtl"] .app > header > .lang-switcher {
    right: auto;
    left: 0;
}

.app > header > .lang-switcher .lang-switcher__code {
    color: var(--text, #f5f5f7);
}

.app > header > .lang-switcher .lang-switcher__chevron {
    border-color: var(--muted, #8b8ca4);
}

.app > header > .lang-switcher.active .lang-switcher__chevron {
    border-color: var(--accent, #ff6b00);
}

.app > header > .lang-switcher .lang-switcher__panel {
    top: calc(100% + 10px);
    left: auto;
    right: 0;
    min-width: 340px;
    padding: 10px;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: 18px;
    background: var(--card, #111324);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    transform: translateX(var(--lang-shift)) translateY(-10px);
}

[dir="rtl"] .app > header > .lang-switcher .lang-switcher__panel {
    right: auto;
    left: 0;
}

.app > header > .lang-switcher.active .lang-switcher__panel {
    transform: translateX(var(--lang-shift)) translateY(0);
}

.app > header > .lang-switcher .lang-switcher__panel::before {
    display: none;
}

.app > header > .lang-switcher .lang-switcher__list .lang-switcher__item {
    color: var(--muted, #8b8ca4);
    font-family: inherit;
}

.app > header > .lang-switcher .lang-switcher__list .lang-switcher__item:hover {
    color: var(--text, #f5f5f7);
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--border, rgba(255, 255, 255, 0.08));
}

.app > header > .lang-switcher .lang-switcher__list .lang-switcher__item.active {
    color: var(--text, #f5f5f7);
    background-color: rgba(255, 107, 0, 0.12);
    border-color: rgba(255, 107, 0, 0.4);
}

.app > header > .lang-switcher .lang-switcher__list .lang-switcher__item:focus-visible,
.app > header > .lang-switcher .lang-switcher__trigger:focus-visible {
    outline-color: var(--accent, #ff6b00);
}


/* ============================== U4 — mobile version (docs/PRODUCT.md item 16) ============================== */
/* Deviation from 1:1 (DEV-U4, docs/registry/U4.md): the original zeroes .container side padding at <=576/<=768px
   (pages.css), so on phones titles, news cards, banners and ribbons touch the screen edges; its mobile header scrolls
   away; the genre filter collapses to a 48px icon square. Everything below is direction-agnostic (symmetric values or
   logical properties) — this file is served as is on RTL pages, so no [dir=rtl] twins are needed. */
/* ---- 1. side gutters ---- */
@media (max-width: 768px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .catalog-intro,
    .catalog-games-section {
        padding-left: 0;
        padding-right: 0;
    }

    #news h1.ms-3 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* game pages (inside.css): hero + info cards are direct children of <main>, outside any .container */
    .inside-hero {
        width: auto;
        margin-left: 16px;
        margin-right: 16px;
    }

    .inside-block {
        margin-left: 16px;
        margin-right: 16px;
    }

    .inside-block,
    .inside-hero-content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .game-play-block {
        padding-left: 0;
        padding-right: 0;
    }

    .same-games {
        padding-left: 0;
        padding-right: 0;
    }

    /* horizontal ribbons: scroll from screen edge to screen edge, the first card / tab rests on the 16px gutter */
    #games-container.new-games__list,
    .inside-game__list,
    .os-list,
    .my-product-switch {
        width: auto;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        max-width: none;
        scroll-padding-inline: 16px;
    }

    .same-games .new-games__list {
        width: auto !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        scroll-padding-inline: 16px;
    }

    /* game page «Additional features»: ribbon inside the .inside-block card → from card edge to card edge */
    .more-feature__list {
        width: auto;
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
        scroll-padding-inline: 24px;
    }

    /* /my/: «Console with disk directory | Cloud of digital games» wrapped onto two lines at 358px → one scrollable row */
    .my-product-switch {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .my-product-switch::-webkit-scrollbar {
        display: none;
    }

    .my-product-switch .my-switch-btn {
        flex: 0 0 auto;
    }

    /* /plan/ «Full HD stream»: the slider has a fixed 334px width → wider than its card below ~400px */
    .full-hd__left,
    .full-hd__slider {
        max-width: 100%;
    }

    .full-hd__slider {
        height: auto;
        aspect-ratio: 334 / 218;
    }

    /* how-to-connect: tab rows are swiper containers without overflow clipping, divider lines have a fixed 580px width */
    .connection__control-row,
    .control-settings__controls {
        overflow: hidden;
    }

    .connection__content-item-line {
        width: 100%;
        max-width: 580px;
    }

    /* faq + legal pages (own layout: blue <header>, white .container card): card inset, content-box 100% widths overflowed */
    body > header ~ .container {
        margin-left: 16px;
        margin-right: 16px;
    }

    body > header ~ .container .toc,
    body > header ~ .container .sidebar {
        box-sizing: border-box;
        max-width: 100%;
    }
}

/* PSNInfo (own dark page, .app card): 12px → 16px */
@media (max-width: 640px) {
    body:has(> .app) {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ---- 2. fixed header ---- */
@media (max-width: 1199.98px) {
    :root {
        --u4-header-h: 64px;
    }

    html {
        scroll-padding-top: calc(var(--u4-header-h) + 12px);
    }

    body > .container:has(> header > nav) {
        margin-top: 0 !important;
        padding-top: var(--u4-header-h);
    }

    body > .container:has(> header > nav):not(:has(> main)) {
        z-index: 990;
    }

    body > .container > header:has(> nav) {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 990;
        display: flex;
        align-items: center;
        height: var(--u4-header-h);
        padding-left: inherit;
        padding-right: inherit;
        background-color: rgba(22, 22, 22, 0.86);
        -webkit-backdrop-filter: blur(24px);
        backdrop-filter: blur(24px);
        border-bottom: 1px solid rgba(245, 247, 250, 0.06);
    }

    body > .container > header > nav {
        flex: 1 1 auto;
        min-width: 0;
    }

    body > .container > header > .header-nav {
        padding: 0;
    }

    body > .container > header .burger-btn {
        padding-top: 0;
        padding-bottom: 0;
        padding-inline-end: 0;
    }

    body > .container > header .burger {
        margin-inline-end: -14px;
    }
}

/* how-to-connect, store/how-to-use: the switcher sits alone between the logo and an empty .d-xl-none block → to the end */
@media (max-width: 1199.98px) {
    body > .container > header > nav > .lang-switcher {
        margin-inline-start: auto;
        margin-inline-end: -8px;
    }
}

/* ---- 3. home «Game catalog»: genre filter on mobile = full-width bar (icon · GENRES / current genre · chevron) ----
   The original collapses it to a 48px icon square in the middle of a wide strip (desktop side-rail logic) and shows the
   bar only while the list is open (recon/screens/states/home__genres__open__mobile.png). On mobile the bar is now shown
   in both states; open/close, the chevron turn and the list itself are unchanged. */
@media (max-width: 768px) {
    .catalog-games:not(.is-aside-expanded) .catalog-games__aside {
        align-items: stretch;
    }

    .catalog-games:not(.is-aside-expanded) .catalog-games__filter-sticky {
        display: block;
    }

    .catalog-games:not(.is-aside-expanded) .catalog-games__filter-card {
        width: 100%;
        overflow: hidden;
    }

    .catalog-games:not(.is-aside-expanded) .catalog-games__filter-toggle,
    .catalog-games.is-aside-expanded .catalog-games__filter-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        height: 56px;
        min-height: 56px;
        padding: 8px 16px;
        text-align: start;
    }

    .catalog-games:not(.is-aside-expanded) .catalog-games__filter-toggle-icon {
        position: static;
        transform: none;
        flex-shrink: 0;
    }

    .catalog-games:not(.is-aside-expanded) .catalog-games__filter-toggle-icon svg {
        width: 20px;
        height: 20px;
    }

    .catalog-games.is-filter-active:not(.is-aside-expanded) .catalog-games__filter-toggle-icon::after {
        display: none;
    }

    .catalog-games:not(.is-aside-expanded) .catalog-games__filter-toggle-body,
    .catalog-games.is-aside-expanded .catalog-games__filter-toggle-body {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex: 1;
        min-width: 0;
    }

    .catalog-games:not(.is-aside-expanded) .catalog-games__filter-toggle-text,
    .catalog-games.is-aside-expanded .catalog-games__filter-toggle-text {
        flex: 1;
        max-width: none;
        opacity: 1;
        pointer-events: auto;
    }

    .catalog-games:not(.is-aside-expanded) .catalog-games__filter-chevron {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    /* the list panel unfolds with max-height; with overflow:hidden it is a scroll container that scrollIntoView / focus can
       scroll while it is still unfolding — it then jumps back by an item and a tap lands on the neighbouring genre.
       (Desktop/origin hides this behind the 0.56s widening of the bar, which now no longer happens on mobile.) */
    .catalog-games__filters-panel {
        overflow: hidden;
        overflow: clip;
    }
}

/* ===================================================================================================================
   F2 — game page hero (inside.css) below 1200px. Origin: .inside-hero has a FIXED height (640px) and .inside-hero-content is
   absolutely positioned 70px above its bottom, so a long hero text (GTA VI, Wolverine, Death Stranding 2, Spider-Man 2 …, worse
   in de/ru) grows UPWARDS past the top of the card and of the page: on phones the game title and the first lines are cut off
   (360/390px: 20–550px; 768px: up to 190px; 1024px: DS2 up to 50px). Here the card grows with its content instead: min-height =
   the origin height, the content stays at the bottom with the same 70px — short texts look exactly as before.
   Symmetric rules (no left/right) → nothing to mirror for RTL.
   =================================================================================================================== */
@media (max-width: 1199.98px) {
    .inside-hero {
        height: auto;
        min-height: 640px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .inside-hero .inside-hero-content {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-bottom: 70px;
    }
}

/* /how-to-connect/ — Windows-only install page (own clone markup on the origin .connection__* classes) */
.install-win__lead{color:#9a9a9a;font-size:18px}
.install-win__muted{color:#8a8a8a;font-size:14px}
.install-win__features{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.install-win__feature{background-color:rgba(33,32,32,.48);border-radius:24px;padding:24px 28px;display:flex;flex-direction:column;gap:8px;border:1px solid transparent;transition:border-color var(--transition)}
.install-win__feature:hover{border-color:#28C3F4}
.install-win__feature b{color:#fff;font-size:18px}
.install-win__feature span{color:#9a9a9a;font-size:15px}
@media (max-width:767px){.install-win__features{grid-template-columns:1fr}}

/* a.gradient-btn: link :hover colour (bootstrap) made the label blend into the gradient — keep it white everywhere */
a.gradient-btn:hover,a.gradient-btn:focus,a.gradient-btn:active{color:#fff}

/* step circles: bootstrap d-sm-block overrode display:flex → digit stuck top-left; centre it */
@media (min-width:576px){.connection__content-item-circle{display:flex!important;width:32px;height:32px;line-height:1;font-weight:600}}

.install-win__quick{background-color:rgba(33,32,32,.48);border:1px solid rgba(40,195,244,.55);border-radius:24px;padding:22px 24px;display:flex;flex-direction:column;gap:16px;text-align:start;box-shadow:0 0 40px rgba(40,195,244,.08)}
.install-win__quick-head{display:flex;flex-direction:column;gap:6px}
.install-win__quick-title{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.install-win__quick-title b{color:#fff;font-size:20px}
.install-win__quick-head>span{color:#a5a5a5;font-size:15px}
.install-win__badge{font-size:12px;color:#28C3F4;border:1px solid rgba(40,195,244,.4);background:rgba(40,195,244,.08);border-radius:999px;padding:3px 10px;white-space:nowrap}
.install-win__quick-row{display:flex;gap:12px;align-items:stretch}
.install-win__cmd{flex:1;min-width:0;display:block;background:#0b0b0f;color:#e6e6e6;border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:14px 16px;font-family:Consolas,Menlo,monospace;font-size:14px;white-space:nowrap;overflow-x:auto;cursor:text;user-select:all;direction:ltr;unicode-bidi:embed;text-align:left}
.install-win__copy{flex:0 0 auto;padding:0 26px;border:0;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;min-height:50px;transition:filter .2s}
.install-win__copy.is-copied{background:#1fae6a!important;background-image:none!important;color:#fff}
.install-win__steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.install-win__step{display:flex;gap:10px;align-items:flex-start;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:12px 14px;transition:border-color .3s,background .3s}
.install-win__step>i{flex:0 0 26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:13px;font-weight:700;background:rgba(255,255,255,.08);color:#ccc}
.install-win__step>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.install-win__step b{color:#fff;font-size:14px;font-weight:600}
.install-win__step span{display:flex;flex-wrap:wrap;align-items:center;gap:4px;color:#888;font-size:13px;direction:ltr;justify-content:flex-start}
.install-win__step kbd{display:inline-block;background:#1c1c22;color:#fff;border:1px solid #3a3a44;border-bottom-width:3px;border-radius:7px;padding:2px 8px;font-family:inherit;font-size:12px;line-height:1.5;box-shadow:none}
.install-win__step.is-active{border-color:#28C3F4;background:rgba(40,195,244,.08)}
.install-win__step.is-active>i{background:#28C3F4;color:#000}
.install-win__step.is-done>i{background:#1fae6a;color:#fff}
.install-win__quick.is-copied .install-win__step.is-active{animation:iwpulse 1.6s ease-in-out 3}
@keyframes iwpulse{50%{box-shadow:0 0 0 4px rgba(40,195,244,.25)}}
.install-win__note{font-size:13px;color:#8a8a8a}
[dir=rtl] .install-win__step span{direction:ltr;justify-content:flex-end}
@media (max-width:767px){.install-win__steps{grid-template-columns:1fr}.install-win__step{align-items:center}.install-win__step>div{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;flex:1;gap:6px 10px}}
@media (max-width:575px){.install-win__quick{padding:18px 16px}.install-win__quick-row{flex-direction:column}.install-win__copy{padding:12px 24px}}

/* «Download» (desktop client) in the header for signed-in users — i18n.js headerDownload() */
.header-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: 100px;
    background: linear-gradient(90deg, #431BE3 0%, #26CBF5 100%);
    box-shadow: 0 6px 24px rgba(67, 27, 227, 0.35);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.header-download:hover,
.header-download:focus-visible {
    background: linear-gradient(90deg, #3510C6 0%, #11A7CD 100%);
    box-shadow: 0 8px 28px rgba(38, 203, 245, 0.35);
    color: #fff;
    transform: translateY(-1px);
}
.header-download img {
    width: 20px;
    height: 17px;
    flex: none;
}
.header-download--icon {
    width: 44px;
    padding: 0;
    justify-content: center;
}
