body.app-page {
    margin: 0;
    min-height: 100vh;
    background: #fff;
    color: #2a2a2a;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Match the language sheet: start immediately, then rise/fall over half a second. */
.sheet-motion > .account-sheet,
.sheet-motion > .bank-picker-sheet {
    transform: translateY(100%);
    transition: transform .5s ease-in-out;
}

.sheet-motion > .account-backdrop,
.sheet-motion > .bank-picker-backdrop {
    opacity: 0;
    transition: opacity .5s ease;
}

.sheet-motion.is-open > .account-sheet,
.sheet-motion.is-open > .bank-picker-sheet {
    transform: translateY(0);
}

.sheet-motion.is-open > .account-backdrop,
.sheet-motion.is-open > .bank-picker-backdrop {
    opacity: 1;
}

.sheet-motion:not(.is-open) > .account-sheet,
.sheet-motion:not(.is-open) > .bank-picker-sheet {
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .sheet-motion > .account-sheet,
    .sheet-motion > .bank-picker-sheet,
    .sheet-motion > .account-backdrop,
    .sheet-motion > .bank-picker-backdrop { transition: none; }
}

/* Match the homepage's base sizing even on pages without Bootstrap. */
.app-page *,
.app-page *::before,
.app-page *::after {
    box-sizing: border-box;
}

.app-page .app-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--app-shell-max-width);
    min-height: 100vh;
    margin: 0 auto;
    padding-top: calc(var(--app-header-height) + env(safe-area-inset-top)) !important;
    padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
}

.app-page.has-site-footer .app-shell {
    padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important;
}

.app-page .app-shell > .page {
    padding-top: 0;
}

.site-header {
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--app-shell-max-width);
    height: calc(var(--app-header-height) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) calc(var(--app-header-unit) * .4) 0;
    margin: 0 auto;
    transform: none;
    border-bottom: 1px solid #f5f5f5;
    background: #fff;
    box-shadow: 0 1px 10px rgba(191, 199, 221, .25);
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI", Arial, Roboto, "PingFang SC", miui, "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
}

.site-header-title {
    position: absolute;
    top: calc(50% + env(safe-area-inset-top) * .5);
    right: var(--app-header-title-inset);
    left: var(--app-header-title-inset);
    overflow: hidden;
    transform: translateY(-50%);
    color: #323233;
    font-size: calc(var(--app-header-unit) * .42666667);
    font-weight: 500;
    line-height: 22px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

.site-header .auth-nav-link,
.site-header .auth-nav-link:hover,
.site-header .auth-nav-link:focus,
.site-header .auth-nav-link:active {
    color: #343a40;
}

.site-header .auth-nav-link[aria-expanded="true"] {
    color: #ad4f37;
}

.site-back-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.app-page .dialog-modal > .dialog-content {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 508px;
}

.footer.site-footer {
    position: fixed;
    z-index: 900;
    right: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--app-shell-max-width);
    min-height: 80px;
    margin: 0 auto;
    padding: 0 0 env(safe-area-inset-bottom);
    transform: none;
    -webkit-transform: none;
    transition: none;
    -webkit-transition: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .035);
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
}

.site-nav-items {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
}

.site-footer .site-nav-link,
.site-footer .site-nav-link * {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.site-footer .site-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 80px;
    margin: 0;
    padding: 14px 3px 6px;
    border: 0;
    background: transparent;
    color: #a2a2a2;
    font-family: inherit;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 15px;
    letter-spacing: normal;
    word-spacing: normal;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    transition: none;
    -webkit-transition: none;
}

.site-footer .site-nav-items .site-nav-link:hover,
.site-footer .site-nav-items .site-nav-link:focus,
.site-footer .site-nav-items .site-nav-link:active {
    color: #a2a2a2;
    background: transparent;
}

.site-footer .site-nav-link:focus,
.site-footer .site-nav-link.focus {
    outline: none;
    box-shadow: none;
}

.site-footer .site-nav-link:focus-visible {
    outline: 2px solid #ad4f37;
    outline-offset: -3px;
}

.site-footer .site-nav-items .site-nav-link.active {
    color: #3d3d3d;
}

.site-footer .site-nav-link img.site-nav-image {
    display: block;
    flex-shrink: 0;
    width: 23px;
    height: 24px;
    max-width: none;
    margin-bottom: 4px;
    object-fit: contain;
}

.site-nav-link.active .site-nav-image {
    filter: brightness(.35);
}

.site-nav-link.active .site-nav-home,
.site-nav-link.active .site-nav-vip,
.site-nav-link.active .site-nav-orders {
    filter: none;
}

.site-footer .site-nav-link img.site-nav-task {
    width: 45px;
    height: 45px;
    margin-top: -14px;
    filter: none;
}

.site-footer .site-nav-label {
    margin: 0;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-size: 12px;
    font-weight: inherit;
    line-height: 15px;
    text-transform: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

.home-income {
    --income-unit: min(10vw, 54px);
    margin-top: calc(var(--income-unit) * .53333333);
}

.home-income h2 {
    margin: 0 0 calc(var(--income-unit) * .53333333);
    color: #2a2a2a;
    font-size: calc(var(--income-unit) * .53333333);
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.home-income-slider {
    height: 360px;
    overflow: hidden;
}

.home-income-slider .swiper-wrapper {
    transition-timing-function: ease;
}

.home-income-row {
    display: block;
    height: 90px;
    color: #2a2a2a;
    font-size: calc(var(--income-unit) * .32);
    line-height: 1.5;
}

.home-income-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-income-user {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
}

.home-income-phone {
    margin-left: calc(var(--income-unit) * .53333333);
}

.home-income-details {
    display: flex;
    flex: 0 0 calc(var(--income-unit) * 4);
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    width: calc(var(--income-unit) * 4);
    margin: calc(var(--income-unit) * .4);
}

.home-income-amount {
    flex: 1;
    margin-left: calc(var(--income-unit) * .53333333);
}

.home-income-details > span:first-child {
    flex: 0 0 calc(var(--income-unit) * 1.33333333);
}

.home-income-logo-frame {
    position: relative;
    display: block;
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

.home-income-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
}

.home-income-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.home-income-empty {
    margin: 0;
    padding: 30px 0;
    color: #909399;
    text-align: center;
}

@media (min-width: 821px) {
    .app-page .dialog-modal > .dialog-content {
        max-width: 343px;
    }

    .home-income {
        --income-unit: 37.5px;
    }
}
