/* The supplied 390px composition is the reference size. */
.app {
  zoom: var(--ui-scale, 1);
  width: calc(var(--canvas-width, 390px) / var(--ui-scale, 1));
}

.actions > button[data-mode="deposit"] {
  border-radius: 97.994px;
  border: 0.98px solid rgba(47, 150, 255, 0.45);
  background: radial-gradient(80.66% 80.67% at 50% 50%, #137BF8 0%, #6FA4F0 100%);
  box-shadow: 0 -1.96px 3.92px 0.98px rgba(0, 60, 201, 0.12) inset,
              0 5.88px 13.719px 0 rgba(0, 104, 255, 0.23);
  filter: none;
}

.balance-card {
  z-index: 2;
  background: linear-gradient(110deg, rgba(156, 186, 255, 0.36), rgba(192, 214, 255, 0.16));
  -webkit-backdrop-filter: blur(6.332266330718994px);
  backdrop-filter: blur(6.332266330718994px);
}

.balance-card > div {
  position: relative;
  z-index: 2;
}

.balance-art {
  z-index: 1;
  bottom: 0;
  height: auto;
  object-position: center bottom;
  animation: none;
  transform: none;
}

.segments {
  isolation: isolate;
}

.segment-liquid {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 26px;
  background: linear-gradient(115deg, #469fff, #2084fa);
  box-shadow: 0 4px 7px #167aff24, inset 0 1px 2px #fff8;
  pointer-events: none;
  transform: translateX(0);
  transition: transform .65s var(--spring);
}

.segments[data-mode="withdraw"] .segment-liquid {
  transform: translateX(100%);
}

.segments button {
  transition: color .25s ease;
}

.segments button.selected {
  background: none;
  box-shadow: none;
}

.segments button:active:not(:disabled) {
  transform: none;
}

.mode-content {
  position: relative;
  overflow: clip;
  overflow-anchor: none;
}

.mode-data {
  display: flow-root;
}

.mode-outgoing {
  position: absolute;
  inset: 0 0 auto;
  pointer-events: none;
}

.method-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}

.method-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.method-mark--sbp {
  background: #f4f6fa;
}

.method-mark--sbp img {
  width: 60%;
  height: 70%;
}

.method-mark--qr {
  background: #eaf3ff;
}

.method-mark--qr img {
  width: 68%;
  height: 68%;
}

.method-mark--wechat {
  background: #e9f9ef;
}

.method-mark--wechat img {
  width: 80%;
  height: 80%;
}

.limit-title::before {
  content: none;
}

.limit-title > .method-mark {
  width: 30px;
  height: 30px;
}

.limit-title > .method-pair {
  display: flex;
  width: 46px;
  flex: 0 0 auto;
}

.method-pair .method-mark {
  width: 28px;
  height: 28px;
  box-shadow: 0 0 0 2px #fff;
}

.method-pair .method-mark + .method-mark {
  margin-left: -10px;
}

.method-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.method-pill .method-mark {
  width: 18px;
  height: 18px;
}

@media (max-width: 550px) {
  .app {
    width: calc(var(--canvas-width, 100vw) / var(--ui-scale, 1));
    height: calc(100dvh / var(--ui-scale, 1));
    margin-inline: auto;
  }

  .home-sheet {
    min-height: calc(100dvh / var(--ui-scale, 1) - 224px);
  }
}

/* Full-width history sheet, raised 3px against the blue header. */
.history-sheet {
  width: 100%;
  max-width: none;
  margin-top: -27px;
  margin-inline: 0;
}
