.agent-guide {
  --agent-ink: #191b20;
  --agent-muted: #4e5560;
  --agent-line: #dfdce0;
  --agent-accent: #b70e2b;
  --agent-paper: #f8f5f1;
  color: var(--agent-ink);
  background: #fff;
  font: 400 1rem/1.7 var(--font-secondary, system-ui), sans-serif;
  text-align: start;
  overflow-wrap: break-word;
}

.agent-guide *, .agent-guide *::before, .agent-guide *::after { box-sizing: border-box; }
.agent-frame { width: min(100%, 1180px); margin-inline: auto; padding-inline: clamp(18px, 4vw, 44px); }
.agent-reading { max-width: 870px; }
.agent-hero { background: var(--agent-paper); border-bottom: 1px solid var(--agent-line); padding-block: clamp(32px, 5vw, 64px); }
.agent-guide :is(h1, h2, h3) { margin: 0; font-family: var(--font-primary, system-ui), sans-serif; font-weight: 700; color: var(--agent-ink); text-wrap: balance; }
.agent-guide h1 { max-width: 22ch; font-size: clamp(2rem, 4.5vw, 3.3rem); line-height: 1.15; letter-spacing: -.025em; }
.agent-guide h2 { margin-bottom: 16px; font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.3; letter-spacing: -.012em; }
.agent-guide h3 { font-size: 1rem; line-height: 1.5; }
.agent-guide :is(p, ol, ul, dl) { margin-block: 0 18px; }
.agent-deck { margin-top: 20px !important; max-width: 69ch; color: var(--agent-muted); font-size: clamp(1rem, 2vw, 1.16rem); }
.agent-date { color: var(--agent-muted); font-size: .875rem; }
.agent-guide a { color: var(--agent-accent); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.agent-guide a:hover { color: #871022; }
.agent-guide a:focus-visible { outline: 2px solid #972237; outline-offset: 4px; border-radius: 2px; }
.agent-guide ::selection { color: #191b20; background: #ffe3e9; }
.agent-resources { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.agent-resources a { min-height: 44px; display: inline-block; padding-block: 8px; }
.agent-guide .agent-button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid var(--agent-accent); background: var(--agent-accent); color: #fff; border-radius: 6px; font-weight: 600; text-decoration: none; text-align: center; line-height: 1.45; }
.agent-guide .agent-button:hover { background: #871022; border-color: #871022; }
.agent-layout { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 760px); gap: 52px; align-items: start; padding-block: clamp(30px, 5vw, 58px); }
.agent-contents { position: sticky; top: 108px; color: var(--agent-muted); font-size: .875rem; line-height: 1.55; }
.agent-contents strong { display: block; color: var(--agent-ink); margin-bottom: 10px; font-weight: 600; }
.agent-contents ul { list-style: none; padding: 0; margin: 0; }
.agent-contents li + li { margin-top: 3px; }
.agent-contents a { display: block; padding-block: 8px; }
.agent-body { min-width: 0; max-width: 75ch; }
.agent-body section + section { margin-top: clamp(36px, 5vw, 56px); }
.agent-body section { scroll-margin-top: 110px; }
.agent-workflow { padding-inline-start: 1.65em; }
.agent-workflow li { padding-inline-start: .25em; }
.agent-workflow li + li { margin-top: 12px; }
.agent-workflow li::marker { color: var(--agent-accent); font-variant-numeric: tabular-nums; font-weight: 600; }
.agent-request { margin-block: 22px; min-width: 0; }
.agent-request h3 { margin-bottom: 8px; }
.agent-request pre { max-width: 100%; padding: 15px 17px; margin: 0; overflow-x: auto; background: var(--agent-paper); border: 1px solid var(--agent-line); border-radius: 6px; color: var(--agent-ink); text-align: left; direction: ltr; unicode-bidi: isolate; white-space: pre; font: 400 .875rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; scrollbar-color: #a9a2a4 var(--agent-paper); }
.agent-request code { font: inherit; }
.agent-definitions { margin: 0; }
.agent-definitions > div { padding-block: 18px; border-bottom: 1px solid var(--agent-line); }
.agent-definitions > div:first-child { padding-top: 0; }
.agent-definitions dt { font-weight: 700; margin-bottom: 5px; }
.agent-definitions dd { margin: 0; color: var(--agent-muted); }
.agent-url-label { margin-bottom: 5px !important; color: var(--agent-muted); font-size: .875rem; }
.agent-citation a { display: inline-block; max-width: 100%; text-align: left; overflow-wrap: anywhere; unicode-bidi: isolate; font-size: .9rem; }
.agent-back { padding-top: 30px; margin-top: 32px !important; border-top: 1px solid var(--agent-line); }
.agent-guide:lang(th) :is(h1, h2, h3), .agent-guide:lang(ar) :is(h1, h2, h3), .agent-guide:lang(ur) :is(h1, h2, h3), .agent-guide:lang(fa) :is(h1, h2, h3), .agent-guide:lang(hi) :is(h1, h2, h3), .agent-guide:lang(bn) :is(h1, h2, h3) { letter-spacing: normal; line-height: 1.5; }
.agent-guide:lang(zh-Hans) h1 { max-width: 19em; line-height: 1.35; letter-spacing: normal; }

@media (max-width: 1000px) {
  .agent-layout { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 760px) {
  .agent-layout { display: block; }
  .agent-contents { position: static; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--agent-line); }
  .agent-contents ul { display: flex; flex-wrap: wrap; gap: 2px 22px; }
  .agent-contents li + li { margin-top: 0; }
  .agent-contents a { min-height: 44px; padding-block: 10px; }
  .agent-guide h1 { max-width: none; }
  .agent-resources { gap: 8px 20px; }
  .agent-resources .agent-button { flex-basis: 100%; }
  .agent-body section { scroll-margin-top: 96px; }
  .agent-request pre { font-size: .8125rem; padding: 13px 12px; }
}
/* Localized trust pages extend the established reading layout. */
.trust-page .agent-body h2 { scroll-margin-top: 110px; }
.trust-page .trust-note { font-size: .875rem; color: var(--agent-muted); }
.trust-projects { margin: 0; }
.trust-projects > div { padding-block: 14px; border-bottom: 1px solid var(--agent-line); }
.trust-projects dt { font-weight: 600; }
.trust-projects dd { margin: 3px 0 0; color: var(--agent-muted); }
.trust-projects a { display: inline-block; padding-block: 6px; }
.trust-page .trust-funding { margin-top: 24px; }
.trust-contacts { list-style: none; padding: 0; }
.trust-contacts a { display: inline-block; min-height: 44px; padding-block: 8px; overflow-wrap: anywhere; }
.trust-page .evidence-entry { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--agent-line); }
.trust-page .evidence-entry h3 { margin-bottom: 9px; font-size: 1.2rem; }
.trust-page .evidence-entry .agent-resources { margin-top: 8px; }
.trust-proof { margin: 20px 0; border: 1px solid var(--agent-line); border-radius: 8px; overflow: hidden; }
.trust-proof a { display: block; background: var(--agent-paper); }
.trust-proof img { display: block; width: 100%; height: auto; }
.trust-proof figcaption { padding: 14px 16px; color: var(--agent-muted); font-size: .875rem; line-height: 1.65; }
@media (prefers-reduced-motion: no-preference) {
  .trust-page a { transition: color .15s ease-out; }
}
/* Content-sized mobile layouts for migrated exchange sections.
   Keep this stylesheet after page-specific layout styles in the final bundle. */

/* Store artwork must remain complete when the desktop tracks become narrower. */
#zdBQW_ :is(#zf6wMV, #zK3930) .image__image { object-fit: contain; }

@media (max-width: 1024px) {
  /* Registration and copying shared a Builder grid row in review heroes.
     A content-sized column gives each control its own row in every language. */
  :is(#ai-Q84kas, #z2agGR, #zlayw3, #zengiW, #zBxWdS) > .block-layout {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: min(100%, 640px);
    max-width: 640px;
    height: auto;
    min-height: 0;
    padding: 28px 20px 32px;
  }

  :is(#ai-Q84kas, #z2agGR, #zlayw3, #zengiW, #zBxWdS) > .block-layout > .layout-element {
    grid-area: auto;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
  }

  :is(#ai-Q84kas, #z2agGR, #zlayw3, #zengiW, #zBxWdS) > .block-layout > :nth-child(1) { order: 1; }
  :is(#ai-Q84kas, #z2agGR, #zlayw3, #zengiW, #zBxWdS) > .block-layout > :nth-child(2) { order: 2; }
  :is(#ai-Q84kas, #z2agGR, #zlayw3, #zengiW, #zBxWdS) > .block-layout > :nth-child(3) {
    order: 3;
    align-self: center;
    width: min(100%, 360px);
  }
  :is(#ai-Q84kas, #z2agGR, #zlayw3, #zengiW, #zBxWdS) > .block-layout > :nth-child(4) { order: 5; }
  :is(#ai-Q84kas, #z2agGR, #zlayw3, #zengiW, #zBxWdS) > .block-layout > :nth-child(5) { order: 6; }
  :is(#ai-Q84kas, #z2agGR, #zlayw3, #zengiW, #zBxWdS) > .block-layout > :nth-child(6) { order: 4; }

  :is(#ai-Q84kas, #z2agGR, #zlayw3, #zengiW, #zBxWdS) > .block-layout > .layout-element > a.grid-button {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 48px;
    padding: 12px 18px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
  }

  /* Imported layouts assign each image an increasing z-index. Use local layers
     so every card background stays behind its text and actions. */
  :is(#zqUAco, #z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout {
    isolation: isolate;
  }

  :is(#zqUAco, #z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > .layout-element {
    z-index: 1;
  }

  :is(#zqUAco, #z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > .layout-element:has(> .image-wrapper) {
    z-index: 0;
  }

  /* Binance app links form a separate row after the illustration. */
  #ai-HOSlxQ > .block-layout {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows:
      [app-title] auto [app-lead] auto [app-image] auto
      [app-stores] auto [app-code] auto [app-note] auto;
    gap: 20px 12px;
    width: min(100%, 640px);
    max-width: 640px;
    height: auto;
    min-height: 0;
    padding: 28px 16px 32px;
  }

  #ai-HOSlxQ > .block-layout > .layout-element {
    grid-area: auto / 1 / auto / -1;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
  }

  #ai-HOSlxQ > .block-layout > :has(> #ai-K8BqLK) { grid-row: app-title; }
  #ai-HOSlxQ > .block-layout > :has(> #ai-nohuMB) { grid-row: app-lead; }
  #ai-HOSlxQ > .block-layout > :has(> #ai-i9HEpj) { grid-row: app-image; }
  #ai-HOSlxQ > .block-layout > :has(> #zHb-fr) { grid-area: app-stores / 1; }
  #ai-HOSlxQ > .block-layout > :has(> #zpFeaY) { grid-area: app-stores / 2; }
  #ai-HOSlxQ > .block-layout > :has(> #zIirgA) { grid-row: app-code; }
  #ai-HOSlxQ > .block-layout > :has(> #zTH_Ws) { grid-row: app-note; }

  #ai-HOSlxQ .image-wrapper,
  #ai-HOSlxQ .image-wrapper .image {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  #ai-HOSlxQ .image-wrapper .image__image {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  #ai-HOSlxQ .image-wrapper--desktop { display: none; }
  #ai-HOSlxQ .image-wrapper--mobile { display: block; }
  #ai-HOSlxQ #ai-i9HEpj { max-width: 480px; justify-self: center; }
  #ai-HOSlxQ > .block-layout > :has(> :is(#zHb-fr, #zpFeaY)) {
    align-self: center;
    justify-self: center;
    max-width: 220px;
  }
  #ai-HOSlxQ :is(#zHb-fr, #zpFeaY) a.image { min-height: 44px; }
  #ai-HOSlxQ :is(#zHb-fr, #zpFeaY) .image__image { border-radius: 0; }

  /* Bybit's app illustration and store badges need distinct intrinsic rows.
     The old auto-placement still inherited image height limits and crop rules. */
  #zdBQW_ > .block-layout {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows:
      [bybit-app-title] auto [bybit-app-lead] auto [bybit-app-image] auto
      [bybit-app-stores] auto [bybit-app-code] auto [bybit-app-note] auto;
    gap: 20px 12px;
    width: min(100%, 640px);
    max-width: 640px;
    height: auto;
    min-height: 0;
    padding: 28px 16px 32px;
  }

  #zdBQW_ > .block-layout > .layout-element {
    grid-area: auto / 1 / auto / -1;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
  }

  #zdBQW_ > .block-layout > :has(> #zwkSez) { grid-row: bybit-app-title; }
  #zdBQW_ > .block-layout > :has(> #zkTUXV) { grid-row: bybit-app-lead; }
  #zdBQW_ > .block-layout > :has(> #ztTvt_) { grid-row: bybit-app-image; }
  #zdBQW_ > .block-layout > :has(> #zf6wMV) { grid-area: bybit-app-stores / 1; }
  #zdBQW_ > .block-layout > :has(> #zK3930) { grid-area: bybit-app-stores / 2; }
  #zdBQW_ > .block-layout > :has(> #zinqV5) { grid-row: bybit-app-code; }
  #zdBQW_ > .block-layout > :has(> #zhUglI) { grid-row: bybit-app-note; }

  #zdBQW_ .image-wrapper,
  #zdBQW_ .image-wrapper .image {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  #zdBQW_ .image-wrapper .image__image {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  #zdBQW_ .image-wrapper--desktop { display: none; }
  #zdBQW_ .image-wrapper--mobile { display: block; }
  #zdBQW_ #ztTvt_ { max-width: 480px; justify-self: center; }

  #zdBQW_ > .block-layout > :has(> :is(#zf6wMV, #zK3930)) {
    align-self: center;
    justify-self: center;
    max-width: 220px;
  }

  #zdBQW_ :is(#zf6wMV, #zK3930) {
    overflow: visible;
    border-radius: 0;
  }

  #zdBQW_ :is(#zf6wMV, #zK3930) a.image-wrapper--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  #zdBQW_ :is(#zf6wMV, #zK3930) a.zh-app-store {
    flex-direction: column;
    min-height: 48px;
  }

  #zdBQW_ :is(#zf6wMV, #zK3930) .image__image {
    width: auto;
    max-width: 100%;
    height: clamp(40px, 12vw, 56px);
    border-radius: 0;
  }

  /* Each homepage logo background spans its complete, intrinsic-height action
     area. The reserved last track supplies bottom padding even when labels wrap. */
  #zqUAco > .block-layout {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows:
      [section-title] auto [section-lead] auto
      repeat(5,
        [exchange-title] auto
        [exchange-visual] minmax(clamp(132px, 32vw, 220px), auto)
        [exchange-action] auto [exchange-review] auto
        [exchange-padding] 16px [exchange-details] auto);
    gap: 12px;
    width: min(100%, 640px);
    max-width: 640px;
    height: auto;
    min-height: 0;
    padding: 28px 16px;
  }

  #zqUAco > .block-layout > .layout-element {
    grid-area: auto / 1 / auto / -1;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
  }

  #zqUAco > .block-layout > :has(> #zJlyWb) { grid-row: section-title; }
  #zqUAco > .block-layout > :has(> #zPWA1V) { grid-row: section-lead; margin-bottom: 8px; }
  #zqUAco > .block-layout > :has(> :is(#zRnOMs, #zFSN0w, #zJObQ7, #zXoNBM, #zzx3N3)) { --exchange-number: 1; --exchange-background: #13171c; }
  #zqUAco > .block-layout > :has(> :is(#zyJele, #zgQ5BF, #ziqOLj, #zXClDD, #z8z-rC)) { --exchange-number: 2; --exchange-background: #1f1f1f; }
  #zqUAco > .block-layout > :has(> :is(#zPEoXC, #zaX_Ai, #zfe3Qi, #zUUT9J, #zrGzSh)) { --exchange-number: 3; --exchange-background: #2954fe; }
  #zqUAco > .block-layout > :has(> :is(#zphyf2, #zXf8ah, #zrCC5Z, #zFqyyA, #zhfF4F)) { --exchange-number: 4; --exchange-background: #000; }
  #zqUAco > .block-layout > :has(> :is(#zeobSg, #zME360, #zGDBbK, #zt3tGm, #zHjMPx)) { --exchange-number: 5; --exchange-background: #fc712c; }

  #zqUAco > .block-layout > .layout-element:has(> .text-box h3) {
    grid-row: exchange-title var(--exchange-number);
    text-align: center;
  }
  #zqUAco > .block-layout > .layout-element:has(> .text-box ul) {
    grid-row: exchange-details var(--exchange-number);
    margin-bottom: 24px;
  }
  #zqUAco > .block-layout > .layout-element:has(> .image-wrapper) {
    grid-row: exchange-visual var(--exchange-number) / exchange-details var(--exchange-number);
    align-self: stretch;
  }
  #zqUAco .image-wrapper {
    height: 100%;
    min-height: 0;
    max-height: none;
    border-radius: 20px;
    background: var(--exchange-background);
  }
  #zqUAco .image-wrapper .image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
  }
  #zqUAco .image-wrapper .image__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
  #zqUAco .image-wrapper--desktop { display: none; }
  #zqUAco .image-wrapper--mobile { display: block; }

  #zqUAco > .block-layout > .layout-element:has(> a.grid-button) {
    grid-column: 1 / -1;
    width: auto;
    margin-inline: 16px;
    align-self: stretch;
    z-index: 2;
  }
  #zqUAco > .block-layout > .layout-element:has(> a.grid-button[rel~="sponsored"]) {
    grid-row: exchange-action var(--exchange-number);
  }
  #zqUAco > .block-layout > .layout-element:has(> a.grid-button:not([rel~="sponsored"])) {
    grid-row: exchange-review var(--exchange-number);
  }
  #zqUAco > .block-layout > .layout-element:has(> .grid-embed:empty) { display: none; }

  /* The four-card alternatives sections share the same source structure in
     every locale. Keep each background behind title, copy and both buttons. */
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows:
      [alternatives-kicker] auto [alternatives-title] auto
      repeat(4,
        [alternative-start] 16px [alternative-title] auto
        [alternative-copy] auto [alternative-action] auto
        [alternative-review] auto [alternative-padding] 16px
        [alternative-end] 16px)
      [alternatives-code] auto [alternatives-sources] auto;
    gap: 12px;
    width: min(100%, 640px);
    max-width: 640px;
    height: auto;
    min-height: 0;
    padding: 28px 16px;
  }

  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > .layout-element {
    grid-area: auto / 1 / auto / -1;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
  }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > :nth-child(1) { grid-row: alternatives-title; }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > :nth-child(5) { grid-row: alternatives-kicker; }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > :is(:nth-child(2), :nth-child(3), :nth-child(4), :nth-child(6), :nth-child(7)) { --alternative-number: 1; }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > :nth-child(n+8):nth-child(-n+12) { --alternative-number: 2; }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > :nth-child(n+13):nth-child(-n+17) { --alternative-number: 3; }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > :nth-child(n+18):nth-child(-n+22) { --alternative-number: 4; }

  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > :has(> .image-wrapper) {
    grid-row: alternative-start var(--alternative-number) / alternative-end var(--alternative-number);
    align-self: stretch;
  }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) .image-wrapper {
    height: 100%;
    min-height: 0;
    max-height: none;
  }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) .image-wrapper .image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
  }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) .image-wrapper .image__image { width: 100%; height: 100%; object-fit: cover; }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) .image-wrapper--desktop { display: none; }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) .image-wrapper--mobile { display: block; }

  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > :is(:nth-child(3), :nth-child(9), :nth-child(14), :nth-child(19)) {
    grid-row: alternative-title var(--alternative-number);
    margin-inline: 16px;
    width: auto;
    text-align: center;
  }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > :is(:nth-child(4), :nth-child(10), :nth-child(15), :nth-child(20)) {
    grid-row: alternative-copy var(--alternative-number);
    margin-inline: 16px;
    width: auto;
    text-align: center;
  }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > :has(> a.grid-button) {
    grid-column: 1 / -1;
    grid-row: alternative-action var(--alternative-number);
    margin-inline: 16px;
    width: auto;
    z-index: 2;
  }
  /* Keep the full-width review below the offer on narrow phones. This must
     outrank the shared :has(> a.grid-button) action placement above. */
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > .layout-element:has(> a.grid-button:not([rel~="sponsored"])) { grid-row: alternative-review var(--alternative-number); }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > .alternatives-referral-row { grid-area: alternatives-code / 1 / auto / -1; margin: 0; }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > :nth-child(24) { grid-row: alternatives-sources; }

  :is(#zqUAco, #z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > .layout-element > a.grid-button {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 48px;
    align-self: stretch;
    justify-self: stretch;
    padding: 10px 12px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    line-height: 1.35;
  }
}

@media (360px <= width <= 1024px) {
  #zqUAco > .block-layout > .layout-element:has(> a.grid-button[rel~="sponsored"]) {
    grid-column: 1;
    margin-right: 0;
  }
  #zqUAco > .block-layout > .layout-element:has(> a.grid-button:not([rel~="sponsored"])) {
    grid-row: exchange-action var(--exchange-number);
    grid-column: 2;
    margin-left: 0;
  }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > .layout-element:has(> a.grid-button[rel~="sponsored"]) {
    grid-column: 1;
    margin-right: 0;
  }
  :is(#z4L5YW, #zFW6QJ, #zNqZyl, #zKD44p, #zMPvH8) > .block-layout > .layout-element:has(> a.grid-button:not([rel~="sponsored"])) {
    grid-row: alternative-action var(--alternative-number);
    grid-column: 2;
    margin-left: 0;
  }
}

@media (max-width: 359px) {
  #zqUAco .image-wrapper .image__image { object-fit: contain; }
}

@media (max-width: 600px) {
  /* Preserve the localized field label already present in every AI-tools cell.
     The header remains available to assistive technology without a narrow column. */
  .exchange-comparison table {
    display: block;
    border: 0;
    background: transparent;
    font-size: 1rem;
  }
  .exchange-comparison thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .exchange-comparison tbody { display: grid; gap: 16px; }
  .exchange-comparison tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 18px;
  }
  .exchange-comparison table tbody th,
  .exchange-comparison table tbody td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .exchange-comparison table tbody th[scope="row"],
  .exchange-comparison tbody td:first-child {
    width: auto;
    min-width: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #dadce0;
    font-size: 1.1rem;
    font-weight: 600;
  }
  .exchange-comparison .comparison-label {
    display: block;
    margin-bottom: 3px;
    color: #5e6268;
    font-size: .875rem;
    font-weight: 500;
  }
}
/* Arabic pilot. Loaded after page layout/responsive CSS on RTL pages only. */
html[dir="rtl"] {
  --font-primary: 'Noto Sans Arabic', Arial, sans-serif;
  --font-secondary: 'Noto Sans Arabic', Arial, sans-serif;
}
html[dir="rtl"] .page {
  --font-primary: 'Noto Sans Arabic', Arial, sans-serif;
  --font-secondary: 'Noto Sans Arabic', Arial, sans-serif;
  --body-line-height: 1.8em;
  --body-large-line-height: 1.75em;
  --body-small-line-height: 1.7em;
  font-family: var(--font-secondary);
}
html[dir="rtl"] :is(h1,h2,h3,h4,h5,h6,p,a,button,li,th,td) {
  letter-spacing: normal;
  word-break: normal;
  hyphens: none;
}
html[dir="rtl"] .text-box :is(p,li) { line-height: 1.8; }
html[dir="rtl"] .text-box :is(h1,h2,h3,h4) { line-height: 1.5; }
html[dir="rtl"] :is(.grid-button,.copy-btn,.copy-container,.guide-copy,.cookie-notice,.cookie-settings) { font-family: var(--font-secondary); }
html[dir="rtl"] :is(.grid-button,.guide-button,.copy-btn) { line-height: 1.6; }
html[dir="rtl"] .guide-button:has(bdi) { gap: .35em; }
html[dir="rtl"] .layout-element > a.grid-button { height: auto; min-height: 48px; padding-block: 10px; white-space: normal; overflow-wrap: break-word; }
/* Match the resting 56px copy widget beside registration in all review heroes.
   Keep intrinsic height so long labels and copy feedback can still grow. */
html[dir="rtl"] :is(#ai-Q84kas,#z2agGR,#zlayw3,#zengiW,#zBxWdS) > .block-layout > .layout-element > a.grid-button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: var(--ar-hero-control-height, 56px);
  padding: 10px 18px;
  line-height: 1.25;
}
html[dir="rtl"] #zqUAco .layout-element > a.grid-button { height: auto; min-height: 52px; padding: 8px 10px; font-size: 18px; line-height: 1.6; }
html[dir="rtl"] section:not(:is(#ai-Q84kas,#z2agGR,#zlayw3,#zengiW,#zBxWdS)) > .block-layout > .layout-element:has(> .text-box > h2) { margin-block-end: 16px; }
html[dir="rtl"] bdi { unicode-bidi: isolate; }
html[dir="rtl"] :is(code,pre,[data-copy-code-value]) { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] :is(.copy-container,.guide-copy) :is(code,span:first-child) { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] :is(.copy-container,.guide-copy) { direction: rtl; }
html[dir="rtl"] .copied-text { direction: rtl; text-align: center; }

html[dir="rtl"] :is(.exchange-comparison,.article-guide) :is(th,td) { text-align: start; }
html[dir="rtl"] :is(.exchange-comparison,.article-guide) :is(ul,ol) { padding-inline-start: 1.4em; padding-inline-end: 0; }
html[dir="rtl"] .article-guide :is(h1,h2,h3) { letter-spacing: normal; line-height: 1.5; }
html[dir="rtl"] .article-guide h1 { font-size: clamp(1.9rem, 4.1vw, 3.35rem); }
html[dir="rtl"] .guide-deck { line-height: 1.85; }
html[dir="rtl"] .guide-toc { border-left: 0; padding-left: 0; border-inline-start: 1px solid var(--guide-line); padding-inline-start: 18px; }
html[dir="rtl"] .guide-toc ul { padding: 0; }
html[dir="rtl"] :is(.guide-summary,.guide-deposit-checklist) { border-left: 0; border-inline-start: 4px solid var(--guide-accent); border-radius: 8px 0 0 8px; }
html[dir="rtl"] .reward-guide .guide-deposit-checklist { border-inline-start: 0; border-radius: 8px; }
html[dir="rtl"] .guide-copy-button { border-left: 0; border-inline-start: 1px solid #b9b5b4; }
html[dir="rtl"] .guide-breadcrumb { direction: rtl; }
html[dir="rtl"] .guide-breadcrumb > span[aria-hidden] { transform: scaleX(-1); }
html[dir="rtl"] .guide-copy .guide-copy__code { direction: ltr; }
html[dir="rtl"] :is(.guide-photo,.reward-shot,.reward-shot__image) { transform: none; }
html[dir="rtl"] .language-picker__link { text-align: start; }
html[dir="rtl"] .language-picker__link[aria-current="true"]::after { margin-inline-start: auto; }
html[dir="rtl"] .language-picker__input { text-align: start; }
html[dir="rtl"] .language-picker__search-icon { direction: ltr; }
html[dir="rtl"] .cookie-notice { inset-inline-end: max(20px, env(safe-area-inset-left)); inset-inline-start: auto; text-align: start; line-height: 1.8; }
html[dir="rtl"] .cookie-notice__title { padding-right: 0; padding-inline-end: 28px; }
html[dir="rtl"] .cookie-notice button.cookie-notice__close { right: auto; left: 5px; }
html[dir="rtl"] .cookie-notice__actions button.cookie-notice__basic { text-align: start; }
html[dir="rtl"] .site-footer { text-align: start; }
html[dir="rtl"] .guide-screen-viewer { direction: rtl; }
html[dir="rtl"] .guide-screen-viewer__viewport { direction: ltr; }

@media (min-width: 1025px) {
  html[dir="rtl"] .text-box :is(p,li) { line-height: 1.8; }
  html[dir="rtl"] #zqUAco .text-box:has(> h3), html[dir="rtl"] #zqUAco .text-box > h3 { text-align: start; }
}
@media (min-width: 821px) {
  html[dir="rtl"] .guide-body--centered .guide-toc { border-right: 0; border-left: 1px solid var(--guide-line); padding: 0 0 0 14px; }
}
@media (max-width: 1024px) {
  html[dir="rtl"] { --ar-hero-control-height: 64px; }
  html[dir="rtl"] :is(.grid-button,.guide-button) { white-space: normal; overflow-wrap: break-word; }
  html[dir="rtl"] .guide-toc { border-inline-start: 0; padding-inline-start: 0; }
}

/* Grid column 1 starts on the right in RTL. Keep the outer card gutters
   instead of inheriting the LTR rules that remove physical side margins. */
@media (360px <= width <= 1024px) {
  html[dir="rtl"] :is(#zqUAco,#z4L5YW,#zFW6QJ,#zNqZyl,#zKD44p,#zMPvH8) > .block-layout > .layout-element:has(> a.grid-button[rel~="sponsored"]) {
    margin-inline: 16px 0;
  }
  html[dir="rtl"] :is(#zqUAco,#z4L5YW,#zFW6QJ,#zNqZyl,#zKD44p,#zMPvH8) > .block-layout > .layout-element:has(> a.grid-button:not([rel~="sponsored"])) {
    margin-inline: 0 16px;
  }
}

/* Arabic app sections use intrinsic rows. Flatten only the details wrapper so
   the complete artwork can sit between its introduction and store controls. */
@media (max-width: 1024px) {
  html[dir="rtl"] :is(#zfa8Bo, #zaXs2v, #zOVyvl) {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "ar-app-title" "ar-app-lead" "ar-app-image"
      "ar-app-stores" "ar-app-code" "ar-app-note";
    align-items: start;
    gap: 20px;
    width: min(100%, 640px);
    max-width: 640px;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin-inline: auto;
    padding: 28px 16px 32px;
  }
  html[dir="rtl"] #zfa8Bo {
    grid-template-areas:
      "ar-app-title" "ar-app-lead" "ar-app-image"
      "ar-app-stores" "ar-app-note";
  }
  html[dir="rtl"] :is(#zfa8Bo, #zaXs2v, #zOVyvl) > :is(.bingx-app__details, .exchange-app__details) {
    display: contents;
  }
  html[dir="rtl"] :is(#zd0RlV, #zonO4U, #z2Z6lY) { grid-area: ar-app-title; }
  html[dir="rtl"] :is(#zzV7Xe, #zbnFFM, #zqvNEk) { grid-area: ar-app-lead; }
  html[dir="rtl"] :is(#zWgWpi, #znSvX1, #zFY3yd) { grid-area: ar-app-note; }
  html[dir="rtl"] :is(#zfa8Bo, #zaXs2v, #zOVyvl) :is(h2, p) {
    min-width: 0;
    max-width: none;
    margin: 0;
    text-align: center;
  }
  html[dir="rtl"] :is(#zfa8Bo, #zaXs2v, #zOVyvl) > :is(.bingx-app__illustration, .exchange-app__illustration) {
    grid-area: ar-app-image;
    justify-self: center;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 480px;
    min-width: 0;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
  }
  html[dir="rtl"] #zfa8Bo .bingx-app__phone {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
    border-radius: inherit;
  }
  html[dir="rtl"] :is(#zfa8Bo, #zaXs2v, #zOVyvl) :is(.bingx-app__illustration, .exchange-app__illustration) img {
    position: static;
    inset: auto;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    transform: none;
    border-radius: inherit;
  }
  html[dir="rtl"] :is(#zfa8Bo, #zaXs2v, #zOVyvl) :is(.bingx-app__stores, .exchange-app__stores) {
    grid-area: ar-app-stores;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
  }
  html[dir="rtl"] :is(#zfa8Bo, #zaXs2v, #zOVyvl) :is(.bingx-app__stores, .exchange-app__stores) a {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 100%;
    max-width: 220px;
    min-width: 0;
    min-height: 44px;
  }
  html[dir="rtl"] :is(#zfa8Bo, #zaXs2v, #zOVyvl) :is(.bingx-app__stores, .exchange-app__stores) img {
    display: block;
    width: auto;
    max-width: 100%;
    height: clamp(40px, 12vw, 56px);
    object-fit: contain;
    border-radius: 0;
  }
  html[dir="rtl"] :is(#zaXs2v, #zOVyvl) .exchange-app__copy {
    grid-area: ar-app-code;
    justify-self: center;
    min-width: 0;
    margin: 0;
  }
  html[dir="rtl"] :is(#zaXs2v, #zOVyvl) .exchange-app__copy button {
    min-height: 44px;
    font: inherit;
    line-height: 1.6;
  }
}
