:root {
  --background: #edf2f8;
  --surface: #ffffff;
  --ink: #22283a;
  --muted: #8a93a6;
  --line: #edf0f6;
  --primary: #5f7cf7;
  --primary-strong: #4968ee;
  --accent: #6ed8c6;
  --warning: #ffcf70;
  --shadow: 0 24px 70px rgba(63, 80, 124, 0.18);
  --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-fast: 150ms;
  --motion-normal: 220ms;
  --app-nav-safe-bottom: max(28px, env(safe-area-inset-bottom));
  --app-bottom-nav-clearance: calc(var(--app-nav-safe-bottom) + 140px);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(95, 124, 247, 0.12), rgba(110, 216, 198, 0.12)),
    var(--background);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
}

button[aria-busy="true"] {
  cursor: progress;
}

button:focus,
button:focus-visible {
  outline: 0 !important;
  box-shadow: none;
}

input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(95, 124, 247, 0.28);
  outline-offset: 3px;
}

.app-preview {
  display: grid;
  min-height: 100vh;
  place-items: center;
  gap: 22px;
  padding: 28px 16px;
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 42px rgba(63, 80, 124, 0.1);
  backdrop-filter: blur(18px);
}

.tab {
  min-width: 72px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
}

.tab.is-active {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(95, 124, 247, 0.24);
}

.tab,
.primary-button,
.text-button,
.scan-button,
.bottom-nav button,
.quick-actions button,
.wallet-card-bottom button,
.plain-link,
.inline-link,
.menu-list button,
.task-card {
  will-change: transform;
  transition:
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease),
    opacity var(--motion-fast) var(--motion-ease),
    filter var(--motion-fast) var(--motion-ease);
}

.tab:active,
.primary-button:active,
.text-button:active,
.scan-button:active,
.bottom-nav button:active,
.quick-actions button:active,
.wallet-card-bottom button:active,
.plain-link:active,
.inline-link:active,
.menu-list button:active,
.task-card:active {
  transform: translateY(1px) scale(0.99);
}

@media (hover: hover) and (pointer: fine) {
  .tab:not(:disabled):hover,
  .primary-button:not(:disabled):hover,
  .text-button:not(:disabled):hover,
  .scan-button:not(:disabled):hover,
  .bottom-nav button:not(:disabled):hover,
  .quick-actions button:not(:disabled):hover,
  .wallet-card-bottom button:not(:disabled):hover,
  .plain-link:not(:disabled):hover,
  .inline-link:not(:disabled):hover,
  .menu-list button:not(:disabled):hover,
  .task-card:hover {
    filter: brightness(1.02) saturate(1.02);
    transform: translateY(-1px);
  }
}

.tab:not(:disabled):active,
.primary-button:not(:disabled):active,
.text-button:not(:disabled):active,
.scan-button:not(:disabled):active,
.bottom-nav button:not(:disabled):active,
.quick-actions button:not(:disabled):active,
.wallet-card-bottom button:not(:disabled):active,
.plain-link:not(:disabled):active,
.inline-link:not(:disabled):active,
.menu-list button:not(:disabled):active,
.task-card:active {
  transform: translateY(1px) scale(0.99);
}

.primary-button[aria-busy="true"],
.text-button[aria-busy="true"],
.scan-button[aria-busy="true"],
.wallet-card-bottom button[aria-busy="true"],
.code-field button[aria-busy="true"] {
  position: relative;
  padding-right: 42px;
}

.primary-button[aria-busy="true"]::after,
.text-button[aria-busy="true"]::after,
.scan-button[aria-busy="true"]::after,
.wallet-card-bottom button[aria-busy="true"]::after,
.code-field button[aria-busy="true"]::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  opacity: 0.8;
  animation: button-spin 760ms linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.phone {
  position: relative;
  width: min(390px, calc(100vw - 24px));
  height: min(844px, calc(100vh - 56px));
  min-height: 844px;
  overflow: hidden;
  border: 10px solid #181b25;
  border-radius: 40px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-bar {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 48px;
  padding: 14px 22px 0;
  color: #161b29;
  font-size: 13px;
  font-weight: 800;
}

.status-icons {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 4px;
  align-items: end;
  height: 14px;
}

.status-icons i {
  display: block;
  width: 5px;
  border-radius: 2px;
  background: #161b29;
}

.status-icons i:nth-child(1) {
  height: 8px;
}

.status-icons i:nth-child(2) {
  height: 11px;
}

.status-icons i:nth-child(3) {
  width: 18px;
  height: 9px;
  border: 2px solid #161b29;
  background: transparent;
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-height: 100%;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 48px 26px 34px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 180ms ease, transform 180ms ease;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.back-button {
  position: absolute;
  z-index: 20;
  top: 58px;
  left: 24px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(63, 80, 124, 0.12);
  font-size: 34px;
  line-height: 1;
}

.art-panel {
  position: relative;
  min-height: 342px;
  margin: 0 -26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(110, 216, 198, 0.28), transparent 28%),
    linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%);
}

.small-art {
  min-height: 282px;
}

.circle {
  position: absolute;
  border-radius: 50%;
}

.circle-a {
  width: 188px;
  height: 188px;
  right: -46px;
  top: 46px;
  background: rgba(95, 124, 247, 0.16);
}

.circle-b {
  width: 118px;
  height: 118px;
  left: 30px;
  top: 82px;
  background: rgba(110, 216, 198, 0.26);
}

.circle-c {
  width: 84px;
  height: 84px;
  left: 58px;
  bottom: 34px;
  background: rgba(255, 207, 112, 0.34);
}

.phone-card {
  position: absolute;
  display: grid;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(63, 80, 124, 0.14);
}

.mini-card-one {
  width: 122px;
  height: 160px;
  left: 72px;
  top: 98px;
  place-items: center;
  transform: rotate(-8deg);
}

.mini-card-one span {
  position: absolute;
  top: 18px;
  width: 54px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
}

.mini-card-one strong {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary);
  font-size: 34px;
}

.mini-card-two {
  width: 142px;
  height: 118px;
  right: 58px;
  top: 150px;
  gap: 12px;
  align-content: center;
  padding: 24px;
  transform: rotate(7deg);
}

.mini-card-two span {
  height: 9px;
  border-radius: 999px;
  background: #e7ebf5;
}

.mini-card-two span:nth-child(2) {
  width: 74%;
}

.mini-card-two span:nth-child(3) {
  width: 48%;
  background: rgba(95, 124, 247, 0.22);
}

.coin {
  position: absolute;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(63, 80, 124, 0.18);
}

.coin-one {
  right: 76px;
  top: 84px;
  background: var(--warning);
}

.coin-two {
  left: 82px;
  top: 238px;
  background: var(--accent);
}

.login-shield {
  position: absolute;
  left: 50%;
  top: 108px;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #8aa0ff);
  box-shadow: 0 18px 34px rgba(95, 124, 247, 0.26);
  font-size: 44px;
  font-weight: 900;
  transform: translateX(-50%) rotate(-8deg);
}

.login-line {
  position: absolute;
  left: 92px;
  height: 12px;
  border-radius: 999px;
  background: #e8ecf5;
}

.line-one {
  top: 236px;
  width: 188px;
}

.line-two {
  top: 260px;
  width: 132px;
}

.register-visual-card {
  position: absolute;
  left: 50%;
  top: 118px;
  display: grid;
  gap: 14px;
  width: 198px;
  min-height: 104px;
  align-content: center;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(63, 80, 124, 0.14);
  transform: translateX(-50%) rotate(3deg);
}

.visual-phone {
  display: grid;
  gap: 8px;
}

.visual-phone span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #e7ebf5;
}

.visual-phone span:nth-child(1) {
  width: 92px;
}

.visual-phone span:nth-child(2) {
  width: 132px;
}

.visual-phone span:nth-child(3) {
  width: 74px;
  background: rgba(95, 124, 247, 0.18);
}

.visual-code {
  display: grid;
  grid-template-columns: repeat(4, 18px);
  gap: 8px;
}

.visual-code i {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--primary);
  box-shadow: 0 8px 14px rgba(95, 124, 247, 0.18);
}

.key-shape {
  position: absolute;
  left: 116px;
  top: 132px;
  width: 142px;
  height: 54px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 18px 34px rgba(95, 124, 247, 0.24);
  transform: rotate(-18deg);
}

.key-shape::after {
  content: "";
  position: absolute;
  right: -42px;
  top: 19px;
  width: 54px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
}

.key-dot {
  position: absolute;
  left: 132px;
  top: 146px;
  width: 26px;
  height: 26px;
  border: 7px solid #ffffff;
  border-radius: 50%;
}

.content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 2px;
}

.welcome-content {
  padding-top: 12px;
}

.kicker {
  margin: 0;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

.copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.field {
  position: relative;
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 18px;
  color: var(--ink);
  background: #f9fbff;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.field input:focus,
.field select:focus {
  border-color: rgba(95, 124, 247, 0.6);
  box-shadow: 0 0 0 4px rgba(95, 124, 247, 0.12);
}

.field input[readonly] {
  color: var(--muted);
  background: #f3f8ff;
}

.code-field {
  grid-template-columns: 1fr 78px;
}

.code-field span {
  grid-column: 1 / -1;
}

.code-field button {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  background: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.invite-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  min-height: 62px;
  padding: 12px 16px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(95, 124, 247, 0.08);
}

.invite-box > div {
  grid-column: 1 / -1;
  min-width: 0;
}

.invite-box span {
  font-size: 13px;
  font-weight: 800;
}

.invite-box strong {
  display: block;
  margin-top: 5px;
  color: var(--primary);
  font-size: 19px;
  line-height: 1.1;
  word-break: keep-all;
}

.invite-box em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.manual-invite-field {
  display: grid;
  gap: 5px;
  margin: 0;
  min-width: 0;
}

.manual-invite-field span {
  color: var(--muted);
  font-size: 11px;
}

.manual-invite-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(95, 124, 247, 0.24);
  border-radius: 13px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  outline: 0;
}

.manual-invite-field input:focus {
  border-color: rgba(95, 124, 247, 0.7);
  box-shadow: 0 0 0 3px rgba(95, 124, 247, 0.12);
}

.scan-button {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: var(--primary);
  font-weight: 900;
}

.identity-status-card {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid rgba(95, 124, 247, 0.16);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(95, 124, 247, 0.08);
}

.identity-status-card[hidden] {
  display: none;
}

.identity-status-card strong {
  font-size: 18px;
}

.identity-status-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.scan-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 4px;
}

.scan-icon::before,
.scan-icon::after {
  content: "";
  position: absolute;
  background: #ffffff;
}

.scan-icon::before {
  left: 2px;
  right: 2px;
  top: 6px;
  height: 2px;
}

.scan-icon::after {
  top: 2px;
  bottom: 2px;
  left: 6px;
  width: 2px;
}

.inline-link {
  justify-self: end;
  border: 0;
  color: var(--primary);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.primary-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 18px 30px rgba(95, 124, 247, 0.28);
  font-weight: 900;
}

.primary-button:disabled,
.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  box-shadow: none;
}

.primary-button[aria-busy="true"]:disabled,
.text-button[aria-busy="true"]:disabled,
.scan-button[aria-busy="true"]:disabled,
.wallet-card-bottom button[aria-busy="true"]:disabled,
.code-field button[aria-busy="true"]:disabled {
  cursor: progress;
}

.text-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  color: var(--primary);
  background: rgba(95, 124, 247, 0.09);
  font-weight: 900;
}

.switch-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  margin: 4px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.switch-copy button {
  border: 0;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 16px;
  color: var(--primary);
  background: rgba(95, 124, 247, 0.1);
  font-weight: 900;
}

.home-indicator {
  position: absolute;
  z-index: 12;
  right: 126px;
  bottom: 11px;
  left: 126px;
  height: 5px;
  border-radius: 999px;
  background: #111827;
}

.scanner-modal {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 18px;
  background: rgba(24, 27, 37, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.scanner-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.scanner-sheet {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(24, 27, 37, 0.24);
}

.scanner-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #f4f6fb;
  font-size: 24px;
  line-height: 1;
}

.scanner-sheet h2 {
  margin: 0;
  font-size: 24px;
}

.scanner-frame {
  position: relative;
  display: grid;
  width: 210px;
  height: 210px;
  place-self: center;
  margin: 8px 0;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(95, 124, 247, 0.12), rgba(110, 216, 198, 0.12)),
    #f8faff;
}

.scanner-frame span {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: var(--primary);
}

.scanner-frame span:nth-child(1) {
  top: 18px;
  left: 18px;
  border-top: 4px solid;
  border-left: 4px solid;
}

.scanner-frame span:nth-child(2) {
  top: 18px;
  right: 18px;
  border-top: 4px solid;
  border-right: 4px solid;
}

.scanner-frame span:nth-child(3) {
  right: 18px;
  bottom: 18px;
  border-right: 4px solid;
  border-bottom: 4px solid;
}

.scanner-frame span:nth-child(4) {
  bottom: 18px;
  left: 18px;
  border-bottom: 4px solid;
  border-left: 4px solid;
}

.scanner-frame i {
  position: absolute;
  left: 38px;
  right: 38px;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 18px rgba(95, 124, 247, 0.64);
}

.scanner-copy {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.app-screen {
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 62px 22px 78px;
  background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 45%, #f8faff 100%);
}

.fintech-home {
  gap: 16px;
  align-content: start;
  background:
    radial-gradient(circle at 82% 10%, rgba(104, 123, 255, 0.34), transparent 34%),
    radial-gradient(circle at 10% 34%, rgba(110, 216, 198, 0.14), transparent 28%),
    linear-gradient(180deg, #111827 0%, #172033 48%, #f5f7fb 48%, #ffffff 100%);
}

.app-header,
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.app-header > div,
.profile-header > div {
  min-width: 0;
}

.app-header h1,
.profile-header h1,
.app-content h1 {
  margin: 3px 0 0;
  font-size: 28px;
  line-height: 1.16;
}

.round-action {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary);
  font-weight: 900;
}

.fintech-header .kicker {
  color: rgba(255, 255, 255, 0.62);
}

.fintech-header h1 {
  color: #ffffff;
}

.fintech-header .round-action {
  color: #111827;
  background: #ffffff;
}

.wallet-card {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 22px;
  min-height: 218px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.28), transparent 22%),
    radial-gradient(circle at 24% 92%, rgba(110, 216, 198, 0.32), transparent 28%),
    linear-gradient(135deg, #6378ff 0%, #8b9aff 48%, #1e293b 100%);
  box-shadow: 0 26px 54px rgba(17, 24, 39, 0.3);
}

.wallet-card::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -54px;
  width: 170px;
  height: 170px;
  border: 24px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.wallet-card-top,
.wallet-card-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.wallet-card-top span,
.wallet-card-bottom span {
  font-size: 13px;
  font-weight: 800;
  opacity: 0.78;
}

.wallet-card-top small {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 900;
}

.wallet-card strong {
  position: relative;
  z-index: 1;
  min-width: 0;
  font-size: 30px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.wallet-card-bottom button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #111827;
  background: #ffffff;
  font-weight: 900;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  min-width: 0;
}

.quick-actions button {
  display: grid;
  min-width: 0;
  gap: 8px;
  min-height: 92px;
  place-items: center;
  border: 1px solid rgba(232, 236, 243, 0.9);
  border-radius: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(32, 43, 73, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.quick-actions span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: #111827;
  font-size: 20px;
  line-height: 1;
}

.loan-hero-card {
  display: grid;
  gap: 10px;
  min-height: 168px;
  align-content: center;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(135deg, var(--primary), #7d91ff);
  box-shadow: 0 22px 42px rgba(95, 124, 247, 0.26);
}

.loan-hero-card span {
  font-size: 14px;
  font-weight: 800;
  opacity: 0.84;
}

.loan-hero-card strong {
  font-size: 30px;
  line-height: 1.1;
}

.compact-button {
  width: auto;
  min-width: 132px;
  min-height: 44px;
  justify-self: start;
  margin-top: 8px;
  padding: 0 22px;
  color: var(--primary);
  background: #ffffff;
  box-shadow: none;
}

.panel-card,
.quota-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 38px rgba(63, 80, 124, 0.1);
}

.fintech-panel {
  border: 0;
  background: #ffffff;
}

.fintech-panel .section-title h2 {
  font-size: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 16px;
}

.section-title button {
  border: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 900;
}

.record-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.record-list li {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-radius: 16px;
  background: #f8faff;
}

.record-list span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.record-list time {
  color: var(--muted);
  font-size: 12px;
}

.record-list-full li {
  min-height: 62px;
  align-content: center;
}

.ticker-window {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 132px;
  overflow: hidden;
  border-radius: 18px;
  background: #f8faff;
}

.ticker-window::before,
.ticker-window::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  left: 0;
  height: 18px;
  pointer-events: none;
}

.ticker-window::before {
  top: 0;
  background: linear-gradient(180deg, #f8faff, rgba(248, 250, 255, 0));
}

.ticker-window::after {
  bottom: 0;
  background: linear-gradient(0deg, #f8faff, rgba(248, 250, 255, 0));
}

.ticker-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 12px 14px 48px;
  list-style: none;
  animation: ticker-scroll 14s linear infinite;
}

.ticker-list.is-empty {
  padding-bottom: 12px;
  animation: none;
}

.ticker-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 116px;
  gap: 7px;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.ticker-list b,
.ticker-list span,
.ticker-list time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-list b {
  font-weight: 900;
}

.ticker-list time {
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  0%, 14% {
    transform: translateY(0);
  }

  24%, 36% {
    transform: translateY(-48px);
  }

  46%, 58% {
    transform: translateY(-96px);
  }

  68%, 82% {
    transform: translateY(-144px);
  }

  92%, 100% {
    transform: translateY(-144px);
  }
}

.process-panel {
  display: grid;
  gap: 22px;
  min-height: 610px;
  align-content: start;
  padding: 28px 24px;
}

.process-copy {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.personal-flow {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.personal-flow li {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: baseline;
  min-height: 28px;
}

.personal-flow span {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.personal-flow strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.records-flow-screen {
  gap: 18px;
  padding: 72px 22px 44px;
  background:
    radial-gradient(circle at 82% 13%, rgba(95, 124, 247, 0.16), transparent 28%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 44%, #f6f8ff 100%);
}

.flow-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.flow-hero h1 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.14;
}

.flow-hero p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.flow-visual {
  position: relative;
  width: 112px;
  height: 116px;
}

.flow-board,
.flow-wallet {
  position: absolute;
  display: block;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(95, 124, 247, 0.18);
}

.flow-board {
  right: 8px;
  top: 5px;
  width: 62px;
  height: 86px;
  background:
    linear-gradient(90deg, #5f7cf7 0 8px, transparent 8px) 18px 22px / 42px 8px no-repeat,
    linear-gradient(90deg, #5f7cf7 0 8px, transparent 8px) 18px 48px / 42px 8px no-repeat,
    #ffffff;
  transform: rotate(5deg);
}

.flow-wallet {
  left: 4px;
  bottom: 8px;
  width: 88px;
  height: 68px;
  background: linear-gradient(135deg, #9bc0ff, #5f7cf7);
}

.flow-wallet::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 28px;
  width: 26px;
  height: 22px;
  border-radius: 12px;
  background: #4369f4;
}

.flow-visual i {
  position: absolute;
  right: 0;
  bottom: 36px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #ffbd57;
  box-shadow: 0 10px 20px rgba(255, 189, 87, 0.28);
}

.flow-visual i::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  transform: rotate(45deg) translate(2px, 2px);
}

.flow-summary {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 42px;
  gap: 18px;
  align-items: center;
  min-height: 108px;
  padding: 20px;
  border: 1px solid rgba(224, 229, 242, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(63, 80, 124, 0.1);
}

.flow-summary > div:first-child {
  border-right: 1px solid var(--line);
}

.flow-summary span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.flow-summary strong {
  display: block;
  margin-top: 8px;
  color: #5d6579;
  font-size: 32px;
  line-height: 1;
}

.flow-summary strong em {
  color: var(--primary);
  font-style: normal;
  font-size: 44px;
}

.flow-summary b {
  color: var(--primary);
  text-align: right;
  font-size: 18px;
}

.flow-progress {
  height: 10px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eefc;
}

.flow-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #245bff);
  transition: width 220ms ease;
}

.task-section {
  display: grid;
  gap: 14px;
}

.task-title {
  display: grid;
  gap: 6px;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.task-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.task-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.task-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 14px;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 14px;
  border: 1px solid rgba(231, 235, 245, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(63, 80, 124, 0.08);
  cursor: pointer;
}

.task-icon {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 40px 40px;
}

.task-icon::before,
.task-icon::after {
  content: none;
}

.bag-icon {
  background-image: url("./assets/task-icons/icon-realname.svg");
}

.users-icon {
  background-image: url("./assets/task-icons/icon-phone-card.svg");
}

.card-icon {
  background-image: url("./assets/task-icons/icon-invite-three.svg");
}

.payout-icon {
  background-image: url("./assets/task-icons/icon-initial-limit.svg");
}

.task-blue {
  color: var(--primary);
  --task-color: var(--primary);
}

.task-green {
  color: #16bd82;
  --task-color: #16bd82;
}

.task-orange {
  color: #f18423;
  --task-color: #f18423;
}

.task-purple {
  color: #704df6;
  --task-color: #704df6;
}

.task-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.task-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.task-card p small {
  display: inline-block;
  width: 98px;
  height: 7px;
  margin: 0 8px;
  border-radius: 999px;
  background: #e8edf8;
  vertical-align: middle;
}

.task-card strong {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-radius: 13px;
  padding: 0 12px;
  background: var(--task-color);
  color: #ffffff;
  font-size: 13px;
  white-space: nowrap;
}

.task-card:not(.is-done) strong {
  background: color-mix(in srgb, var(--task-color) 13%, #ffffff);
  color: var(--task-color);
}

.task-card > i {
  color: var(--muted);
  font-size: 28px;
  font-style: normal;
}

.flow-cta {
  min-height: 58px;
  border-radius: 18px;
  font-size: 17px;
}

.flow-tip {
  position: relative;
  display: flex;
  gap: 0;
  align-items: center;
  min-height: 76px;
  margin: 14px 0 14px;
  border: 0;
  border-radius: 18px;
  padding: 14px 48px 14px 20px;
  color: #5370bd;
  background: rgba(95, 124, 247, 0.08);
  text-align: left;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.records-flow-screen .bottom-nav {
  position: static;
  margin-top: 8px;
}

.flow-tip span {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-right: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5f7cf7, #22c1a7);
  box-shadow: 0 8px 18px rgba(95, 124, 247, 0.22);
}

.flow-tip strong {
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  font: inherit;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.flow-tip span::before,
.flow-tip span::after {
  position: absolute;
  content: "";
  background: #ffffff;
}

.flow-tip span::before {
  left: 8px;
  top: 13px;
  width: 6px;
  height: 2px;
  transform: rotate(45deg);
  border-radius: 999px;
}

.flow-tip span::after {
  left: 12px;
  top: 10px;
  width: 10px;
  height: 2px;
  transform: rotate(-45deg);
  border-radius: 999px;
}

.flow-tip.is-ready span {
  background: linear-gradient(135deg, #20c488, #5f7cf7);
}

.flow-tip i {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: #9fb0dc;
  font-size: 24px;
  font-style: normal;
  line-height: 1;
}

.records-flow-screen .flow-tip {
  min-height: 76px;
  margin: 14px 0 14px;
  padding: 14px 48px 14px 20px;
}

.records-flow-screen .flow-tip span {
  margin-right: 28px;
}

.bottom-nav {
  position: absolute;
  right: 20px;
  bottom: 26px;
  left: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 58px;
  padding: 6px;
  border: 1px solid rgba(237, 240, 246, 0.88);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 32px rgba(63, 80, 124, 0.12);
  backdrop-filter: blur(16px);
}

.bottom-nav button {
  border: 0;
  border-radius: 16px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.bottom-nav button.is-active {
  color: #ffffff;
  background: var(--primary);
}

.app-content {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 72px;
}

.centered-flow {
  align-content: center;
  min-height: 620px;
}

.process-list {
  display: grid;
  gap: 16px;
  margin: 8px 0 18px;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: #f8faff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.process-list i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary);
  font-style: normal;
}

.progress-card,
.detail-card,
.notice-card,
.qr-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(63, 80, 124, 0.08);
}

.progress-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.progress-card span,
.notice-card,
.qr-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.progress-card strong {
  color: var(--ink);
  font-size: 17px;
}

.progress-card .text-button {
  min-height: 44px;
}

.quota-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.quota-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quota-card dt {
  color: var(--muted);
  font-size: 14px;
}

.quota-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.quota-apply-card,
.withdraw-summary,
.withdraw-note {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(63, 80, 124, 0.08);
}

.quota-apply-card span,
.withdraw-summary span,
.withdraw-summary small,
.withdraw-note p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.quota-apply-card strong,
.withdraw-summary strong {
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
}

.quota-apply-card p,
.withdraw-note p {
  margin: 0;
}

.withdraw-content,
.withdraw-form {
  gap: 16px;
}

.withdraw-note strong {
  color: var(--ink);
  font-size: 15px;
}

.detail-card {
  padding: 18px;
}

.detail-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.detail-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.detail-card dt {
  color: var(--muted);
  font-size: 13px;
}

.detail-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.pill.success {
  color: #0f9f77;
  background: rgba(15, 159, 119, 0.11);
}

.pill.warning {
  color: #b77905;
  background: rgba(245, 158, 11, 0.14);
}

.action-stack {
  display: grid;
  gap: 14px;
}

.profile-header {
  align-items: flex-start;
  padding: 8px 0 10px;
}

.profile-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.profile-header button {
  border: 0;
  color: var(--primary);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.profile-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  flex: 0 0 auto;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: var(--primary);
  font-size: 22px;
  font-weight: 900;
}

.menu-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.menu-list button {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 16px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  font-weight: 800;
}

.invite-row strong {
  color: var(--primary);
}

.compact-form {
  margin-top: 0;
}

.notice-card {
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(95, 124, 247, 0.08);
}

.referral-task-history {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

.referral-task-history[hidden] {
  display: none;
}

.referral-task-history > strong {
  font-size: 14px;
  line-height: 1.35;
}

.referral-task-history .direct-users-list {
  gap: 10px;
}

.referral-task-history .direct-users-list li {
  min-height: 48px;
  padding: 0 14px;
  background: #f8fbff;
}

.direct-users-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.direct-users-card header,
.direct-users-list li,
.direct-users-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.direct-users-card header strong {
  font-size: 16px;
}

.direct-users-card header span,
.direct-users-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.direct-users-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.direct-users-list li {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  background: #f5f9ff;
}

.direct-users-list span {
  overflow: hidden;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.direct-users-list strong,
.direct-users-list .reason-link {
  flex: 0 0 auto;
  min-width: 58px;
  border-radius: 999px;
  padding: 5px 8px;
  text-align: center;
  font-size: 12px;
}

.direct-users-list .reason-link {
  border: 0;
  color: #2f73ee;
  background: rgba(47, 115, 238, 0.1);
  font-weight: 900;
}

.direct-users-list .is-paid {
  color: #047857;
  background: rgba(32, 196, 136, 0.14);
}

.direct-users-list .is-approved {
  color: #047857;
  background: rgba(32, 196, 136, 0.14);
}

.direct-users-list .is-pending {
  color: #b45309;
  background: rgba(245, 158, 11, 0.16);
}

.direct-users-list .is-rejected {
  color: #b42318;
  background: rgba(229, 78, 78, 0.14);
}

.direct-users-pager button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--primary-strong);
  background: #ffffff;
  font-weight: 900;
}

.direct-users-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.agreement-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.agreement-check span {
  min-width: 0;
}

.agreement-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.agreement-check button,
.plain-link {
  appearance: none;
  -webkit-appearance: none;
  display: inline;
  min-width: 0;
  min-height: 0;
  border: 0 !important;
  border-radius: 0;
  padding: 0 !important;
  color: var(--primary);
  background: transparent !important;
  box-shadow: none !important;
  text-align: inherit;
  font-weight: 900;
  line-height: inherit;
}

.plain-link {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  font-size: 13px;
}

.legal-screen .app-content {
  padding-top: 54px;
}

.legal-menu {
  display: grid;
  gap: 12px;
  width: 100%;
}

.legal-menu button {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(63, 80, 124, 0.07);
  text-align: left;
}

.legal-menu span {
  font-size: 15px;
  font-weight: 900;
}

.legal-menu strong {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.legal-card,
.support-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(63, 80, 124, 0.08);
}

.legal-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.legal-card p {
  margin: -8px 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

.support-card div {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.support-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.support-card span {
  color: var(--muted);
  font-size: 12px;
}

.support-card strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.record-tag {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  margin-right: 7px;
  border-radius: 999px;
  padding: 0 8px;
  color: var(--primary);
  background: rgba(95, 124, 247, 0.1);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.qr-card strong {
  color: var(--ink);
  font-size: 26px;
}

.fake-qr {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  background: #f7f9ff;
}

.fake-qr i {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--ink);
}

.fake-qr i:nth-child(2),
.fake-qr i:nth-child(4),
.fake-qr i:nth-child(6),
.fake-qr i:nth-child(8) {
  background: var(--primary);
}

.toast {
  position: absolute;
  z-index: 60;
  left: 50%;
  top: auto;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 18px));
  width: min(calc(100% - 48px), 292px);
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(24, 27, 37, 0.88);
  box-shadow: 0 16px 34px rgba(24, 27, 37, 0.22);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity var(--motion-normal) var(--motion-ease), transform var(--motion-normal) var(--motion-ease);
}

.toast.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

.phone:has(.screen.is-active .bottom-nav) .toast {
  bottom: max(104px, calc(env(safe-area-inset-bottom) + 92px));
}

.compact-sheet {
  align-self: center;
}

@media (max-width: 520px) {
  html {
    min-height: 100%;
    overflow-y: auto;
  }

  body {
    min-height: 100%;
    overflow-y: auto;
    background: var(--surface);
  }

  .app-preview {
    display: block;
    height: auto;
    min-height: 100%;
    overflow: visible;
    padding: 0;
    background: var(--surface);
  }

  .preview-tabs {
    display: none;
  }

  .tab {
    min-width: 0;
    font-size: 12px;
  }

  .phone {
    width: 100vw;
    height: auto;
    min-height: 100%;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .screen {
    position: relative;
    inset: auto;
    display: none;
    height: auto;
    min-height: auto;
    overflow: visible;
    padding-bottom: 92px;
    transform: none;
    transition: none;
  }

  .screen[data-screen="login"],
  .screen[data-screen="register"],
  .screen[data-screen="forgot"] {
    align-content: start;
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 24px;
  }

  .screen[data-screen="login"] .art-panel,
  .screen[data-screen="register"] .art-panel,
  .screen[data-screen="forgot"] .art-panel {
    display: none;
  }

  .screen[data-screen="login"] .content,
  .screen[data-screen="register"] .content,
  .screen[data-screen="forgot"] .content {
    gap: 8px;
  }

  .screen[data-screen="login"] h1,
  .screen[data-screen="register"] h1,
  .screen[data-screen="forgot"] h1 {
    font-size: 28px;
  }

  .screen[data-screen="login"] .auth-form,
  .screen[data-screen="register"] .auth-form,
  .screen[data-screen="forgot"] .auth-form {
    gap: 10px;
    margin-top: 2px;
  }

  .screen[data-screen="login"] .field,
  .screen[data-screen="register"] .field,
  .screen[data-screen="forgot"] .field {
    gap: 6px;
  }

  .screen[data-screen="login"] .field input,
  .screen[data-screen="register"] .field input,
  .screen[data-screen="forgot"] .field input,
  .screen[data-screen="payout"] .field select,
  .screen[data-screen="login"] .code-field button,
  .screen[data-screen="register"] .code-field button,
  .screen[data-screen="forgot"] .code-field button {
    min-height: 48px;
    border-radius: 16px;
  }

  .screen[data-screen="register"] .invite-box {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 54px;
    padding: 10px 14px;
  }

  .screen[data-screen="register"] .invite-box strong {
    font-size: 18px;
  }

  .screen[data-screen="register"] .manual-invite-field input {
    min-height: 44px;
  }

  .screen[data-screen="register"] .scan-button {
    min-height: 44px;
  }

  .screen[data-screen="register"] .copy {
    display: none;
  }

  body.keyboard-open .screen[data-screen="login"],
  body.keyboard-open .screen[data-screen="register"],
  body.keyboard-open .screen[data-screen="forgot"] {
    padding-top: 14px;
    padding-bottom: calc(var(--keyboard-height, 300px) + 18px);
  }

  body.keyboard-open .screen[data-screen="login"] .kicker,
  body.keyboard-open .screen[data-screen="register"] .kicker,
  body.keyboard-open .screen[data-screen="forgot"] .kicker,
  body.keyboard-open .screen[data-screen="login"] .copy,
  body.keyboard-open .screen[data-screen="register"] .copy,
  body.keyboard-open .screen[data-screen="forgot"] .copy {
    display: none;
  }

  body.keyboard-open .screen[data-screen="login"] h1,
  body.keyboard-open .screen[data-screen="register"] h1,
  body.keyboard-open .screen[data-screen="forgot"] h1 {
    font-size: 24px;
  }

  .app-screen {
    min-height: 100vh;
    padding-bottom: 98px;
  }

  .screen.is-active {
    display: grid;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .bottom-nav {
    bottom: 18px;
  }

  .home-indicator {
    display: none;
  }
}

/* 多安卓机型与系统大字体兜底：避免窄屏、长中文和字体放大时横向溢出 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
button,
input,
select {
  overflow-wrap: anywhere;
}

.screen,
.app-content,
.auth-form,
.compact-form,
.field,
.panel-card,
.quota-card,
.detail-card,
.progress-card,
.notice-card,
.qr-card,
.task-card,
.wallet-card,
.loan-hero-card,
.bottom-nav,
.quick-actions,
.menu-list {
  max-width: 100%;
  min-width: 0;
}

h1,
h2,
h3,
.wallet-card strong,
.loan-hero-card strong,
.quota-apply-card strong,
.withdraw-summary strong,
.primary-button,
.text-button,
.scan-button,
.bottom-nav button,
.quick-actions button,
.task-card strong,
.menu-list button {
  overflow-wrap: anywhere;
  word-break: break-word;
}

button,
.primary-button,
.text-button,
.scan-button,
.plain-link,
.inline-link,
.wallet-card-bottom button,
.bottom-nav button,
.quick-actions button,
.menu-list button,
.task-card {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  line-height: 1.2;
}

.field input,
.field select {
  min-width: 0;
  max-width: 100%;
}

.process-list li,
.flow-summary,
.task-card,
.direct-users-list li,
.menu-list button,
.quota-card div {
  min-width: 0;
}

@supports (height: 100dvh) {
  @media (max-width: 520px) {
    html,
    body,
    .app-preview,
    .phone,
    .screen,
    .app-screen,
    .records-flow-screen {
      height: 100dvh !important;
    }
  }
}

@media (max-width: 520px) {
  :root {
    --app-side-pad: clamp(16px, 5vw, 26px);
  }

  .screen,
  .app-screen,
  .records-flow-screen {
    padding-right: var(--app-side-pad) !important;
    padding-left: var(--app-side-pad) !important;
  }

  .screen-welcome .content,
  .app-content {
    width: 100%;
    max-width: none;
  }

  h1 {
    font-size: clamp(24px, 7.3vw, 34px) !important;
    line-height: 1.14 !important;
  }

  h2 {
    font-size: clamp(19px, 5.8vw, 26px) !important;
    line-height: 1.18 !important;
  }

  .kicker,
  .copy,
  .field span,
  .notice-card,
  .progress-card span,
  .withdraw-summary small,
  .withdraw-note p {
    font-size: clamp(12px, 3.6vw, 14px) !important;
    line-height: 1.45 !important;
  }

  .field input,
  .field select {
    font-size: clamp(15px, 4.2vw, 18px) !important;
    line-height: 1.25 !important;
  }

  .primary-button,
  .text-button,
  .scan-button {
    min-height: clamp(48px, 13vw, 56px) !important;
    padding-inline: clamp(12px, 4vw, 22px) !important;
    font-size: clamp(15px, 4.2vw, 18px) !important;
  }

  .wallet-card,
  .loan-hero-card {
    min-height: auto !important;
    gap: clamp(14px, 4vw, 22px) !important;
    padding: clamp(18px, 5vw, 24px) !important;
  }

  .wallet-card strong,
  .loan-hero-card strong {
    font-size: clamp(38px, 13vw, 64px) !important;
    line-height: 1.05 !important;
  }

  .wallet-card-bottom,
  .wallet-card-top,
  .loan-hero-card .hero-bottom {
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .wallet-card-bottom span {
    max-width: none !important;
    flex: 1 1 auto;
  }

  .wallet-card-bottom button {
    flex: 0 1 auto;
    min-height: 44px !important;
    padding-inline: clamp(14px, 4vw, 22px) !important;
    font-size: clamp(14px, 4vw, 18px) !important;
  }

  .quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(8px, 3vw, 12px) !important;
  }

  .fintech-home .quick-actions button,
  .quick-actions button {
    flex-direction: column !important;
    gap: 8px !important;
    min-height: clamp(64px, 19vw, 82px) !important;
    padding: 10px 8px !important;
    font-size: clamp(12px, 3.7vw, 15px) !important;
    white-space: normal !important;
  }

  .fintech-home .quick-actions button span,
  .quick-actions button span {
    width: clamp(28px, 8vw, 36px) !important;
    height: clamp(28px, 8vw, 36px) !important;
    font-size: clamp(16px, 5vw, 22px) !important;
  }

  .bottom-nav {
    right: var(--app-side-pad) !important;
    left: var(--app-side-pad) !important;
  }

  .bottom-nav button {
    min-width: 0 !important;
    min-height: clamp(44px, 13vw, 58px) !important;
    padding-inline: 8px !important;
    font-size: clamp(14px, 4vw, 17px) !important;
  }

  .process-list li {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
  }

  .progress-card strong {
    font-size: clamp(15px, 4.5vw, 18px) !important;
    line-height: 1.35 !important;
  }

  .referral-task-history .direct-users-list li,
  .direct-users-list li {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
  }

  .direct-users-list li span,
  .task-card p,
  .task-card h3,
  .task-card strong,
  .records-flow-screen .notice-card {
    white-space: normal !important;
  }

  .records-flow-screen .flow-hero {
    grid-template-columns: minmax(0, 1fr) minmax(72px, 24vw) !important;
  }

  .records-flow-screen .flow-hero h1 {
    font-size: clamp(22px, 6.7vw, 30px) !important;
  }

  .records-flow-screen .flow-summary {
    grid-template-columns: minmax(64px, 22vw) minmax(0, 1fr) auto !important;
    gap: 10px !important;
  }

  .records-flow-screen .flow-summary strong,
  .records-flow-screen .flow-summary strong em {
    font-size: clamp(24px, 9vw, 36px) !important;
  }

  .records-flow-screen .task-card {
    grid-template-columns: clamp(38px, 12vw, 46px) minmax(0, 1fr) minmax(42px, auto) 10px !important;
  }

  .records-flow-screen .task-card strong {
    min-width: 0 !important;
    padding-inline: 8px !important;
    font-size: clamp(10px, 3.2vw, 12px) !important;
  }

  .screen[data-screen="login"] .kicker,
  .screen[data-screen="register"] .kicker,
  .screen[data-screen="forgot"] .kicker {
    padding-left: clamp(44px, 14vw, 58px) !important;
  }
}

@media (max-width: 360px) {
  .screen,
  .app-screen,
  .records-flow-screen {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .bottom-nav {
    right: 14px !important;
    left: 14px !important;
  }

  .wallet-card strong,
  .loan-hero-card strong {
    font-size: clamp(34px, 12vw, 44px) !important;
  }

  .fintech-panel,
  .progress-card,
  .notice-card,
  .quota-card,
  .detail-card,
  .referral-task-form,
  .referral-task-history,
  .withdraw-summary,
  .withdraw-note,
  .quota-apply-card {
    border-radius: 16px !important;
    padding: 14px !important;
  }
}

.fintech-home .quick-actions button {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 22px !important;
  padding-inline: 20px !important;
}

.fintech-home .quick-actions button b {
  display: inline-block !important;
  min-width: 28px !important;
  font: inherit !important;
  font-weight: 900 !important;
  margin-left: 14px !important;
  white-space: nowrap !important;
}

.screen[data-screen="mine"] .profile-header {
  gap: 28px !important;
}

.screen[data-screen="mine"] .avatar {
  margin-right: 18px !important;
}

@media (max-width: 360px) {
  .screen {
    padding-right: 20px;
    padding-left: 20px;
  }

  h1 {
    font-size: 27px;
  }

  .art-panel {
    margin-right: -20px;
    margin-left: -20px;
  }
}

.status-banner {
  position: absolute;
  z-index: 38;
  top: 54px;
  right: 20px;
  left: 20px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(95, 124, 247, 0.16);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(63, 80, 124, 0.16);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--motion-normal) var(--motion-ease), transform var(--motion-normal) var(--motion-ease);
}

.status-banner.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.status-banner[data-status="error"] {
  border-color: rgba(229, 78, 78, 0.24);
  color: #b42318;
}

.status-banner[data-status="ready"] {
  border-color: rgba(24, 164, 103, 0.22);
  color: #047857;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* White and light-blue theme enforcement */
:root {
  --background: #edf6ff;
  --surface: #ffffff;
  --ink: #20304a;
  --muted: #7d8ca3;
  --line: #e5eefb;
  --primary: #5aa2ff;
  --primary-strong: #2f73ee;
  --accent: #91d8ff;
  --shadow: 0 24px 70px rgba(69, 118, 178, 0.16);
  --floating-nav-left: 20px;
  --floating-nav-width: 350px;
  --floating-nav-bottom: 18px;
}

html,
body,
.app-preview {
  background:
    linear-gradient(135deg, rgba(224, 241, 255, 0.98), rgba(248, 252, 255, 1)) !important;
  color: var(--ink) !important;
}

.preview-tabs {
  border-color: rgba(126, 179, 245, 0.3) !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

.phone {
  border-color: #d8e8fb !important;
  background: #ffffff !important;
}

.screen,
.screen-welcome,
.app-screen,
.fintech-home,
.records-flow-screen {
  color: var(--ink) !important;
  background:
    radial-gradient(circle at 84% 8%, rgba(145, 216, 255, 0.28), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 54%, #f2f8ff 100%) !important;
}

.art-panel,
.welcome-art,
.small-art {
  background:
    radial-gradient(circle at 78% 18%, rgba(145, 216, 255, 0.34), transparent 28%),
    linear-gradient(180deg, #f5fbff 0%, #ffffff 100%) !important;
}

.status-bar,
.fintech-header .kicker,
.fintech-header h1 {
  color: var(--ink) !important;
}

.status-icons i,
.home-indicator {
  background: #20304a !important;
}

.status-icons i:nth-child(3) {
  border-color: #20304a !important;
  background: transparent !important;
}

.wallet-card,
.loan-hero-card {
  color: #1f3558 !important;
  border-color: rgba(126, 179, 245, 0.34) !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.68), transparent 28%),
    linear-gradient(135deg, #eaf6ff 0%, #cfe8ff 48%, #78b7ff 100%) !important;
  box-shadow: 0 22px 46px rgba(69, 118, 178, 0.18) !important;
}

.wallet-card-top small,
.wallet-card-bottom button,
.compact-button,
.fintech-header .round-action {
  color: #2f73ee !important;
  background: #ffffff !important;
}

.quick-actions span {
  background: linear-gradient(135deg, #91d8ff, #5aa2ff) !important;
}

.panel-card,
.quota-card,
.detail-card,
.progress-card,
.notice-card,
.qr-card,
.legal-card,
.support-card,
.record-list li,
.ticker-window,
.bottom-nav,
.menu-list button,
.task-card,
.field input,
.field select,
.scanner-sheet {
  color: var(--ink) !important;
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

.field input[readonly] {
  color: var(--muted) !important;
  background: #f3f8ff !important;
}

.toast {
  background: rgba(47, 115, 238, 0.92) !important;
  box-shadow: 0 16px 34px rgba(69, 118, 178, 0.22) !important;
}

/* Agent polish pass: native-safe chrome, persistent navigation, selected dark finance controls */
.status-bar {
  display: none !important;
}

.screen,
.screen-welcome,
.app-screen {
  padding-top: max(28px, env(safe-area-inset-top)) !important;
}

.status-banner {
  top: max(18px, env(safe-area-inset-top)) !important;
}

.wallet-card,
.loan-hero-card {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background:
    radial-gradient(circle at 86% 20%, rgba(96, 165, 250, 0.3), transparent 34%),
    linear-gradient(135deg, #182235 0%, #101827 52%, #050a14 100%) !important;
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.22) !important;
}

.wallet-card::after {
  opacity: 0.16 !important;
}

.wallet-card strong,
.wallet-card-top span,
.wallet-card-bottom span {
  color: #ffffff !important;
}

.wallet-card-top small {
  color: #dbeafe !important;
  background: rgba(96, 165, 250, 0.18) !important;
}

.wallet-card-bottom button {
  color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18) !important;
}

.quick-actions button {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: linear-gradient(180deg, #172033 0%, #070c16 100%) !important;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18) !important;
}

.quick-actions button span {
  color: #ffffff !important;
  background: rgba(96, 165, 250, 0.2) !important;
}

.bottom-nav,
.records-flow-screen .bottom-nav {
  position: absolute !important;
  right: 20px !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  left: 20px !important;
  z-index: 44 !important;
  width: auto !important;
  margin-top: 0 !important;
}

.records-flow-screen {
  padding-bottom: max(18px, env(safe-area-inset-bottom)) !important;
}

@media (max-width: 520px) {
  .bottom-nav,
  .records-flow-screen .bottom-nav {
    position: fixed !important;
    right: max(20px, env(safe-area-inset-right)) !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    left: max(20px, env(safe-area-inset-left)) !important;
  }

  .screen,
  .app-screen {
    padding-bottom: max(108px, calc(env(safe-area-inset-bottom) + 92px)) !important;
  }
}

/* Agent polish pass 2: soften finance controls and keep tab bar at the visible phone bottom */
.wallet-card,
.loan-hero-card {
  border-color: rgba(91, 151, 218, 0.24) !important;
  background:
    radial-gradient(circle at 88% 18%, rgba(122, 190, 255, 0.26), transparent 32%),
    radial-gradient(circle at 10% 100%, rgba(185, 221, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #1d426d 0%, #17375e 48%, #102947 100%) !important;
  box-shadow:
    0 18px 36px rgba(52, 106, 166, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.wallet-card strong {
  text-shadow: none !important;
}

.quick-actions {
  gap: 10px !important;
}

.quick-actions button {
  min-height: 86px !important;
  color: #20304a !important;
  border-color: rgba(170, 210, 250, 0.7) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 246, 255, 0.94)) !important;
  box-shadow: 0 12px 24px rgba(69, 118, 178, 0.12) !important;
}

.quick-actions button span {
  color: #ffffff !important;
  background: linear-gradient(135deg, #1d426d, #2f73ee) !important;
}

.bottom-nav,
.records-flow-screen .bottom-nav {
  position: fixed !important;
  right: 20px !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  left: 20px !important;
  z-index: 72 !important;
  width: auto !important;
  margin-top: 0 !important;
}

.screen,
.app-screen,
.records-flow-screen {
  padding-bottom: max(118px, calc(env(safe-area-inset-bottom) + 98px)) !important;
}

.screen[data-screen="apply"] {
  align-content: start !important;
  overflow-y: auto;
  padding-top: 26px !important;
  padding-bottom: 24px !important;
}

.screen[data-screen="apply"] .centered-flow {
  align-content: start !important;
  min-height: auto !important;
  padding-top: 22px;
  padding-bottom: 18px;
}

.screen[data-screen="apply"] .process-list,
.screen[data-screen="apply"] .notice-card {
  width: 100%;
}

.screen[data-screen="identity"] .compact-form {
  margin-top: 18px;
}

.screen[data-screen="apply"] .app-content {
  gap: 12px;
}

.screen[data-screen="apply"] h1 {
  font-size: 24px;
  padding-left: 34px;
}

.screen[data-screen="apply"] .kicker {
  padding-left: 34px;
}

.screen[data-screen="apply"] .back-button {
  top: 48px;
  left: 20px;
  width: 32px;
  height: 32px;
  font-size: 28px;
  box-shadow: 0 8px 18px rgba(63, 80, 124, 0.1);
}

.screen[data-screen="apply"] .process-list {
  gap: 8px;
  margin: 0 0 6px;
}

.screen[data-screen="apply"] .process-list li {
  padding: 11px 14px;
  border-radius: 16px;
}

.screen[data-screen="apply"] .notice-card {
  padding: 11px 14px;
  border-radius: 16px;
  line-height: 1.45;
}

.screen[data-screen="apply"] .field {
  gap: 6px;
}

.screen[data-screen="apply"] .field input,
.screen[data-screen="payout"] .field select,
.screen[data-screen="apply"] .primary-button {
  min-height: 50px;
  border-radius: 16px;
}

.phone:has(.screen.is-active .bottom-nav) .toast {
  bottom: max(106px, calc(env(safe-area-inset-bottom) + 94px)) !important;
}

/* Agent polish pass 3: viewport-following tab bar inside the visible phone area */
.screen.is-active {
  transform: none !important;
}

@media (min-width: 521px) {
  .bottom-nav,
  .records-flow-screen .bottom-nav {
    position: fixed !important;
    left: var(--floating-nav-left) !important;
    right: auto !important;
    bottom: var(--floating-nav-bottom) !important;
    width: var(--floating-nav-width) !important;
    z-index: 120 !important;
    margin: 0 !important;
    pointer-events: auto !important;
  }
}

.screen.is-active {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* 真机 App 模式：保守覆盖，避免 Android WebView 出现透明白屏 */
@media (max-width: 520px) {
  html,
  body,
  .app-preview {
    min-height: 100vh !important;
    background: #f5fbff !important;
  }

  .phone {
    width: 100vw !important;
    min-height: 100vh !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f5fbff !important;
    box-shadow: none !important;
  }

  .screen {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    background:
      radial-gradient(circle at 88% 4%, rgba(145, 216, 255, 0.22), transparent 30%),
      linear-gradient(180deg, #f8fcff 0%, #ffffff 58%, #eef7ff 100%) !important;
  }

  .screen:not(.is-active) {
    display: none !important;
  }

  .screen.is-active {
    display: grid !important;
    pointer-events: auto !important;
  }

  .screen-welcome {
    min-height: 100vh !important;
    grid-template-rows: minmax(260px, 42vh) auto !important;
    padding-top: max(12px, env(safe-area-inset-top)) !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
  }

  .screen-welcome .art-panel {
    display: block !important;
    min-height: 260px !important;
    margin: 0 -26px !important;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
  }

  .screen-welcome .content {
    gap: 12px;
    padding-top: 20px;
  }

  .screen[data-screen="login"],
  .screen[data-screen="register"],
  .screen[data-screen="forgot"] {
    min-height: 100vh !important;
    padding-top: max(58px, calc(env(safe-area-inset-top) + 42px)) !important;
  }

  .screen[data-screen="login"] .art-panel,
  .screen[data-screen="register"] .art-panel,
  .screen[data-screen="forgot"] .art-panel {
    display: none !important;
  }

  h1 {
    font-size: 28px;
  }

  .primary-button,
  .text-button,
  .scan-button {
    min-height: 52px !important;
    border-radius: 16px !important;
  }

  .back-button {
    top: max(16px, calc(env(safe-area-inset-top) + 8px)) !important;
    left: max(18px, env(safe-area-inset-left)) !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 30px !important;
  }
}

/* 测试 APK 移动端外壳：每个界面独立滚动，底部导航固定在设备底部 */
@media (max-width: 520px) {
  button:focus,
  button:focus-visible {
    outline: 0 !important;
  }

  html,
  body,
  .app-preview,
  .phone {
    height: 100vh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .phone {
    position: relative !important;
    width: 100vw !important;
  }

  .screen,
  .app-screen,
  .records-flow-screen {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: var(--app-bottom-nav-clearance) !important;
    -webkit-overflow-scrolling: touch;
  }

  .screen:not(.is-active) {
    display: none !important;
  }

  .screen.is-active {
    display: flex !important;
    flex-direction: column !important;
  }

  .screen[data-screen="login"],
  .screen[data-screen="register"],
  .screen[data-screen="forgot"],
  .screen[data-screen="payout"],
  .screen[data-screen="withdraw"],
  .screen[data-screen="voucher"],
  .screen[data-screen="account"] {
    align-content: start !important;
  }

  .app-content,
  .compact-form,
  .auth-form {
    min-height: 0 !important;
  }

  .bottom-nav,
  .records-flow-screen .bottom-nav {
    position: absolute !important;
    right: auto !important;
    bottom: var(--app-nav-safe-bottom) !important;
    left: auto !important;
    z-index: 200 !important;
    width: calc(100% - 40px) !important;
    margin: 0 20px !important;
  }

  body.keyboard-open .screen.is-active {
    padding-bottom: calc(var(--keyboard-height, 300px) + 24px) !important;
  }

  body.keyboard-open .bottom-nav {
    display: none !important;
  }
}

@media (max-width: 520px) {
  body.keyboard-open .screen.is-active {
    padding-bottom: var(--app-bottom-nav-clearance) !important;
  }

  body.keyboard-open .screen[data-screen="payout"] {
    padding-bottom: 24px !important;
  }
}

/* 真机最终保险：底部导航固定在可视底边，不依赖 Android WebView 的 env/max 计算 */
@media (max-width: 520px) {
  .screen.is-active {
    display: flex !important;
    flex-direction: column !important;
  }

  .bottom-nav,
  .screen.is-active > .bottom-nav,
  .records-flow-screen.screen.is-active > .bottom-nav {
    position: fixed !important;
    top: auto !important;
    right: 20px !important;
    bottom: 18px !important;
    left: 20px !important;
    z-index: 240 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    transform: translateZ(0);
    background: #ffffff !important;
    box-shadow: 0 12px 28px rgba(63, 80, 124, 0.16) !important;
  }

  .screen.is-active > :not(.bottom-nav) {
    flex-shrink: 0;
  }

  .screen.is-active:has(> .bottom-nav),
  .records-flow-screen.screen.is-active {
    padding-bottom: 206px !important;
    scroll-padding-bottom: 206px !important;
  }

  .records-flow-screen .flow-cta {
    display: none !important;
  }

  .records-flow-screen.screen.is-active {
    gap: 10px !important;
    padding-top: 42px !important;
  }

  .records-flow-screen .flow-hero {
    grid-template-columns: minmax(0, 1fr) 86px !important;
    gap: 8px !important;
  }

  .records-flow-screen .flow-hero h1 {
    font-size: 24px !important;
    line-height: 1.12 !important;
  }

  .records-flow-screen .flow-hero p:last-child {
    margin-top: 6px !important;
    font-size: 13px !important;
    line-height: 1.42 !important;
  }

  .records-flow-screen .flow-visual {
    width: 86px !important;
    height: 86px !important;
  }

  .records-flow-screen .flow-wallet {
    width: 70px !important;
    height: 54px !important;
  }

  .records-flow-screen .flow-board {
    width: 52px !important;
    height: 68px !important;
  }

  .records-flow-screen .flow-summary {
    grid-template-columns: 78px minmax(0, 1fr) 36px !important;
    min-height: 86px !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border-radius: 20px !important;
  }

  .records-flow-screen .flow-summary strong {
    margin-top: 5px !important;
    font-size: 26px !important;
  }

  .records-flow-screen .flow-summary strong em {
    font-size: 36px !important;
  }

  .records-flow-screen .flow-progress {
    margin-top: 10px !important;
  }

  .records-flow-screen .task-section {
    gap: 10px !important;
  }

  .records-flow-screen .task-title {
    gap: 4px !important;
  }

  .records-flow-screen .task-title h2 {
    font-size: 19px !important;
  }

  .records-flow-screen .task-title p {
    font-size: 12px !important;
  }

  .records-flow-screen .task-list {
    gap: 8px !important;
  }

  .records-flow-screen .task-card {
    grid-template-columns: 46px minmax(0, 1fr) auto 12px !important;
    min-height: 72px !important;
    gap: 10px !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }

  .records-flow-screen .task-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 15px !important;
  }

  .records-flow-screen .task-card h3 {
    font-size: 15px !important;
  }

  .records-flow-screen .task-card p {
    margin-top: 3px !important;
    font-size: 11px !important;
  }

  .records-flow-screen .task-card strong {
    min-height: 30px !important;
    padding: 0 10px !important;
    border-radius: 11px !important;
    font-size: 12px !important;
  }

  .records-flow-screen::after {
    content: "";
    display: block;
    flex: 0 0 128px;
  }

  .bottom-nav button,
  .bottom-nav button:focus,
  .bottom-nav button:focus-visible {
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: 0 !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .fintech-home.screen.is-active {
    gap: 10px !important;
    padding-top: 44px !important;
    padding-bottom: 106px !important;
  }

  .fintech-home .app-header {
    min-height: 66px;
  }

  .fintech-home .wallet-card {
    min-height: 202px !important;
    gap: 18px !important;
    padding: 20px !important;
    border-radius: 26px !important;
  }

  .fintech-home .quick-actions {
    gap: 10px !important;
  }

  .fintech-home .quick-actions button {
    min-height: 76px !important;
    border-radius: 20px !important;
  }

  .fintech-home.screen.is-active > .fintech-panel {
    display: flex !important;
    flex: 0 1 auto !important;
    flex-direction: column !important;
    flex-shrink: 1 !important;
    min-height: 242px !important;
    max-height: 300px !important;
    padding: 20px 18px !important;
  }

  .fintech-home .ticker-window {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 132px !important;
  }

  .fintech-home.screen.is-active {
    gap: 12px !important;
    padding-top: 42px !important;
    padding-bottom: 112px !important;
  }

  .fintech-home .wallet-card {
    min-height: 218px !important;
    gap: 20px !important;
    padding: 22px 20px 24px !important;
  }

  .fintech-home .wallet-card-bottom {
    align-items: flex-end !important;
  }

  .fintech-home .wallet-card-bottom span {
    max-width: 58% !important;
    line-height: 1.45 !important;
  }

  .fintech-home .wallet-card-bottom button {
    min-height: 46px !important;
    padding: 0 18px !important;
  }

  .fintech-home .quick-actions {
    margin-top: 8px !important;
  }

  .fintech-home .quick-actions button {
    min-height: 68px !important;
  }

  .fintech-home.screen.is-active > .fintech-panel {
    min-height: 276px !important;
    max-height: none !important;
    padding: 18px !important;
  }

  .fintech-home .ticker-window {
    min-height: 170px !important;
  }

  .screen[data-screen="mine"].screen.is-active {
    gap: 14px !important;
    padding-top: 34px !important;
  }

  .screen[data-screen="mine"] .profile-header {
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    padding: 8px 0 0 !important;
  }

  .screen[data-screen="mine"] .menu-list {
    gap: 10px !important;
    margin-top: 8px !important;
  }

  .screen[data-screen="mine"] .menu-list button {
    min-height: 54px !important;
  }

  .screen[data-screen="login"],
  .screen[data-screen="register"],
  .screen[data-screen="forgot"] {
    padding-top: max(82px, calc(env(safe-area-inset-top) + 66px)) !important;
  }

  .screen[data-screen="login"] .content,
  .screen[data-screen="register"] .content,
  .screen[data-screen="forgot"] .content {
    padding-top: 10px !important;
  }

  .screen[data-screen="login"] .kicker,
  .screen[data-screen="register"] .kicker,
  .screen[data-screen="forgot"] .kicker {
    min-height: 36px !important;
    padding-left: 58px !important;
    display: flex !important;
    align-items: center !important;
  }

  .fintech-home .quick-actions button {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 68px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .fintech-home .quick-actions button span {
    width: 29px !important;
    height: 29px !important;
    border-radius: 11px !important;
    font-size: 18px !important;
    flex: 0 0 auto !important;
  }

  .fintech-home.screen.is-active > .fintech-panel {
    min-height: 286px !important;
    height: auto !important;
  }

  .fintech-home .ticker-window {
    height: 224px !important;
    min-height: 224px !important;
  }

  body.keyboard-open .screen.is-active {
    padding-bottom: calc(var(--keyboard-height, 260px) + 14px) !important;
    scroll-padding-bottom: calc(var(--keyboard-height, 260px) + 14px) !important;
  }

  body.keyboard-open .bottom-nav,
  body.keyboard-open .screen.is-active > .bottom-nav {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .fintech-home .quick-actions {
    gap: 12px !important;
  }

  .fintech-home .quick-actions button {
    gap: 20px !important;
    min-height: 70px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    justify-content: center !important;
  }

  .fintech-home .quick-actions button span {
    width: 28px !important;
    height: 28px !important;
    border-radius: 10px !important;
    font-size: 17px !important;
  }

  .screen[data-screen="mine"] .profile-header {
    gap: 20px !important;
    padding-top: 14px !important;
  }

  .screen[data-screen="mine"] .avatar {
    width: 50px !important;
    height: 50px !important;
    border-radius: 15px !important;
    font-size: 24px !important;
  }

  .screen[data-screen="mine"] .profile-header h1 {
    margin-top: 0 !important;
    font-size: 27px !important;
    line-height: 1.1 !important;
  }

  .records-flow-screen .notice-card {
    display: flex !important;
    align-items: center !important;
    min-height: 48px !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
}

/* 最终设备兼容覆盖：必须放在文件末尾，防止前面的历史机型规则重新固定宽度/禁止换行 */
@media (max-width: 520px) {
  .screen,
  .app-screen,
  .records-flow-screen {
    padding-right: clamp(14px, 5vw, 24px) !important;
    padding-left: clamp(14px, 5vw, 24px) !important;
  }

  .bottom-nav,
  .screen.is-active > .bottom-nav,
  .records-flow-screen.screen.is-active > .bottom-nav {
    right: clamp(14px, 5vw, 20px) !important;
    left: clamp(14px, 5vw, 20px) !important;
    width: auto !important;
  }

  h1 {
    font-size: clamp(24px, 7.2vw, 32px) !important;
    line-height: 1.14 !important;
  }

  .wallet-card strong,
  .loan-hero-card strong {
    font-size: clamp(34px, 12vw, 58px) !important;
    line-height: 1.05 !important;
  }

  .primary-button,
  .text-button,
  .scan-button,
  .wallet-card-bottom button,
  .bottom-nav button,
  .quick-actions button,
  .menu-list button,
  .task-card,
  .task-card strong,
  .records-flow-screen .notice-card,
  .fintech-home .quick-actions button,
  .fintech-home .quick-actions button b {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-height: 1.2 !important;
  }

  .fintech-home .quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(8px, 3vw, 12px) !important;
  }

  .fintech-home .quick-actions button,
  .quick-actions button {
    flex-direction: column !important;
    gap: 8px !important;
    min-height: clamp(64px, 18vw, 78px) !important;
    padding: 9px 6px !important;
    font-size: clamp(12px, 3.6vw, 15px) !important;
  }

  .fintech-home .quick-actions button b {
    margin-left: 0 !important;
  }

  .fintech-home .quick-actions button span,
  .quick-actions button span {
    flex: 0 0 auto !important;
    width: clamp(28px, 8vw, 34px) !important;
    height: clamp(28px, 8vw, 34px) !important;
    font-size: clamp(16px, 5vw, 21px) !important;
  }

  .wallet-card-bottom {
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .wallet-card-bottom span {
    flex: 1 1 auto !important;
    max-width: none !important;
  }

  .wallet-card-bottom button {
    flex: 0 1 auto !important;
    padding-inline: clamp(12px, 4vw, 20px) !important;
    font-size: clamp(14px, 4vw, 18px) !important;
  }

  .process-list li,
  .direct-users-list li,
  .quota-card div {
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-width: 0 !important;
  }

  .records-flow-screen .flow-hero {
    grid-template-columns: minmax(0, 1fr) minmax(66px, 22vw) !important;
  }

  .records-flow-screen .flow-summary {
    grid-template-columns: minmax(58px, 22vw) minmax(0, 1fr) auto !important;
  }

  .records-flow-screen .task-card {
    grid-template-columns: clamp(36px, 12vw, 44px) minmax(0, 1fr) minmax(38px, auto) 10px !important;
  }

  .field input,
  .field select {
    min-width: 0 !important;
    font-size: clamp(15px, 4.2vw, 18px) !important;
  }
}

@media (max-width: 340px) {
  .screen,
  .app-screen,
  .records-flow-screen {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .wallet-card,
  .loan-hero-card,
  .progress-card,
  .notice-card,
  .quota-card,
  .detail-card,
  .referral-task-form,
  .referral-task-history,
  .withdraw-summary,
  .withdraw-note,
  .quota-apply-card {
    padding: 12px !important;
    border-radius: 15px !important;
  }

  .wallet-card strong,
  .loan-hero-card strong {
    font-size: clamp(31px, 11.5vw, 39px) !important;
  }

  .records-flow-screen .flow-hero {
    grid-template-columns: minmax(0, 1fr) minmax(58px, 20vw) !important;
    gap: 6px !important;
  }

  .records-flow-screen .flow-visual {
    justify-self: end !important;
    width: clamp(58px, 20vw, 72px) !important;
    height: clamp(58px, 20vw, 72px) !important;
    overflow: hidden !important;
  }

  .records-flow-screen .flow-wallet {
    width: clamp(50px, 17vw, 62px) !important;
    height: clamp(38px, 13vw, 48px) !important;
  }

  .records-flow-screen .flow-board {
    width: clamp(38px, 13vw, 48px) !important;
    height: clamp(48px, 16vw, 60px) !important;
  }

  .records-flow-screen .flow-visual i {
    width: clamp(24px, 8vw, 30px) !important;
    height: clamp(24px, 8vw, 30px) !important;
  }
}

@media (max-width: 520px) {
  .fintech-home.screen.is-active,
  .records-flow-screen.screen.is-active,
  .screen[data-screen="mine"].screen.is-active {
    padding-right: max(18px, env(safe-area-inset-right)) !important;
    padding-left: max(18px, env(safe-area-inset-left)) !important;
  }

  .fintech-home .app-header,
  .fintech-home .wallet-card,
  .fintech-home .quick-actions,
  .fintech-home.screen.is-active > .fintech-panel,
  .records-flow-screen .flow-hero,
  .records-flow-screen .flow-summary,
  .records-flow-screen .task-section,
  .records-flow-screen .record-section,
  .screen[data-screen="mine"] .profile-header,
  .screen[data-screen="mine"] .menu-list,
  .screen[data-screen="mine"] .invite-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

.phone > .fintech-home.screen.is-active,
.phone > .records-flow-screen.screen.is-active,
.phone > .screen[data-screen="mine"].screen.is-active {
  box-sizing: border-box !important;
  padding-right: 24px !important;
  padding-left: 24px !important;
  padding-right: clamp(18px, 5vw, 56px) !important;
  padding-left: clamp(18px, 5vw, 56px) !important;
}

@media (max-width: 520px) {
  .phone > .records-flow-screen.screen.is-active {
    gap: 15px !important;
  }

  .records-flow-screen .flow-summary {
    margin-bottom: 6px !important;
  }

  .records-flow-screen .task-section {
    gap: 14px !important;
  }

  .records-flow-screen .task-title {
    gap: 7px !important;
    padding-top: 4px !important;
    padding-bottom: 3px !important;
  }

  .records-flow-screen .task-title h2 {
    line-height: 1.24 !important;
  }

  .records-flow-screen .task-title p {
    line-height: 1.45 !important;
  }

  .records-flow-screen .task-card h3 {
    line-height: 1.26 !important;
  }

  .records-flow-screen .task-card p {
    margin-top: 5px !important;
    line-height: 1.38 !important;
  }
}

/* 手机首页底部留白：让信息展示板块和固定导航栏保持清晰分隔 */
@media (max-width: 520px) {
  .fintech-home.screen.is-active {
    gap: 14px !important;
    padding-bottom: 176px !important;
    scroll-padding-bottom: 176px !important;
  }

  .fintech-home.screen.is-active > .fintech-panel {
    min-height: 242px !important;
    margin-bottom: 34px !important;
    padding-bottom: 22px !important;
  }

  .fintech-home .ticker-window {
    min-height: 138px !important;
  }

  .fintech-home.screen.is-active > .bottom-nav {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    margin: 14px 0 max(24px, env(safe-area-inset-bottom)) !important;
    transform: none !important;
  }

  .fintech-home.screen.is-active > .fintech-panel {
    margin-bottom: 0 !important;
  }

  .fintech-home.screen.is-active,
  .records-flow-screen.screen.is-active {
    padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
    scroll-padding-bottom: 24px !important;
  }

  .fintech-home.screen.is-active > .bottom-nav,
  .records-flow-screen.screen.is-active > .bottom-nav {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 20 !important;
    width: 100% !important;
    margin: 14px 0 max(24px, env(safe-area-inset-bottom)) !important;
    transform: none !important;
  }

  .fintech-home.screen.is-active > .fintech-panel {
    margin-bottom: 0 !important;
  }

  .records-flow-screen::after {
    display: none !important;
    content: none !important;
  }
}

/* 桌面网页模式：大屏使用居中的应用面板，手机端继续使用 App 全屏布局 */
@media (min-width: 721px) {
  html,
  body {
    min-height: 100%;
    overflow: auto;
    background:
      radial-gradient(circle at 18% 12%, rgba(95, 124, 247, 0.16), transparent 30%),
      radial-gradient(circle at 86% 8%, rgba(110, 216, 198, 0.16), transparent 28%),
      linear-gradient(135deg, #eef7ff 0%, #f8fbff 46%, #eef4ff 100%);
  }

  .app-preview {
    display: grid;
    min-height: 100vh;
    padding: clamp(28px, 5vh, 56px) clamp(28px, 5vw, 72px);
    place-items: center;
  }

  .preview-tabs,
  .status-bar,
  .home-indicator {
    display: none !important;
  }

  .phone {
    width: min(860px, calc(100vw - 72px)) !important;
    height: auto !important;
    min-height: min(680px, calc(100vh - 96px)) !important;
    max-height: none !important;
    overflow: visible !important;
    border: 1px solid rgba(216, 226, 241, 0.92) !important;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 28px 80px rgba(63, 80, 124, 0.16) !important;
  }

  .screen {
    position: relative !important;
    inset: auto !important;
    display: none !important;
    height: auto !important;
    min-height: min(680px, calc(100vh - 96px)) !important;
    overflow: visible !important;
    padding: clamp(34px, 5vh, 54px) clamp(34px, 5vw, 64px) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: none !important;
    background: transparent !important;
  }

  .screen.is-active {
    display: grid !important;
  }

  .screen[data-screen="login"],
  .screen[data-screen="register"],
  .screen[data-screen="forgot"] {
    align-content: center !important;
    grid-template-rows: auto !important;
    gap: 0 !important;
  }

  .screen[data-screen="login"] .art-panel,
  .screen[data-screen="register"] .art-panel,
  .screen[data-screen="forgot"] .art-panel {
    display: none !important;
  }

  .screen[data-screen="login"] .back-button,
  .screen[data-screen="register"] .back-button,
  .screen[data-screen="forgot"] .back-button {
    display: none !important;
  }

  .screen[data-screen="login"] .content,
  .screen[data-screen="register"] .content,
  .screen[data-screen="forgot"] .content {
    width: min(560px, 100%) !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  .screen[data-screen="login"] h1,
  .screen[data-screen="register"] h1,
  .screen[data-screen="forgot"] h1 {
    font-size: 30px !important;
    line-height: 1.16 !important;
  }

  .screen[data-screen="login"] .copy,
  .screen[data-screen="register"] .copy,
  .screen[data-screen="forgot"] .copy {
    max-width: 520px !important;
  }

  .screen[data-screen="login"] .auth-form,
  .screen[data-screen="register"] .auth-form,
  .screen[data-screen="forgot"] .auth-form {
    width: 100% !important;
    gap: 14px !important;
    margin-top: 12px !important;
  }

  .screen[data-screen="login"] .field input,
  .screen[data-screen="register"] .field input,
  .screen[data-screen="forgot"] .field input,
  .screen[data-screen="register"] .manual-invite-field input,
  .screen[data-screen="login"] .code-field button,
  .screen[data-screen="register"] .code-field button,
  .screen[data-screen="forgot"] .code-field button {
    min-height: 50px !important;
    border-radius: 14px !important;
  }

  .screen[data-screen="login"] .primary-button,
  .screen[data-screen="register"] .primary-button,
  .screen[data-screen="forgot"] .primary-button {
    width: 100% !important;
    min-height: 52px !important;
    border-radius: 14px !important;
  }

  .screen[data-screen="login"] .inline-link {
    justify-self: end !important;
    margin: -2px 0 4px !important;
  }

  .screen[data-screen="login"] .switch-copy,
  .screen[data-screen="register"] .switch-copy,
  .screen[data-screen="forgot"] .switch-copy {
    justify-content: flex-start !important;
    margin-top: 12px !important;
  }

  .app-screen,
  .fintech-home.screen.is-active,
  .records-flow-screen.screen.is-active,
  .screen[data-screen="mine"].screen.is-active {
    padding-right: clamp(34px, 5vw, 64px) !important;
    padding-left: clamp(34px, 5vw, 64px) !important;
  }

  .bottom-nav {
    position: sticky !important;
    right: auto !important;
    bottom: 0 !important;
    left: auto !important;
    width: 100% !important;
    margin-top: 24px !important;
  }
}
