/* Shared desktop Exchange action: same icon and blue gradient as mobile. */
.ui-nav .ui-sidebar-exchange {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 51px;
  margin: 0; padding: 13px 15px; border: 0; border-radius: 12px; text-align: left;
  background: linear-gradient(145deg, #2773ff, #0b2873); color: #fff;
  font: 700 14px/1.35 var(--ui-font); cursor: pointer;
}
.ui-nav .ui-sidebar-exchange:hover { background: linear-gradient(145deg, #3980ff, #143b92); }
.ui-nav .ui-sidebar-exchange:focus-visible { outline: 2px solid var(--ui-blue); outline-offset: 2px; }
.ui-exchange-icon {
  width: 25px; height: 25px; flex: 0 0 25px; background: currentColor;
  mask: url('/assets/icons/icon-exchange.svg') center / contain no-repeat;
  -webkit-mask: url('/assets/icons/icon-exchange.svg') center / contain no-repeat;
}
.ui-exchange-dialog {
  box-sizing: border-box; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 18px; border: 1px solid var(--ui-line); border-radius: 20px;
  background: var(--ui-panel); color: var(--ui-ink); overflow: auto;
  font: 400 14px/1.5 var(--ui-font);
}
.ui-exchange-dialog::backdrop { background: rgb(0 0 0 / 60%); }
.ui-exchange-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.ui-exchange-dialog h2 { margin: 0; font: 800 22px/1.3 var(--ui-heading-font); letter-spacing: -.04em; }
.ui-exchange-dialog iframe { display: block; width: 100%; height: 420px; border: 0; }
.ui-exchange-dialog iframe[hidden] { display: none; }
.ui-exchange-status { min-height: 200px; margin: 0; padding: 30px 0; }
html[data-ui-exchange-frame], html[data-ui-exchange-frame] body { margin: 0 !important; padding: 0 !important; background: transparent !important; min-height: 0 !important; }
html[data-ui-exchange-frame] body > :not([data-modal='watch-qr-2']):not(.ui-toast):not([data-toast]) { display: none !important; }
html[data-ui-exchange-frame] [data-modal='watch-qr-2'] { position: static; padding: 0; background: transparent; }
html[data-ui-exchange-frame] [data-modal='watch-qr-2'] > .modal-card { box-sizing: border-box; width: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
html[data-ui-exchange-frame] [data-modal='watch-qr-2'] .modal-header { display: none; }
html[data-ui-exchange-frame] [data-watch-qr2-preview] { margin: 0 auto 14px; }
html[data-ui-exchange-frame] [data-modal='watch-qr-2'] .modal-actions { display: flex; gap: 10px; margin-bottom: 0; }
html[data-ui-exchange-frame] [data-modal='watch-qr-2'] .modal-actions > button { flex: 1 1 0; min-width: 0; }
