/* Account finance pages: one responsive scroll container, shared card edges. */
html:root body #app#app#app:has(> .app:is(.route-withdraw, .route-income)) {
  height: 100vh;
  height: 100dvh;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
}

html:root body #app#app#app > .app:is(.route-withdraw, .route-income),
html:root body #app#app#app > .app:is(.route-withdraw, .route-income).route-fixed {
  box-sizing: border-box;
  width: 100%;
  max-width: 428px;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  touch-action: pan-x pan-y !important;
  overscroll-behavior-y: contain !important;
  -webkit-overflow-scrolling: touch;
  background: #000 !important;
  scroll-padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

html:root body #app#app#app > .app:is(.route-withdraw, .route-income) > .page {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  height: auto !important;
  min-height: 100% !important;
  overflow: visible !important;
  background: #000 !important;
  --finance-edge: clamp(12px, 3.73vw, 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html:root body #app#app#app :is(.original-withdraw-head, .original-income-head, .original-withdraw-tabs) {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
}

html:root body #app#app#app .original-withdraw .original-withdraw-content {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  min-height: 0;
  padding: 14px var(--finance-edge) calc(28px + env(safe-area-inset-bottom, 0px));
}

html:root body #app#app#app .original-withdraw :is(.original-withdraw-wallet, .original-withdraw-form, .original-withdraw-tips) {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  margin-inline: 0 !important;
  height: auto !important;
}

html:root body #app#app#app .original-withdraw .original-withdraw-wallet {
  min-height: 72px;
  padding: 18px 16px;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, .16);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(177deg, #1b191e, #17141b) !important;
}

html:root body #app#app#app .original-withdraw .original-withdraw-wallet img {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  object-fit: contain;
}

html:root body #app#app#app .original-withdraw .original-withdraw-form {
  padding: 18px 16px 24px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(177deg, #19171c, #110e15) !important;
}

html:root body #app#app#app .original-withdraw :is(.withdraw-label, .withdraw-input, .original-withdraw-submit) {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
}

html:root body #app#app#app .original-withdraw .withdraw-input {
  display: flex;
  align-items: center;
  min-height: 48px;
  height: auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, .045) !important;
}

html:root body #app#app#app .original-withdraw .withdraw-input > input {
  box-sizing: border-box;
  flex: 1 1 0;
  width: 0 !important;
  min-width: 0;
  min-height: 48px;
  padding-inline: 12px;
  font-size: 16px;
  background: transparent !important;
}

html:root body #app#app#app .original-withdraw :is(.withdraw-all, .withdraw-select) {
  flex-shrink: 0;
  white-space: nowrap;
}

html:root body #app#app#app .original-withdraw .withdraw-password-setup {
  max-width: 100%;
  min-height: 48px;
  white-space: normal;
}

html:root body #app#app#app .original-withdraw .original-withdraw-submit {
  min-height: 48px;
  height: auto;
  padding: 12px 16px;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
}

html:root body #app#app#app .original-withdraw .original-withdraw-help {
  height: auto;
  min-height: 24px;
  line-height: 1.7;
  white-space: normal;
}

html:root body #app#app#app .original-withdraw .original-withdraw-tips {
  margin-top: 16px;
  padding: 0;
}

html:root body #app#app#app .original-withdraw .original-withdraw-tips p {
  line-height: 1.7;
  overflow-wrap: anywhere;
}

html:root body #app#app#app .original-withdraw .withdraw-address-menu {
  max-height: min(240px, 35dvh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  background: #29252f;
}

html:root body #app#app#app .original-income .original-income-body {
  padding-top: 16px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

html:root body #app#app#app .original-income .original-income-card {
  border-radius: 14px;
  background: linear-gradient(177deg, #151416, #100c15) !important;
}

html:root body #app#app#app .original-income .original-income-card.commission {
  margin-top: 16px;
}

html:root body #app#app#app .original-income .original-income-triple > div {
  background: #242025 !important;
}

html:root body #app#app#app .original-income .original-income-triple span {
  font-size: clamp(11px, 3.2vw, 13.696px);
}

html:root body #app#app#app .original-income .original-income-link {
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 9px;
  background: linear-gradient(180deg, #1d1921, #2b2630) !important;
}

html:root body #app#app#app .original-income .original-income-notes {
  margin-top: 12px;
}

html:root body #app#app#app :is(.original-income-head > button, .original-withdraw-back) {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  background: #17161c !important;
}

html:root body #app#app#app .original-income .original-income-row b {
  position: relative;
  padding-right: 32px;
  background: none !important;
}

html:root body #app#app#app .original-income .original-income-row b::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 4px;
  background: linear-gradient(135deg, #3a383e, #1b191e);
  transform: translateY(-50%);
}

html:root body #app#app#app .original-income .original-income-row b::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 9px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}


/* Withdrawal field reference: one continuous dark surface, no purple input paint. */
html:root body #app#app#app#app > .app.route-withdraw > .page.original-withdraw {--finance-edge:clamp(14px,4.67vw,20px)}
html:root body #app#app#app#app .original-withdraw .original-withdraw-wallet {background:linear-gradient(165deg,#1a191c,#17151a)!important}
html:root body #app#app#app#app .original-withdraw .original-withdraw-form {padding:20px 16px 24px;border:0;border-radius:16px!important;background:linear-gradient(160deg,#1a1a1b,#100e13)!important}
html:root body #app#app#app#app .original-withdraw .withdraw-label {display:block;width:100%;margin:0 0 11px;padding:0;color:#b5b5b8;font-size:16px!important;font-weight:400!important;line-height:24px}
html:root body #app#app#app#app .original-withdraw .withdraw-address-label {display:flex!important;align-items:center;gap:13px;margin:0 0 17px!important;min-height:24px}
html:root body #app#app#app#app .original-withdraw .withdraw-address-label>span {flex:1 1 auto;min-width:0}
html:root body #app#app#app#app .original-withdraw .withdraw-input {box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;height:48px!important;min-height:48px;margin:0 0 10px!important;padding:0;border:0!important;border-radius:9px!important;background:#0c0c0f!important;box-shadow:none!important}
html:root body #app#app#app#app .original-withdraw .withdraw-input>input {box-sizing:border-box;flex:1 1 0;width:0!important;min-width:0;max-width:100%;height:48px;min-height:48px;margin:0;padding:0 12px!important;border:0!important;border-radius:9px;background:transparent!important;box-shadow:none!important;color:#e8e8e8;font-size:16px!important;font-weight:400!important;line-height:24px;-webkit-appearance:none;appearance:none}
html:root body #app#app#app#app .original-withdraw .withdraw-input>input::placeholder {color:#77777a!important;opacity:1!important}
html:root body #app#app#app#app .original-withdraw .withdraw-all {flex:0 0 auto;width:auto;min-width:86px;height:48px;min-height:48px;margin:0;padding:0 18px 0 10px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#439ed3;font-size:16px;line-height:24px}
html:root body #app#app#app#app .original-withdraw .withdraw-bind {flex:0 0 auto;width:auto;margin:0;padding:0;border:0;background:transparent!important;color:#439ed3;font-size:16px;font-weight:400;line-height:24px}
html:root body #app#app#app#app .withdraw-scan {position:relative;display:inline-flex!important;flex:0 0 24px;align-items:center;justify-content:center;box-sizing:border-box;width:24px!important;height:24px!important;min-width:24px;min-height:24px;margin:0!important;padding:2px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#eee;cursor:pointer}
html:root body #app#app#app#app .withdraw-scan::before,html:root body #app#app#app#app .withdraw-scan::after {display:none!important;content:none!important}
html:root body #app#app#app#app .withdraw-scan>svg {display:block;width:100%;height:100%;overflow:visible}
html:root body #app#app#app#app .original-withdraw .withdraw-select {flex:0 0 24px;width:24px;height:24px;min-height:24px;margin:0 12px 0 0;border:0;border-radius:6px!important;background:#29292c!important;box-shadow:none}
html:root body #app#app#app#app .original-withdraw .withdraw-select:after {left:7px;top:6px;width:8px;height:8px;border-width:0 1.5px 1.5px 0}
html:root body #app#app#app#app .original-withdraw .withdraw-address-input {margin-bottom:9px!important;overflow:visible!important}
html:root body .wallet-address-overlay .wallet-address-scannable {display:flex!important;align-items:center;min-width:0;padding-right:10px}
html:root body .wallet-address-overlay .wallet-address-scannable>#newWithdrawAddress {flex:1 1 0;width:0!important;min-width:0}
html:root body .wallet-address-overlay .wallet-address-scan {display:inline-flex!important;flex:0 0 24px;align-items:center;justify-content:center;box-sizing:border-box;width:24px!important;height:24px!important;min-width:24px;min-height:24px;margin:0!important;padding:2px!important;border:0!important;background:transparent!important;color:#eee;box-shadow:none!important}
html:root body .wallet-address-overlay .wallet-address-scan::before,html:root body .wallet-address-overlay .wallet-address-scan::after {content:none!important;display:none!important}
html:root body .wallet-address-overlay .wallet-address-scan>svg {display:block;width:20px;height:20px}
