/* Customer presentation only; keep admin pages and configured rich text isolated. */
body.customer-mode{
  --ui-red:#c82940;--ui-dark-red:#a61f35;--ui-soft-red:#fff0f2;
  --ui-canvas:#f5f6f8;--ui-text:#26282e;--ui-muted:#727680;--ui-line:#e8eaee;
  --green:var(--ui-red);--mint:var(--ui-soft-red);--ink:var(--ui-text);--muted:var(--ui-muted);--line:var(--ui-line);
  background:var(--ui-canvas);color:var(--ui-text);
  font-family:"Microsoft YaHei","PingFang SC","Segoe UI",sans-serif;letter-spacing:0;
}
.customer-mode :is(button,input,select,textarea){letter-spacing:0}
.customer-mode :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--ui-red);outline-offset:3px}
.customer-mode .customer-content{background:var(--ui-canvas)}
.customer-mode .customer-topbar{height:56px;border-color:var(--ui-line);background:#fff}
.customer-mode .customer-topbar h1{font-size:17px;font-weight:600}
.customer-mode .icon-button{color:var(--ui-text)}
.customer-mode .topbar-text{color:var(--ui-red);font-size:14px}
.customer-mode .customer-nav{min-height:calc(68px + env(safe-area-inset-bottom));background:#fff;border-color:var(--ui-line)}
.customer-mode .customer-nav button{min-height:68px;color:#747882;font-size:12px;gap:6px}
.customer-mode .customer-nav button.active{color:var(--ui-red);font-weight:600}
.customer-mode .customer-nav button svg{width:23px;height:23px;stroke-width:1.8}
.customer-mode .customer-content.has-customer-nav{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
.customer-mode .customer-home{background:var(--ui-canvas)}
.customer-mode .home-search-bar{padding:16px;background:var(--ui-red)}
.customer-mode .home-search{height:44px;background:#fff;border:0;border-radius:6px;color:#747882;padding:0 14px}
.customer-mode .home-search input{height:44px;min-height:44px;font-size:16px;color:#333}
.customer-mode .home-search input::placeholder{color:#858994}
.customer-mode .home-search svg{width:18px;height:18px}
.customer-mode .customer-carousel{background:var(--ui-canvas)}
.customer-mode .carousel-slide{background:transparent}
.customer-mode .carousel-slide img{opacity:1;filter:none;mix-blend-mode:normal}
.customer-mode .carousel-dots button.active:before{background:var(--ui-red)}
.customer-mode .customer-announcement{background:#fff;border-radius:6px;margin:12px 16px;width:calc(100% - 32px);min-height:44px;padding:10px 12px;gap:10px}
.customer-mode .customer-announcement>svg:first-child{color:var(--ui-red);width:19px;height:19px}
.customer-mode .customer-announcement>svg:last-child{color:#858994}
.customer-mode .customer-announcement>b>span{color:var(--ui-red)}
.customer-mode .customer-shortcuts{margin:0;padding:18px 16px 22px;background:#fff;border:0;border-radius:0;gap:8px}
.customer-mode .customer-shortcuts button{font-size:12px;color:#4d535c;gap:9px;min-height:70px}
.customer-mode .shortcut-icon{width:44px;height:44px;border-radius:8px}
.customer-mode .shortcut-icon svg{width:24px;height:24px;stroke-width:1.7}
.customer-mode .coral{background:#fff0f2;color:#c82940}
.customer-mode .aqua{background:#eaf5f0;color:#248365}
.customer-mode .cyan{background:#ecf1fb;color:#4566a5}
.customer-mode .yellow{background:#fcf3e2;color:#976b26}
.customer-mode .gray{background:#eef0f4;color:#626c7a}
.customer-mode .customer-new-products{padding:24px 16px;background:var(--ui-canvas)}
.customer-mode .customer-new-products>h2{color:var(--ui-text);font-size:18px;margin:0 0 16px;font-weight:650}
.customer-mode .customer-product-grid{gap:12px}
.customer-mode .customer-product-card{border:1px solid #e9eaee;border-radius:8px;box-shadow:0 2px 5px #20253203;background:#fff}
.customer-mode .customer-product-image{background:#fff;aspect-ratio:1}
.customer-mode .customer-product-image img{object-fit:contain}
.customer-mode .customer-product-name{margin:8px 12px 4px;font-size:14px;font-weight:500;line-height:1.55;min-height:0;color:var(--ui-text)}
.customer-mode .flash-product-source{margin:10px 12px 0;min-height:16px;color:#757b86;font-size:11px}
.customer-mode .flash-product-source svg{width:13px;height:13px;color:#738099}
.customer-mode .customer-product-price{margin:4px 12px 12px;min-height:26px;gap:5px}
.customer-mode .customer-product-price strong{color:var(--ui-red);font-size:19px;font-weight:650;font-variant-numeric:tabular-nums}
.customer-mode .customer-product-price .product-display-sets{color:#8d6b2e;font-size:12px;font-weight:500}
.customer-mode .product-initial-display{margin:2px 12px 4px;color:var(--ui-muted);font-size:12px}
.customer-mode .customer-rounds{padding:4px 16px 20px}
.customer-mode .customer-round{padding:22px 18px;margin-bottom:12px;border-radius:8px;border:1px solid var(--ui-line);background:#fff}
.customer-mode .customer-round h2{font-size:18px}
.customer-mode .customer-round p{font-size:13px;color:#6e737d;margin:10px 0}
.customer-mode .customer-round [data-round-countdown]{color:var(--ui-red);font-size:14px;font-weight:500}
.customer-mode .customer-round img{width:68px;height:68px}
.customer-mode .newcomer-notice{border:1px solid #eedcbb;background:#fff8ec;color:#895b24;font-size:12px;margin:12px 16px}
.customer-mode .customer-quota{padding:16px;border:0;background:#fff;font-size:13px}
.customer-mode .customer-quota-summary{min-height:24px;color:#444b57}
.customer-mode .customer-countdown-row{margin-top:8px}
.customer-mode .countdown-label{color:#6f7580;font-size:12px;font-weight:400}
.customer-mode .segmented-countdown .countdown-digit{background:var(--ui-soft-red);color:var(--ui-red);font-size:13px;min-width:26px;height:26px;border-radius:4px}
.customer-mode .segmented-countdown .countdown-separator{color:var(--ui-red);font-size:12px}
.customer-mode .customer-page-tabs{background:transparent;padding:12px 16px;gap:8px}
.customer-mode .customer-page-tabs button{width:26px;flex-basis:26px;height:26px;background:#fff;border:1px solid var(--ui-line);font-size:12px;font-weight:500}
.customer-mode .customer-page-tabs button.active{background:var(--ui-red);border-color:var(--ui-red);color:#fff}
.customer-mode .flash-grid{padding:0 16px 24px}
.customer-mode .flash-grid .customer-product-image{aspect-ratio:1.16}
.customer-mode .flash-grid .customer-product-name{margin:10px 12px 8px;font-size:14px}
.customer-mode .flash-grid .purchase-pricing{margin:0 12px 10px}
.customer-mode .purchase-pricing dt{font-size:11px;color:#707681}
.customer-mode .purchase-pricing dd{font-size:12px;color:#484f59}
.customer-mode .purchase-advance dd{color:#317b69}
.customer-mode .purchase-pricing .purchase-payable{border-color:var(--ui-line);margin-top:8px;padding-top:8px}
.customer-mode .purchase-payable dt{color:#454c56;font-size:12px}
.customer-mode .purchase-pricing .purchase-payable dd{font-size:22px;color:var(--ui-red);line-height:1.4;font-weight:650}
.customer-mode .flash-product-button,.customer-mode .flash-grid .flash-product-button{background:var(--ui-red);border-radius:6px;min-height:40px;margin:0 12px 12px;margin-top:auto;width:calc(100% - 24px);font-size:13px}
.customer-mode .customer-account{background:var(--ui-canvas)}
.customer-mode .customer-account .customer-topbar{background:var(--ui-red);color:#fff;border:0}
.customer-mode .agent-profile{background:var(--ui-red);color:#fff;padding:16px 24px 28px;gap:16px}
.customer-mode .agent-avatar{width:58px;height:58px;background:#fff;padding:5px}
.customer-mode .agent-avatar img{object-fit:contain}
.customer-mode .agent-profile h2{font-size:22px;font-weight:600}
.customer-mode .agent-profile p{color:#fff;font-size:12px}
.customer-mode .agent-profile p button{color:#fff;border-color:#ffffff80;border-radius:4px;min-height:26px;padding:2px 7px;font-size:11px}
.customer-mode .agent-balances{padding:20px 8px;background:#fff;border-bottom:1px solid var(--ui-line)}
.customer-mode .agent-balances button{padding:0 4px;gap:8px;min-height:56px;border-right:1px solid var(--ui-line)}
.customer-mode .agent-balances button:last-child{border:0}
.customer-mode .agent-balances strong{font-size:22px;font-weight:650;font-variant-numeric:tabular-nums}
.customer-mode .agent-balances span{font-size:12px;color:var(--ui-muted)}
.customer-mode .agent-order-groups{margin:12px 0 0;gap:1px;background:var(--ui-line)}
.customer-mode .agent-order-group{border-radius:0;grid-template-columns:48px repeat(3,minmax(0,1fr));padding:18px 16px;gap:8px}
.customer-mode .agent-order-group h2{font-size:14px;font-weight:600}
.customer-mode .agent-order-group button{font-size:12px;color:#626875;gap:8px;min-height:50px}
.customer-mode .agent-order-group button svg{color:#5c6471;width:24px;height:24px;stroke-width:1.6}
.customer-mode .agent-tools{margin:12px 0 0;border-radius:0;padding:20px 20px 4px}
.customer-mode .agent-tools h2{font-size:16px;margin-bottom:12px}
.customer-mode .agent-tools>button{min-height:54px;font-size:14px;border-color:#eff0f3;gap:12px}
.customer-mode .tool-icon{width:32px;height:32px;border-radius:6px}
.customer-mode .agent-tools>button:last-child{border:0}
.customer-mode .customer-logout{border-color:var(--ui-line);border-radius:6px;color:#5e626c;font-size:14px;margin-top:16px}
.customer-mode .order-role-tabs{gap:32px}
.customer-mode .order-role-tabs button{font-size:16px;color:#7a7e88}
.customer-mode .order-role-tabs button.active{color:var(--ui-red)}
.customer-mode .customer-order-tabs{padding:8px 16px 0;gap:0;border-bottom:1px solid var(--ui-line)}
.customer-mode .customer-order-tabs button{background:none;border-radius:0;min-height:44px;font-size:14px;color:#727884;border-bottom:2px solid transparent}
.customer-mode .customer-order-tabs button.active{color:var(--ui-red);background:none;border-color:var(--ui-red);font-weight:600}
.customer-mode .customer-order-list{padding:12px 12px 24px}
.customer-mode .warehouse-order{border-radius:8px;border:1px solid var(--ui-line);padding:16px;margin-bottom:12px}
.customer-mode .warehouse-order-heading{font-size:11px;color:#767c87;padding-bottom:12px;border-color:var(--ui-line);gap:6px}
.customer-mode .warehouse-order-status{font-size:11px;line-height:1.6;padding:4px 7px;border-radius:4px;color:#95651f;background:#fff4e2}
.customer-mode .warehouse-order-status.complete{color:#277b5e;background:#eaf5ef}
.customer-mode .warehouse-order-main{grid-template-columns:84px minmax(0,1fr);gap:12px;margin-top:14px}
.customer-mode .warehouse-order-main>img{width:84px;height:92px;object-fit:contain;background:#f8f9fb;border-radius:6px}
.customer-mode .warehouse-order-info h2{font-size:15px;line-height:1.5;font-weight:600;margin-bottom:8px}
.customer-mode .warehouse-order-info p{font-size:12px;color:#737985;line-height:1.6;margin-top:3px}
.customer-mode .warehouse-order-price strong{color:var(--ui-red);font-weight:600;font-variant-numeric:tabular-nums}
.customer-mode .warehouse-parties{--party-seller-ink:var(--ui-dark-red);--party-seller-bg:var(--ui-soft-red);--party-buyer-ink:#176577;--party-buyer-bg:#eaf5f7;display:grid;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--ui-line)}
.customer-mode .warehouse-contact{min-width:0}
.customer-mode .warehouse-contact-heading{display:flex;align-items:flex-start;gap:8px;min-width:0}
.customer-mode .warehouse-party{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:40px;min-height:24px;padding:2px 6px;border-radius:4px;background:var(--party-seller-bg);color:var(--party-seller-ink);font-size:12px;line-height:20px;font-weight:600}
.customer-mode .warehouse-contact-buyer .warehouse-party{background:var(--party-buyer-bg);color:var(--party-buyer-ink)}
.customer-mode .warehouse-contact-name{min-width:0;color:var(--ui-text);font-size:15px;font-weight:700;line-height:24px;overflow-wrap:anywhere}
.customer-mode .warehouse-order-info .warehouse-contact-phone{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px;margin:4px 0 0;font-size:12px;line-height:21px;color:#606570}
.customer-mode .warehouse-contact-phone strong{min-width:0;color:var(--ui-text);font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.customer-mode .warehouse-order-times{font-size:11px;color:#818691;line-height:1.9;padding-top:12px;margin-top:12px;border-top:1px solid #f0f1f3}
.customer-mode .warehouse-order-due{font-size:13px;text-align:right}
.customer-mode .warehouse-order-due strong{font-size:20px;color:var(--ui-red)}
.customer-mode .warehouse-cancel-notice{font-size:11px;color:#95651f;line-height:1.7}
.customer-mode .warehouse-cancel-notice.expired{color:var(--ui-muted)}
.customer-mode .warehouse-order .customer-order-actions{padding-top:12px;border-color:var(--ui-line)}
.customer-mode .customer-order-actions .btn{border-radius:6px;min-height:40px;font-size:12px;border-color:#d6dae1;color:#555e6a}
.customer-mode .customer-order-actions .btn.primary{background:var(--ui-red);border-color:var(--ui-red);color:#fff}
.customer-mode.auth-mode{background:#fff}
.customer-mode .registration-page{background:#fff}
.customer-mode .registration-brand{height:232px;background:var(--ui-red);padding:44px 24px 24px}
.customer-mode .registration-brand>img{width:72px;height:72px;border-radius:8px;padding:8px;margin-bottom:12px}
.customer-mode .registration-brand h2{font-size:20px;font-weight:600;line-height:1.5}
.customer-mode .registration-brand p{font-size:13px;margin-top:6px;color:#fff}
.customer-mode .registration-brand>.icon-button{color:#fff}
.customer-mode .registration-card{margin:0;padding:32px 28px 8px;box-shadow:none;border:0;border-radius:0;background:#fff}
.customer-mode .registration-card>h1{text-align:left;font-size:24px;margin-bottom:28px;color:var(--ui-text)}
.customer-mode .registration-card>h1:after{display:none}
.customer-mode .registration-card .auth-fields{gap:14px}
.customer-mode .registration-card .auth-fields label{background:#f7f8fa;border:1px solid #e5e8ed;border-radius:6px;min-height:54px}
.customer-mode .registration-card .auth-fields label:focus-within{border-color:var(--ui-red)}
.customer-mode .registration-card .auth-fields input{font-size:16px}
.customer-mode .registration-card .auth-fields input::placeholder{color:#818791}
.customer-mode .registration-card .auth-fields label>svg{color:#7d8593}
.customer-mode .registration-card .auth-fields output{color:#727a87;font-size:14px}
.customer-mode .registration-card .auth-submit{background:var(--ui-red);border-radius:6px;min-height:50px;font-size:16px;font-weight:600;margin-top:24px}
.customer-mode .registration-card .sms-code-row button{color:var(--ui-red)}
.customer-mode .registration-card .auth-links button{font-size:13px;color:#737a86;min-height:44px}
.customer-mode .login-page>.auth-agreement-consent{margin:8px 28px 0;font-size:11px;color:#747b85}
.customer-mode .auth-agreement-consent button{color:var(--ui-red)}
.customer-mode .auth-agreement-consent>input{accent-color:var(--ui-red)}
.customer-mode .login-registration-link{margin-top:18px}
.customer-mode .login-registration-link>button{color:var(--ui-red);font-size:15px;text-decoration:none}
.customer-mode .registration-consent{font-size:11px;color:#757b85}
.customer-mode .customer-detail-summary{padding:22px 20px}
.customer-mode .customer-detail-summary h2{font-size:20px;line-height:1.6}
.customer-mode .customer-detail-copy{padding:24px 20px 96px}
.customer-mode .customer-detail-price strong{color:var(--ui-red)}
.customer-mode .customer-detail-price>span{background:var(--ui-red);border-radius:4px}
.customer-mode .customer-detail-action .auth-submit{background:var(--ui-red);border-radius:6px}

/* Carry the approved palette through secondary pages without restyling document content. */
.customer-mode .btn{border-color:#d6dae1;border-radius:6px}
.customer-mode .btn.primary,.customer-mode dialog .btn.primary{background:var(--ui-red);border-color:var(--ui-red);color:#fff}
.customer-mode .auth-submit{background:var(--ui-red);border-radius:6px}
.customer-mode .btn.primary:hover:not(:disabled),.customer-mode .auth-submit:hover:not(:disabled){background:var(--ui-dark-red);border-color:var(--ui-dark-red)}
.customer-mode .customer-personal-settings{background:var(--ui-canvas)}
.customer-mode .customer-personal-settings .customer-topbar{background:var(--ui-red);color:#fff}
.customer-mode .customer-personal-settings .customer-topbar .icon-button{color:#fff}
.customer-mode .customer-settings{padding-inline:20px}
.customer-mode .customer-settings>button{min-height:58px;border-color:var(--ui-line)}
.customer-mode .member-settings-form{padding:24px 20px}
.customer-mode .member-settings-form :is(input,select,textarea){font-size:16px;border-color:#d6dae1;border-radius:6px;color:var(--ui-text)}
.customer-mode .member-settings-form label{color:#535b67}
.customer-mode .payment-method-list{gap:16px;padding:20px 16px}
.customer-mode .payment-method-card{border-radius:8px;background:#fff;border:1px solid var(--ui-line);border-top:3px solid #317e76}
.customer-mode .payment-method-card.alipay{border-top-color:#397ab6}
.customer-mode .payment-account{font-size:22px;color:var(--ui-text)}
.customer-mode .payment-method-card>p{color:#68717f;font-size:14px}
.customer-mode .payment-edit{border-radius:6px;min-height:40px;border-color:#b9cadb;color:#376994;background:#f6f9fc}
.customer-mode :is(.points-summary,.profit-summary,.members-overview){background:var(--ui-red);border-radius:8px}
.customer-mode .members-overview{border-radius:0}
.customer-mode .points-summary-top button{border-radius:6px;min-height:40px;background:#ffffff26}
.customer-mode :is(.points-summary-top>span,.points-summary-bottom span,.points-frozen){color:#fff}
.customer-mode :is(.points-search label,.points-entry-icon){border-radius:6px}
.customer-mode .points-search input{font-size:16px}
.customer-mode .points-entry-icon{color:var(--ui-red);background:var(--ui-soft-red)}
.customer-mode :is(.points-income,.profit-entry>strong){color:#277b5e}
.customer-mode .points-expense{color:var(--ui-red)}
.customer-mode .members-level-tabs button.active{color:var(--ui-red);border-color:var(--ui-red)}
.customer-mode :is(.profit-summary-wrap,.coupon-pending,.profit-day,.members-list,.members-end,.members-empty){background:var(--ui-canvas)}
.customer-mode .invite-poster{min-height:calc(100dvh - 56px)}
.customer-mode .invitation-browser-page .registration-brand{height:auto;min-height:228px;padding:70px 24px 26px}
.customer-mode .invitation-browser-content .auth-submit{background:var(--ui-red)}
.customer-mode .invitation-browser-symbol{color:var(--ui-red);background:var(--ui-soft-red)}
.customer-mode .customer-contact-phone{color:var(--ui-red)}
.customer-mode .empty>svg{color:#9ba4b1}
.customer-mode #modal{border-radius:8px 8px 0 0}
.customer-mode #modal::backdrop{background:#20253066}
.customer-mode #modal .modal-header{padding:14px 18px;border-color:var(--ui-line)}
.customer-mode #modal form label{color:#535b67}
.customer-mode #modal :is(input,select,textarea){border-color:#d6dae1;border-radius:6px;font-size:16px}
.customer-mode #modal :is(input,select,textarea):focus{border-color:var(--ui-red)}
.customer-mode #modal .muted{color:var(--ui-muted)}
.customer-mode #toast{border-radius:6px}
@media(max-width:359px){
  .customer-mode .registration-card{padding-inline:20px}
  .customer-mode .login-page>.auth-agreement-consent{margin-inline:20px}
  .customer-mode .agent-balances strong{font-size:19px}
  .customer-mode .agent-order-group{padding-inline:12px;gap:4px}
  .customer-mode .warehouse-order{padding:12px}
}
@media(prefers-reduced-motion:reduce){
  .customer-mode *,.customer-mode *::before,.customer-mode *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
