:root{--user-red:#ef3f61;--user-green:#28a66a;--user-blue:#3978d5;--user-bg:#f6f6f7;--user-line:#ececef}
body.buyer-page{background:var(--user-bg)!important;color:#202124}
.user-shell{width:min(720px,100%);padding:0 0 30px}
.buyer-login-view{width:min(440px,calc(100% - 28px));padding:24px 0}
.buyer-auth-card{display:grid;gap:12px;padding:18px;background:#fff;border:1px solid var(--user-line);border-radius:8px;box-shadow:0 8px 24px rgba(30,31,34,.06)}
.buyer-auth-card h2{margin:0;font-size:20px}
.buyer-app{gap:10px}
.user-profile-band,.user-section-band,.user-commerce-grid{background:#fff;border-top:1px solid var(--user-line);border-bottom:1px solid var(--user-line)}
.user-profile-band{display:grid;gap:15px;padding:22px 18px 16px}
.user-profile-main{display:flex;align-items:center;gap:13px;min-width:0}
.user-profile-band .buyer-avatar{width:68px;height:68px;flex:0 0 68px;border-radius:50%;border:1px solid var(--user-line);object-fit:cover;background:#f2f2f3}
.user-name-line{display:flex;align-items:center;gap:7px;min-width:0}
.user-name-line strong{max-width:260px;font-size:21px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-icon-button{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border:0;border-radius:50%;background:#f4f4f5;color:#555}
.user-icon-button svg{width:18px;height:18px;fill:currentColor}
.buyer-profile-copy span{color:#85868b;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-wallet-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;border-top:1px solid var(--user-line)}
.user-wallet-row>div{display:flex;align-items:baseline;gap:10px}
.user-wallet-row small{color:#85868b;font-size:12px}
.user-wallet-row strong{font-size:23px}
.user-recharge-button{min-width:70px;min-height:34px;border:0;border-radius:8px;background:var(--user-red);color:#fff;font-weight:800;cursor:pointer}
.user-commerce-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:13px 8px}
.user-commerce-grid a{position:relative;display:grid;justify-items:center;gap:6px;min-width:0;padding:6px 2px;color:#333}
.user-commerce-grid svg{width:25px;height:25px;fill:currentColor}
.user-commerce-grid strong{max-width:100%;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-commerce-grid span{position:absolute;top:0;left:calc(50% + 10px);display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border:2px solid #fff;border-radius:9px;background:var(--user-red);color:#fff;font:700 10px/1 sans-serif}
.user-commerce-grid span#buyerCartCount{display:none!important}
.user-section-band{padding:15px 16px}
.user-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}
.user-section-title h2{margin:0;font-size:17px}
.user-section-title>a{color:#8a8b90;font-size:12px}
.user-section-title>a span{font-size:18px;vertical-align:-1px}
.user-permission-tag{padding:4px 7px;border-radius:6px;background:#eaf8f0;color:#218456;font-size:11px;font-weight:800}
.user-order-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.user-order-grid a{display:grid;justify-items:center;gap:7px;padding:5px 2px}
.user-order-grid strong{font-size:19px;line-height:1;color:#303136}
.user-order-grid span{font-size:12px;color:#66676c}
.user-function-list{display:grid}
.user-function-list>a,.user-function-list>button{display:grid;grid-template-columns:38px minmax(0,auto) minmax(0,1fr) 16px;align-items:center;gap:10px;width:100%;min-height:56px;padding:8px 0;border:0;border-bottom:1px solid var(--user-line);background:transparent;color:#292a2e;text-align:left;cursor:pointer}
.user-function-list>:last-child{border-bottom:0}
.user-function-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:#f0f1f3;color:#55585f}
.user-function-icon svg{width:20px;height:20px;fill:currentColor}
.user-function-icon.tone-green{background:#eaf8f0;color:var(--user-green)}
.user-function-icon.tone-red{background:#fff0f3;color:var(--user-red)}
.user-function-icon.tone-blue{background:#edf4ff;color:var(--user-blue)}
.user-function-icon.tone-gray{background:#f0f1f3;color:#6f7278}
.user-function-list strong{font-size:14px;white-space:nowrap}
.user-function-list small{min-width:0;color:#929399;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}
.user-function-list b{color:#a6a7ab;font-size:19px;font-weight:400;text-align:right}
.buyer-pay-choice{border-radius:8px}

.user-subpage{min-height:100vh;background:var(--user-bg)}
.user-page-shell{width:min(720px,100%);margin:0 auto;padding-bottom:32px}
.user-page-topbar{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;min-height:56px;padding:0 10px;border-bottom:1px solid var(--user-line);background:rgba(255,255,255,.96);backdrop-filter:blur(12px)}
.user-page-topbar h1{margin:0;font-size:18px;text-align:center;white-space:nowrap}
.user-page-topbar button,.user-page-topbar a{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:#222;cursor:pointer}
.user-page-topbar svg{width:23px;height:23px;fill:currentColor}
.user-page-topbar .user-order-search-icon{display:block;width:24px;height:24px;object-fit:contain}
.user-page-actions{justify-self:end}
.user-page-search{display:none;padding:9px 12px;border-bottom:1px solid var(--user-line);background:#fff}
.user-page-search.open{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.user-page-search input{min-width:0;height:40px;padding:0 12px;border:1px solid var(--user-line);border-radius:8px;background:#f6f6f7;outline:0}
.user-page-search button{min-width:62px;border:0;border-radius:8px;background:#242529;color:#fff;font-weight:800}
.user-list-content{padding:10px 12px}
.user-empty-state{display:grid;justify-items:center;gap:10px;min-height:300px;padding:58px 20px;color:#8b8c91;text-align:center}
.user-empty-state svg{width:76px;height:76px;fill:#d9dae0}
.user-empty-state strong{color:#55565b;font-size:15px}
.user-empty-state p{margin:0;font-size:13px;line-height:1.6}
.user-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.user-product-card{min-width:0;overflow:hidden;border:1px solid var(--user-line);border-radius:8px;background:#fff}
.user-product-card>a{display:block}
.user-product-card img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;background:#eee}
.user-product-card-body{display:grid;gap:7px;padding:10px}
.user-product-card h2{display:-webkit-box;min-height:39px;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;line-height:1.4}
.user-product-meta{display:flex;align-items:center;justify-content:space-between;gap:6px}
.user-product-meta strong{color:var(--user-red);font-size:17px}
.user-product-meta button{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:50%;background:#f3f3f4;color:#666;cursor:pointer}
.user-product-meta svg{width:17px;height:17px;fill:currentColor}
.user-cart-list{display:grid;gap:9px}
.user-cart-item{display:grid;grid-template-columns:24px 84px minmax(0,1fr);gap:10px;align-items:center;padding:12px;border:1px solid var(--user-line);border-radius:8px;background:#fff}
.user-cart-select{display:grid;place-items:center;width:20px;height:20px;padding:0;border:1px solid #c7c8cc;border-radius:50%;background:#fff;cursor:pointer}
.user-cart-select.active{border-color:var(--user-red);background:var(--user-red)}
.user-cart-select.active::after{content:"";width:7px;height:4px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-1px) rotate(-45deg)}
.user-cart-item>img{width:84px;height:84px;border-radius:7px;object-fit:cover;background:#eee}
.user-cart-copy{display:grid;align-self:stretch;gap:5px;min-width:0}
.user-cart-copy h2{display:-webkit-box;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;line-height:1.4}
.user-cart-copy span{color:#999;font-size:11px}
.user-cart-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}
.user-cart-bottom strong{color:var(--user-red);font-size:17px}
.user-cart-bottom button{border:0;background:transparent;color:#888;font-size:12px;cursor:pointer}
.user-cart-settle{position:fixed;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));z-index:25;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;width:min(696px,calc(100% - 24px));min-height:58px;padding:7px 7px 7px 16px;border:1px solid var(--user-line);border-radius:8px;background:#fff;box-shadow:0 9px 28px rgba(30,31,34,.14);transform:translateX(-50%)}
.user-cart-settle span{color:#777;font-size:12px}.user-cart-settle strong{margin-left:6px;color:var(--user-red);font-size:18px}
.user-cart-settle button{min-width:108px;height:44px;border:0;border-radius:8px;background:var(--user-red);color:#fff;font-weight:900;cursor:pointer}
.user-follow-list{display:grid;gap:9px}
.user-follow-card{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:11px;align-items:center;padding:13px;border:1px solid var(--user-line);border-radius:8px;background:#fff}
.user-follow-card img{width:54px;height:54px;border-radius:50%;object-fit:cover;background:#eee}
.user-follow-copy{display:grid;gap:5px;min-width:0}.user-follow-copy strong,.user-follow-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-follow-copy span{color:#929399;font-size:12px}
.user-follow-card button{min-width:76px;min-height:34px;border:1px solid #d6d7da;border-radius:8px;background:#fff;color:#555;font-size:12px;cursor:pointer}

.user-order-tabs{position:sticky;top:56px;z-index:24;display:flex;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--user-line);background:#fff}
.user-order-tabs::-webkit-scrollbar{display:none}
.user-order-tabs button{position:relative;flex:0 0 auto;min-width:72px;min-height:46px;border:0;background:#fff;color:#929399;font-size:13px;cursor:pointer}
.user-order-tabs button.active{color:#26272b;font-weight:900}
.user-order-tabs button.active::after{content:"";position:absolute;left:50%;bottom:0;width:28px;height:3px;border-radius:2px;background:var(--user-red);transform:translateX(-50%)}
.user-order-list{display:grid;gap:9px;padding:10px 12px}
.user-order-card{overflow:hidden;border:1px solid var(--user-line);border-radius:8px;background:#fff}
.user-order-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;border-bottom:1px solid var(--user-line);font-size:12px}
.user-order-head span{color:#919297}.user-order-head strong{color:var(--user-red)}
.user-order-product{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:10px;padding:12px;background:#fafafa}
.user-order-product img{width:76px;height:76px;border-radius:7px;object-fit:cover;background:#eee}
.user-order-copy{display:grid;align-content:start;gap:5px;min-width:0}.user-order-copy h2{display:-webkit-box;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;line-height:1.4}.user-order-copy span{color:#999;font-size:11px}
.user-order-price{text-align:right}.user-order-price strong{display:block;font-size:14px}.user-order-price span{color:#999;font-size:11px}
.user-order-summary{padding:10px 12px;text-align:right;font-size:12px}.user-order-summary strong{font-size:15px}
.user-order-actions{display:flex;justify-content:flex-end;gap:7px;padding:0 12px 12px}
.user-order-actions a,.user-order-actions button{display:inline-flex;align-items:center;justify-content:center;min-width:82px;min-height:34px;padding:0 12px;border:1px solid #d7d8dc;border-radius:8px;background:#fff;color:#444;font-size:12px;cursor:pointer}
.user-order-actions .primary{border-color:var(--user-red);color:var(--user-red)}
.user-recommend-section{padding:18px 12px}.user-recommend-section h2{margin:0 0 12px;font-size:17px}

.user-form-section{display:grid;gap:14px;padding:16px 14px;background:#fff;border-bottom:1px solid var(--user-line)}
.user-form-section h2{margin:0;font-size:17px}
.user-form-grid{display:grid;gap:12px}.user-form-grid .field span{color:#65666b}
.user-form-grid .input,.user-form-grid .textarea,.user-form-grid .select{border-radius:8px;background:#fafafa}
.user-form-submit{width:100%;min-height:46px;border:0;border-radius:8px;background:#242529;color:#fff;font-weight:900;cursor:pointer}
.user-profile-preview{display:grid;justify-items:center;gap:8px;padding:22px 16px;background:#fff;border-bottom:1px solid var(--user-line)}
.user-profile-preview img{width:76px;height:76px;border-radius:50%;object-fit:cover;border:1px solid var(--user-line)}
.user-profile-preview strong{font-size:17px}.user-profile-preview span{color:#919297;font-size:12px}
.user-info-note{padding:10px 12px;border-radius:8px;background:#f5f6f7;color:#777;font-size:12px;line-height:1.6}

.user-code-tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:9px 12px;background:#fff;border-bottom:1px solid var(--user-line)}
.user-code-tabs button{min-height:38px;border:0;border-radius:7px;background:transparent;color:#777;cursor:pointer}.user-code-tabs button.active{background:#242529;color:#fff;font-weight:800}
.user-code-panel{padding:12px}.user-stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}.user-stat-item{display:grid;gap:4px;padding:12px 8px;border:1px solid var(--user-line);border-radius:8px;background:#fff;text-align:center}.user-stat-item strong{font-size:18px}.user-stat-item span{color:#888;font-size:11px}
.user-price-list,.user-code-list{display:grid;gap:8px}.user-price-item,.user-code-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:12px;border:1px solid var(--user-line);border-radius:8px;background:#fff}.user-price-item span,.user-code-item span{color:#888;font-size:12px}.user-code-item code{display:block;overflow:hidden;text-overflow:ellipsis;color:#222;font-weight:800;white-space:nowrap}.user-code-item button{min-width:58px;min-height:32px;border:1px solid #ddd;border-radius:7px;background:#fff;color:#555;cursor:pointer}
.user-code-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:10px}.user-code-search input{min-width:0;height:40px;padding:0 11px;border:1px solid var(--user-line);border-radius:8px;background:#fff}.user-code-search button{min-width:66px;border:0;border-radius:8px;background:#242529;color:#fff}
.user-invite-card{display:grid;gap:13px;margin:12px;padding:16px;border:1px solid var(--user-line);border-radius:8px;background:#fff}.user-invite-card h2{margin:0;font-size:19px}.user-invite-card p{margin:0;color:#777;line-height:1.7}.user-copy-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.user-copy-row input{min-width:0;height:42px;padding:0 11px;border:1px solid var(--user-line);border-radius:8px;background:#f6f6f7}.user-copy-row button{min-width:74px;border:0;border-radius:8px;background:var(--user-blue);color:#fff;font-weight:800}
.user-denied{display:grid;justify-items:center;gap:9px;margin:18px 12px;padding:34px 18px;border:1px solid var(--user-line);border-radius:8px;background:#fff;text-align:center}.user-denied svg{width:48px;height:48px;fill:#c7c8cd}.user-denied p{margin:0;color:#888;font-size:13px}

@media(max-width:760px){
  .user-shell{padding-top:0}.buyer-app{gap:9px}.user-profile-band,.user-commerce-grid,.user-section-band{border-left:0;border-right:0}
  .public-bottom-nav{width:calc(100% - 24px)}
}
@media(max-width:370px){
  .user-function-list>a,.user-function-list>button{grid-template-columns:36px minmax(0,1fr) 15px}.user-function-list small{display:none}.user-name-line strong{max-width:190px}
  .user-commerce-grid strong,.user-order-grid span{font-size:11px}.user-cart-item{grid-template-columns:22px 72px minmax(0,1fr)}.user-cart-item>img{width:72px;height:72px}
}

/* buyer detail and collection controls */
.user-profile-main .buyer-profile-copy{flex:1 1 auto}
.user-profile-main>.user-icon-button{margin-left:auto}
.user-wallet-actions{display:flex!important;align-items:center!important;gap:7px!important}
.user-wallet-detail-button{display:inline-flex;align-items:center;justify-content:center;min-width:56px;min-height:34px;border:1px solid #dfe0e3;border-radius:8px;background:#fff;color:#555;font-size:12px;font-weight:800}
.buyer-quick-amounts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.buyer-quick-amounts button{min-width:0;min-height:38px;padding:0 4px;border:1px solid var(--user-line);border-radius:8px;background:#f6f6f7;color:#555;font-size:12px;font-weight:800;cursor:pointer}
.buyer-quick-amounts button.active{border-color:var(--user-red);background:#fff1f4;color:var(--user-red)}
.user-page-topbar{grid-template-columns:40px minmax(0,1fr) auto}
.user-page-topbar>span{width:40px}
.user-edit-toggle{width:auto!important;min-width:42px!important;padding:0 5px!important;border-radius:7px!important;color:#555!important;font-size:13px!important;font-weight:800}
.user-topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:2px}
.user-topbar-actions button{flex:0 0 40px}
.user-view-toggle svg{width:21px!important;height:21px!important}
.user-product-shop{display:block;color:#999;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-product-card{position:relative}
.user-product-select{position:absolute;z-index:3;left:8px;top:8px;display:grid;place-items:center;width:22px;height:22px;padding:0;border:1px solid #c7c8cc;border-radius:50%;background:rgba(255,255,255,.96);box-shadow:0 2px 8px rgba(0,0,0,.08);cursor:pointer}
.user-product-select.active{border-color:var(--user-red);background:var(--user-red)}
.user-product-select.active::after{content:"";width:8px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-1px) rotate(-45deg)}
.user-product-card.selected{border-color:#f28aa0;box-shadow:0 0 0 1px #f28aa0}
.user-product-grid.list-view{grid-template-columns:1fr}
.user-product-grid.list-view .user-product-card{display:grid;grid-template-columns:96px minmax(0,1fr)}
.user-product-grid.list-view .user-product-card>a{grid-column:1;grid-row:1}
.user-product-grid.list-view .user-product-card img{width:96px;height:96px;aspect-ratio:auto}
.user-product-grid.list-view .user-product-card-body{grid-column:2;grid-row:1;align-content:center;min-width:0}
.user-product-grid.list-view .user-product-card h2{min-height:0}
.user-cart-cover{position:relative;display:block;width:84px;height:84px;overflow:hidden;border-radius:7px;background:#f7f5f0 url("/assets/sample-theme-1.svg") center/cover no-repeat}
.user-cart-cover img{position:relative;z-index:1;display:block;width:100%;height:100%;border-radius:7px;object-fit:cover;background:transparent;transition:opacity .12s ease}
.user-cart-cover img.image-unavailable{opacity:0!important}
.user-cart-list:not(.editing) [data-cart-remove]{visibility:hidden;pointer-events:none}
.user-cart-settle{grid-template-columns:auto minmax(0,1fr) auto;gap:8px}
.user-select-all{display:flex!important;align-items:center;gap:6px!important;width:auto!important;min-width:58px!important;height:40px!important;padding:0!important;border:0!important;background:transparent!important;color:#666!important;font-size:12px!important;font-weight:800!important}
.user-select-all i{display:grid;place-items:center;width:20px;height:20px;border:1px solid #c7c8cc;border-radius:50%;background:#fff}
.user-select-all.active i{border-color:var(--user-red);background:var(--user-red)}
.user-select-all.active i::after{content:"";width:7px;height:4px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-1px) rotate(-45deg)}
.user-cart-total{min-width:0;text-align:right}
.user-settle-action.danger,.user-bulk-delete{background:#e44949!important}
.user-bulk-bar{position:fixed;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));z-index:25;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;width:min(696px,calc(100% - 24px));min-height:58px;padding:7px 7px 7px 16px;border:1px solid var(--user-line);border-radius:8px;background:#fff;box-shadow:0 9px 28px rgba(30,31,34,.14);transform:translateX(-50%)}
.user-bulk-bar>strong{color:#777;font-size:12px;text-align:right}
.user-bulk-delete{min-width:92px;height:44px;border:0;border-radius:8px;color:#fff;font-weight:900;cursor:pointer}
.user-cart-checkout-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-radius:8px;background:#f7f7f8}
.user-cart-checkout-summary span{color:#777;font-size:13px}.user-cart-checkout-summary strong{color:var(--user-red);font-size:20px}
.buyer-free-checkout{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 14px;border:1px solid #dcece4;border-radius:8px;background:#f1faf5;color:#34825d;font-size:12px;font-weight:750;text-align:center}
.user-wallet-summary-card{display:grid;justify-items:center;gap:7px;padding:24px 16px;background:#fff;border-bottom:1px solid var(--user-line)}
.user-wallet-summary-card>span{color:#85868b;font-size:12px}.user-wallet-summary-card>strong{font-size:30px}.user-wallet-summary-card>small{color:#a0a1a6;font-size:11px}
.user-wallet-tabs{position:sticky;top:56px;z-index:20;display:grid;grid-template-columns:repeat(3,1fr);padding:8px 12px;border-bottom:1px solid var(--user-line);background:#fff}
.user-wallet-tabs button{min-height:36px;border:0;border-radius:7px;background:transparent;color:#888;cursor:pointer}.user-wallet-tabs button.active{background:#242529;color:#fff;font-weight:800}
.user-wallet-log-list{display:grid;gap:8px;padding:10px 12px}
.user-wallet-log{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid var(--user-line);border-radius:8px;background:#fff}
.user-wallet-log-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;font-size:18px;font-weight:900}.user-wallet-log-icon.income{background:#eaf8f0;color:var(--user-green)}.user-wallet-log-icon.expense{background:#fff0f3;color:var(--user-red)}
.user-wallet-log>div{display:grid;gap:3px;min-width:0}.user-wallet-log>div strong,.user-wallet-log>div p,.user-wallet-log>div small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-wallet-log>div strong{font-size:13px}.user-wallet-log>div p{margin:0;color:#777;font-size:11px}.user-wallet-log>div small,.user-wallet-log time{color:#aaa;font-size:10px}
.user-wallet-log aside{display:grid;justify-items:end;gap:5px}.user-wallet-log aside b{font-size:15px}.user-wallet-log aside b.income{color:var(--user-green)}.user-wallet-log aside b.expense{color:#333}.user-wallet-log aside span{color:#999;font-size:10px;white-space:nowrap}

/* mobile 85% visual density */
@media(max-width:760px){
  .buyer-login-view{width:min(440px,calc(100% - 24px));padding:18px 0}.buyer-auth-card{gap:10px;padding:15px}.buyer-auth-card h2{font-size:18px}
  .buyer-app{gap:8px}.user-profile-band{gap:12px;padding:18px 15px 13px}.user-profile-main{gap:11px}.user-profile-band .buyer-avatar{width:58px;height:58px;flex-basis:58px}.user-name-line strong{font-size:18px}.user-icon-button{width:30px;height:30px;flex-basis:30px}.user-icon-button svg{width:17px;height:17px}
  .user-wallet-row{gap:10px;padding-top:12px}.user-wallet-row strong{font-size:20px}.user-recharge-button,.user-wallet-detail-button{min-height:32px;min-width:58px}
  .user-commerce-grid{padding:10px 7px}.user-commerce-grid a{gap:5px;padding:5px 2px}.user-commerce-grid svg{width:22px;height:22px}.user-commerce-grid strong{font-size:11px}
  .user-section-band{padding:12px 14px}.user-section-title{margin-bottom:10px}.user-section-title h2{font-size:15px}.user-order-grid a{gap:6px;padding:4px 2px}.user-order-grid strong{font-size:17px}.user-order-grid span{font-size:11px}
  .user-function-list>a,.user-function-list>button{grid-template-columns:34px minmax(0,auto) minmax(0,1fr) 14px;gap:8px;min-height:48px;padding:6px 0}.user-function-icon{width:32px;height:32px}.user-function-icon svg{width:18px;height:18px}.user-function-list strong{font-size:12px}.user-function-list small{font-size:10px}
  .user-page-topbar{min-height:48px;padding:0 8px}.user-page-topbar h1{font-size:16px}.user-page-topbar button,.user-page-topbar a{width:40px;height:40px}.user-page-topbar svg{width:21px;height:21px}.user-list-content{padding:8px 10px}
  .user-product-grid{gap:8px}.user-product-card-body{gap:5px;padding:8px}.user-product-card h2{min-height:34px;font-size:12px}.user-product-meta strong{font-size:15px}
  .user-cart-list{gap:8px}.user-cart-item{grid-template-columns:22px 72px minmax(0,1fr);gap:8px;padding:10px}.user-cart-cover{width:72px;height:72px}.user-cart-copy h2{font-size:12px}.user-cart-bottom strong{font-size:15px}
  .user-cart-settle,.user-bulk-bar{min-height:52px;padding:5px 5px 5px 12px}.user-cart-settle button.user-settle-action,.user-bulk-delete{height:40px;min-width:92px}.user-wallet-tabs{top:48px}
  .user-order-tabs{top:48px}.user-order-tabs button{min-height:40px;font-size:12px}.user-order-list{gap:8px;padding:8px 10px}.user-order-product{grid-template-columns:66px minmax(0,1fr) auto;padding:10px}.user-order-product img{width:66px;height:66px}
}

/* User authentication: independent, mobile-first shell. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body.buyer-auth-active{background:#fff!important;color:#11213d}
body.buyer-auth-active .public-bottom-nav{opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,18px)}
body.buyer-auth-active .buyer-shell{width:min(520px,100%);min-height:100vh;min-height:100dvh;padding:0;margin:0 auto}
.buyer-auth-shell{position:relative;display:grid!important;grid-template-rows:auto minmax(0,1fr);width:100%!important;min-height:100vh;min-height:100dvh;padding:22px 16px 30px!important;margin:0!important;overflow:auto;background:#fff;isolation:isolate}
.buyer-auth-shell::before{position:absolute;top:-128px;right:-140px;z-index:-1;width:330px;height:330px;border-radius:50%;background:#f4f7ff;content:""}
.buyer-auth-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px}
.buyer-auth-brand{display:inline-flex;align-items:center;gap:9px;color:#14213b;font-size:14px;font-weight:850}
.buyer-auth-brand img{width:32px;height:32px;border-radius:10px;object-fit:cover;box-shadow:0 6px 16px rgba(22,42,83,.14)}
.buyer-auth-stage{display:grid;align-content:center;width:min(100%,420px);min-height:0;padding:40px 0 7vh;margin:0 auto}
.buyer-auth-card{display:grid;gap:22px;width:100%;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.buyer-auth-heading{display:grid;gap:10px}
.buyer-auth-heading h1{margin:0;color:#102043;font-size:29px;font-weight:850;line-height:1.2}
.buyer-auth-heading p{margin:0;color:#586782;font-size:15px;line-height:1.65}
.buyer-auth-fields{display:grid;gap:14px}
.buyer-auth-field{display:block}
.buyer-auth-field input{width:100%;height:64px;padding:0 20px;border:1px solid #dce4f1;border-radius:17px;outline:0;color:#122241;background:#f8fafc;font-size:16px;line-height:1;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.buyer-auth-field input::placeholder{color:#bac5d5}
.buyer-auth-field input:focus{border-color:#3d70ed;background:#fff;box-shadow:0 0 0 4px rgba(45,97,230,.1)}
.buyer-auth-submit,.buyer-auth-secondary{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:64px;padding:0 20px;border:1px solid transparent;border-radius:17px;font-size:20px;font-weight:850;letter-spacing:0;color:#fff;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease}
.buyer-auth-submit{background:linear-gradient(135deg,#2865ed,#244ed5);box-shadow:0 12px 24px rgba(38,83,215,.18)}
.buyer-auth-submit:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 16px 28px rgba(38,83,215,.23)}
.buyer-auth-submit:disabled{cursor:not-allowed;opacity:.45;box-shadow:none}
.buyer-auth-secondary{min-height:52px;border-color:#dce4f1;background:#fff;color:#5174cb;font-size:15px;box-shadow:none}
.buyer-auth-secondary:hover{border-color:#8ea8ed;background:#f7f9ff}
.buyer-auth-links,.buyer-auth-switch{display:flex;align-items:center;justify-content:center;gap:28px;color:#6b7890;font-size:15px}
.buyer-auth-links button,.buyer-auth-switch button{padding:0;border:0;color:#2962e7;background:transparent;font:inherit;font-weight:750;cursor:pointer}
.buyer-auth-divider{display:flex;align-items:center;gap:12px;color:#758198;font-size:13px}
.buyer-auth-divider::before,.buyer-auth-divider::after{height:1px;flex:1;background:#e2e8f2;content:""}
.buyer-auth-wechat{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:max-content;min-width:68px;min-height:38px;padding:0 13px;margin:0 auto;border:0;border-radius:19px;background:transparent;color:#4f6079;font-size:13px;cursor:pointer;transition:background .18s ease,color .18s ease}
.buyer-auth-wechat:hover{background:#f0f7f3;color:#159960}
.buyer-auth-wechat svg{width:22px;height:22px;fill:#20a95d}
.buyer-auth-steps{display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:10px;max-width:266px;margin:0 auto}
.buyer-auth-steps>span{display:grid;justify-items:center;gap:6px;color:#9aa8bd;font-size:12px;font-style:normal;white-space:nowrap}
.buyer-auth-steps b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#edf1f7;color:#8190a5;font-size:15px}
.buyer-auth-steps i{font-style:normal}
.buyer-auth-steps>span.active{color:#2359dc;font-weight:800}
.buyer-auth-steps>span.active b{background:#2861e6;color:#fff;box-shadow:0 6px 14px rgba(40,97,230,.2)}
.buyer-auth-steps>em{height:1px;margin-top:17px;background:#dfe6f1}
.buyer-auth-register-card{gap:17px;padding-bottom:24px!important}
.buyer-auth-register-card .buyer-auth-heading{gap:7px}
.buyer-auth-register-card .buyer-auth-fields{gap:10px}
.buyer-auth-register-card .buyer-auth-field{display:grid;gap:6px}
.buyer-auth-register-card .buyer-auth-field-title{display:block;padding-left:3px;color:#5d6b82;font-size:12px;font-weight:700;line-height:1.2}
.buyer-auth-register-card .buyer-auth-field input{height:54px;border-radius:15px;font-size:15px}
.buyer-auth-register-card .buyer-auth-submit{min-height:58px}

.buyer-forgot-sheet{position:fixed;inset:0;z-index:5000;display:grid;align-items:end;color:#122241}
.buyer-forgot-sheet.hidden{display:none}
.buyer-forgot-backdrop{position:absolute;inset:0;background:rgba(11,19,34,.42);opacity:0;transition:opacity .18s ease}
.buyer-forgot-panel{position:relative;z-index:1;display:grid;gap:23px;width:min(520px,100%);max-height:min(760px,94dvh);padding:22px 24px calc(30px + env(safe-area-inset-bottom));overflow:auto;border-radius:27px 27px 0 0;background:#fff;box-shadow:0 -16px 44px rgba(17,30,56,.12);transform:translateY(26px);transition:transform .22s cubic-bezier(.2,.8,.24,1)}
.buyer-forgot-sheet.open .buyer-forgot-backdrop{opacity:1}
.buyer-forgot-sheet.open .buyer-forgot-panel{transform:translateY(0)}
.buyer-forgot-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.buyer-forgot-head h2{margin:0;color:#102043;font-size:25px;font-weight:850}
.buyer-forgot-head p{margin:6px 0 0;color:#6c7890;font-size:13px}
.buyer-forgot-head>button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;color:#708099;background:#f2f4f8;font-size:25px;font-weight:300;line-height:1;cursor:pointer}
.buyer-forgot-steps{max-width:336px;grid-template-columns:auto 1fr auto 1fr auto;margin:0 auto}
.buyer-forgot-form{display:grid;gap:13px}
.buyer-forgot-form .buyer-auth-field input{height:58px;border-radius:16px}
.buyer-forgot-form .buyer-auth-submit{min-height:58px;font-size:18px}
.buyer-forgot-form .buyer-auth-secondary{margin-top:1px}
.buyer-forgot-done{display:grid;justify-items:center;gap:10px;padding:18px 0 4px;text-align:center}
.buyer-forgot-done>span{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#e9f7ee;color:#19995e;font-size:27px;font-weight:850}
.buyer-forgot-done strong{font-size:20px}.buyer-forgot-done p{margin:0 0 10px;color:#6c7890;font-size:14px}
.buyer-wechat-qr-sheet{position:fixed;inset:0;z-index:6200;display:grid;place-items:center;padding:20px;color:#25272c}
.buyer-wechat-qr-sheet.hidden{display:none}
.buyer-wechat-qr-backdrop{position:absolute;inset:0;border:0;background:rgba(20,23,29,.48)}
.buyer-wechat-qr-card{position:relative;z-index:1;display:grid;justify-items:center;gap:13px;width:min(360px,calc(100vw - 32px));padding:20px 20px 24px;border:1px solid #e8eaee;border-radius:16px;background:#fff;box-shadow:0 18px 48px rgba(20,24,32,.18)}
.buyer-wechat-qr-card header{display:flex;align-items:flex-start;justify-content:space-between;width:100%;gap:16px}
.buyer-wechat-qr-card h2{margin:0;font-size:19px;line-height:1.35}.buyer-wechat-qr-card header p{margin:4px 0 0;color:#8a8f98;font-size:12px}
.buyer-wechat-qr-card header>button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:#f2f3f5;color:#6e747d;font-size:24px;line-height:1}
.buyer-wechat-qr-code{display:grid;place-items:center;width:216px;height:216px;padding:10px;border:1px solid #e5e8ec;border-radius:12px;background:#fff}
.buyer-wechat-qr-code canvas{display:block;width:196px!important;height:196px!important}
.buyer-wechat-qr-card>strong{font-size:14px}.buyer-wechat-qr-card>small{color:#969ba3;font-size:11px}
.buyer-wechat-qr-refresh{min-width:130px;height:38px;padding:0 16px;border:0;border-radius:999px;background:#202226;color:#fff;font-size:12px;font-weight:800}
.user-form-secondary-link{display:grid;place-items:center;min-height:44px;border:1px solid #e2e5e9;border-radius:10px;background:#fff;color:#555c66;font-size:13px;font-weight:800;text-decoration:none}
.user-security-summary{display:flex;align-items:center;gap:12px;margin:10px 12px 0;padding:16px;border:1px solid #e7e9ed;border-radius:10px;background:#fff}
.user-security-summary>span{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:#eef8f2;color:#299568}
.user-security-summary img{width:24px;height:24px}.user-security-summary h2{margin:0;font-size:16px}.user-security-summary p{margin:4px 0 0;color:#9499a2;font-size:11px}
.user-security-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.user-security-section-head h2{margin:0}.user-security-section-head span{padding:4px 9px;border-radius:999px;background:#f0f2f4;color:#6d747e;font-size:10px;font-weight:800}
.user-security-note{margin:0;color:#858b94;font-size:12px;line-height:1.6}.user-security-actions{display:flex;gap:9px}.user-security-actions>*{flex:1}
.user-security-danger{min-height:44px;border:1px solid #f1d9de;border-radius:10px;background:#fff5f6;color:#d64c60;font-size:13px;font-weight:800}

/* 订单中心保持单行标签，状态较多时允许横向访问。 */
.user-subpage .user-order-tabs{position:relative;top:auto!important}

@media (min-width:700px){
  body.buyer-auth-active{background:#eef2f7!important}
  body.buyer-auth-active .buyer-shell{width:min(520px,calc(100% - 48px));margin:24px auto;border-radius:28px;box-shadow:0 18px 60px rgba(29,43,69,.16);overflow:hidden}
  body.buyer-auth-active .buyer-auth-shell{min-height:calc(100dvh - 48px);border-radius:inherit}
}
@media (max-width:420px){
  .buyer-auth-shell{padding:18px 16px 25px!important}.buyer-auth-stage{padding-top:32px}.buyer-auth-heading h1{font-size:27px}.buyer-auth-field input{height:60px;border-radius:16px}.buyer-auth-submit{min-height:60px;border-radius:16px;font-size:19px}.buyer-auth-links{gap:24px}.buyer-forgot-panel{padding:20px 17px calc(24px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0}
}
@media (max-height:680px){
  .buyer-auth-stage{align-content:start;padding-top:42px;padding-bottom:28px}.buyer-auth-register-card{padding-bottom:0!important}
}

/* Keep the account entry screen compact without shrinking interaction targets. */
.buyer-login-view.hidden,.buyer-auth-shell.hidden{display:none!important}
body.buyer-session-pending{background:#f3f5f7!important}
body.buyer-session-pending .buyer-shell{position:relative;min-height:100vh;min-height:100dvh}
body.buyer-session-pending .buyer-login-view{display:none!important}
body.buyer-session-pending .buyer-app{visibility:hidden!important;pointer-events:none}
body.buyer-session-pending .public-bottom-nav{opacity:0;visibility:hidden;pointer-events:none}
body.buyer-session-pending .buyer-shell::after{position:absolute;top:50%;left:50%;width:22px;height:22px;border:2px solid #dfe2e7;border-top-color:var(--user-red);border-radius:50%;content:"";transform:translate(-50%,-50%);animation:buyer-page-spin .7s linear infinite}
@keyframes buyer-page-spin{to{transform:translate(-50%,-50%) rotate(360deg)}}
.buyer-forgot-sheet{justify-items:center}
body.buyer-auth-active .buyer-shell{width:min(442px,100%)}
.buyer-auth-shell{padding:19px 14px 26px!important}
.buyer-auth-topbar{min-height:38px}
.buyer-auth-brand{gap:8px;font-size:12px}.buyer-auth-brand img{width:28px;height:28px;border-radius:8px}
.buyer-auth-stage{width:min(100%,357px);padding:34px 0 6vh}
.buyer-auth-card{gap:18px}.buyer-auth-heading{gap:8px}.buyer-auth-heading h1{font-size:25px}.buyer-auth-heading p{font-size:13px}
.buyer-auth-fields{gap:12px}.buyer-auth-field input{height:54px;padding:0 17px;border-radius:15px;font-size:14px}
.buyer-auth-submit,.buyer-auth-secondary{min-height:54px;padding:0 17px;border-radius:15px;font-size:17px}
.buyer-auth-secondary{min-height:44px;font-size:13px}.buyer-auth-links,.buyer-auth-switch{gap:24px;font-size:13px}.buyer-auth-divider{font-size:12px}
.buyer-auth-wechat{min-height:34px;padding:0 11px;font-size:12px}.buyer-auth-wechat svg{width:19px;height:19px}
.buyer-auth-steps{gap:8px;max-width:226px}.buyer-auth-steps>span{gap:5px;font-size:10px}.buyer-auth-steps b{width:29px;height:29px;font-size:13px}.buyer-auth-steps>em{margin-top:14px}
.buyer-auth-register-card{gap:14px;padding-bottom:20px!important}.buyer-auth-register-card .buyer-auth-fields{gap:8px}.buyer-auth-register-card .buyer-auth-field input{height:46px;border-radius:13px;font-size:13px}.buyer-auth-register-card .buyer-auth-submit{min-height:50px}
.buyer-forgot-panel{width:min(442px,100%);gap:19px;padding:19px 21px calc(25px + env(safe-area-inset-bottom));border-radius:23px 23px 0 0}.buyer-forgot-head h2{font-size:18px}.buyer-forgot-head p{font-size:12px}.buyer-forgot-form{gap:11px}.buyer-forgot-form .buyer-auth-field input{height:50px;border-radius:14px}.buyer-forgot-form .buyer-auth-submit{min-height:50px;font-size:16px}
@media (min-width:700px){body.buyer-auth-active .buyer-shell{width:min(442px,calc(100% - 40px));margin:20px auto}body.buyer-auth-active .buyer-auth-shell{min-height:calc(100dvh - 40px)}}
@media (max-width:420px){.buyer-auth-shell{padding:16px 14px 22px!important}.buyer-auth-stage{padding-top:27px}.buyer-auth-heading h1{font-size:24px}.buyer-auth-field input{height:52px}.buyer-auth-submit{min-height:52px;font-size:17px}}

/* Unified detail styling for all buyer-center pages. */
.user-subpage{background:#f5f6f8;color:#25262a}
.user-subpage .user-page-shell{min-height:100vh;padding-bottom:42px;background:#f5f6f8}
.user-subpage .user-page-topbar{min-height:58px;border-bottom:1px solid #eeeeF1;background:rgba(255,255,255,.94);box-shadow:0 1px 0 rgba(23,24,28,.02)}
.user-subpage .user-page-topbar h1{font-size:17px;font-weight:850}
.user-subpage .user-page-topbar button,.user-subpage .user-page-topbar a{transition:background .18s ease,color .18s ease,transform .18s ease}
.user-subpage .user-page-topbar button:hover,.user-subpage .user-page-topbar a:hover{background:#f5f5f7;color:var(--user-red)}
.user-subpage .user-page-topbar button:active,.user-subpage .user-page-topbar a:active{transform:scale(.94)}
.user-subpage .user-list-content{padding:14px 12px 24px}
.user-subpage .user-page-search{padding:10px 12px;background:#fff}
.user-subpage .user-page-search input{height:42px;border-color:#e7e8ec;border-radius:8px;background:#f7f8fa;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.user-subpage .user-page-search input:focus{border-color:#f18aa0;background:#fff;box-shadow:0 0 0 3px rgba(239,63,97,.1)}
.user-subpage .user-page-search button{border-radius:8px;background:#2b2d32;transition:background .18s ease,transform .18s ease}
.user-subpage .user-page-search button:active{transform:scale(.97)}
.user-subpage .user-empty-state{min-height:270px;margin:4px 0;padding:42px 18px;border:1px dashed #dfe1e6;border-radius:8px;background:rgba(255,255,255,.72)}
.user-subpage .user-empty-state svg{width:64px;height:64px;fill:#d3d6dc}
.user-subpage .user-empty-state strong{font-size:15px}.user-subpage .user-empty-state p{max-width:240px;color:#9799a1}
.user-subpage .user-empty-state .btn{min-height:38px;padding:0 18px;border-radius:8px;background:var(--user-red);box-shadow:none}
.user-subpage .user-product-card{border-color:#ebecef;border-radius:8px;box-shadow:0 3px 12px rgba(35,37,42,.035);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.user-subpage .user-product-card:hover{border-color:#f2b1c0;box-shadow:0 8px 20px rgba(35,37,42,.08);transform:translateY(-1px)}
.user-subpage .user-product-card img{background:#f2f3f5}.user-subpage .user-product-card-body{padding:10px}
.user-subpage .user-product-card h2{font-weight:800}.user-subpage .user-product-meta strong{font-size:16px}
.user-subpage .user-cart-item,.user-subpage .user-follow-card,.user-subpage .user-order-card,.user-subpage .user-price-item,.user-subpage .user-code-item{border-color:#ebecef;box-shadow:0 3px 12px rgba(35,37,42,.03)}
.user-subpage .user-cart-item{border-radius:8px;background:#fff;transition:border-color .18s ease,box-shadow .18s ease}.user-subpage .user-cart-item:hover{border-color:#f1bac7;box-shadow:0 8px 20px rgba(35,37,42,.07)}
.user-subpage .user-follow-card{border-radius:8px}.user-subpage .user-follow-card button{border-radius:999px;transition:border-color .18s ease,color .18s ease,background .18s ease}.user-subpage .user-follow-card button:hover{border-color:#f49aae;background:#fff3f6;color:var(--user-red)}
.user-subpage .user-order-tabs{top:58px;padding:0 8px;border-bottom:1px solid #eeeeF1;box-shadow:0 7px 14px rgba(33,34,38,.025)}
.user-subpage .user-order-tabs button{min-height:45px;font-weight:700}.user-subpage .user-order-tabs button.active{color:var(--user-red)}
.user-subpage .user-order-tabs button.active::after{height:2px;background:var(--user-red)}
.user-subpage .user-order-card{border-radius:8px}.user-subpage .user-order-head{padding:12px;border-bottom-color:#f0f0f2}.user-subpage .user-order-product{background:#fafafb}.user-subpage .user-order-actions a,.user-subpage .user-order-actions button{border-radius:999px;transition:border-color .18s ease,background .18s ease,color .18s ease}
.user-subpage .user-order-actions .primary{border-color:#f28aa0;background:#fff4f6;color:var(--user-red)}
.user-subpage .user-cart-settle,.user-subpage .user-bulk-bar{border-color:#ececf0;border-radius:8px;box-shadow:0 10px 30px rgba(31,33,38,.13)}
.user-subpage .user-cart-settle button,.user-subpage .user-bulk-delete{border-radius:8px}.user-subpage .user-cart-settle .user-settle-action{background:var(--user-red)}
.user-subpage .user-form-section,.user-subpage .user-profile-preview{border-color:#eeeeF1}.user-subpage .user-form-section{margin-top:10px;border-top:1px solid #eeeeF1;box-shadow:0 2px 10px rgba(35,37,42,.02)}
.user-subpage .user-form-grid .input,.user-subpage .user-form-grid .textarea,.user-subpage .user-form-grid .select{border-color:#e5e6ea;background:#fafafb;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.user-subpage .user-form-grid .input:focus,.user-subpage .user-form-grid .textarea:focus,.user-subpage .user-form-grid .select:focus{border-color:#ef8ca1;background:#fff;box-shadow:0 0 0 3px rgba(239,63,97,.1)}
.user-subpage .user-form-submit{border-radius:8px;background:#292b30;transition:transform .18s ease,background .18s ease}.user-subpage .user-form-submit:hover{background:#17181b}.user-subpage .user-form-submit:active{transform:scale(.985)}
.user-subpage .user-profile-preview{position:relative;padding-top:25px}.user-subpage .user-profile-preview img{box-shadow:0 5px 16px rgba(34,36,42,.09)}
.user-subpage .user-wallet-summary-card{margin-top:10px;border:1px solid #ececf0;border-radius:8px;box-shadow:0 4px 15px rgba(35,37,42,.035)}
.user-subpage .user-wallet-log{border-color:#ebecef;border-radius:8px;box-shadow:0 2px 8px rgba(35,37,42,.025)}
.user-subpage .user-code-tabs{margin-top:10px;padding:8px 12px;border-top:1px solid #eeeeF1;border-bottom:1px solid #eeeeF1}.user-subpage .user-code-tabs button{border-radius:8px}.user-subpage .user-code-tabs button.active{background:#2b2d32}
.user-subpage .user-invite-card,.user-subpage .user-denied{border-color:#e7e8ec;border-radius:8px;box-shadow:0 5px 16px rgba(35,37,42,.035)}
@media (min-width:721px){.user-subpage .user-page-shell{width:min(720px,calc(100% - 32px));border-right:1px solid #eeeeF1;border-left:1px solid #eeeeF1;box-shadow:0 0 24px rgba(28,30,34,.035)}}
@media (max-width:760px){.user-subpage .user-page-shell{padding-bottom:28px}.user-subpage .user-list-content{padding:12px 10px 20px}.user-subpage .user-order-tabs{top:48px}.user-subpage .user-empty-state{min-height:245px;padding:36px 16px}}

/* Buyer center visual system: richer hierarchy while keeping the mobile workflow compact. */
body.buyer-page:not(.buyer-auth-active){background:#f3f5f7!important}
body.buyer-page:not(.buyer-auth-active) .buyer-app{display:grid;gap:10px;padding-bottom:16px}
body.buyer-page:not(.buyer-auth-active) .user-profile-band{position:relative;overflow:hidden;border-top:4px solid var(--user-red);border-bottom-color:#e9ebef;background:#fff;box-shadow:0 3px 12px rgba(35,37,42,.035)}
body.buyer-page:not(.buyer-auth-active) .user-profile-band::after{position:absolute;top:0;right:0;width:82px;height:4px;background:#3b87d9;content:""}
body.buyer-page:not(.buyer-auth-active) .buyer-avatar{box-shadow:0 5px 15px rgba(30,33,40,.11)}
body.buyer-page:not(.buyer-auth-active) .user-name-line strong{font-weight:900;letter-spacing:0}
body.buyer-page:not(.buyer-auth-active) .user-icon-button{border:1px solid #eceef1;background:#fafafb;transition:transform .18s ease,border-color .18s ease,color .18s ease}
body.buyer-page:not(.buyer-auth-active) .user-icon-button:hover{border-color:#f3adbd;color:var(--user-red);transform:rotate(18deg)}
body.buyer-page:not(.buyer-auth-active) .user-wallet-row{margin-top:1px;padding:13px 0 0;border-top-color:#eceef1}
body.buyer-page:not(.buyer-auth-active) .user-wallet-row small{color:#94979f}
body.buyer-page:not(.buyer-auth-active) .user-wallet-row strong{color:#1f2228;font-weight:900}
body.buyer-page:not(.buyer-auth-active) .user-recharge-button{border-radius:999px;box-shadow:0 7px 16px rgba(239,63,97,.22);transition:transform .18s ease,box-shadow .18s ease}
body.buyer-page:not(.buyer-auth-active) .user-recharge-button:active{box-shadow:0 3px 8px rgba(239,63,97,.18);transform:scale(.96)}
body.buyer-page:not(.buyer-auth-active) .user-wallet-detail-button{border-radius:999px;background:#fff;transition:border-color .18s ease,color .18s ease}
body.buyer-page:not(.buyer-auth-active) .user-wallet-detail-button:hover{border-color:#9abfe9;color:#2870be}
body.buyer-page:not(.buyer-auth-active) .user-commerce-grid{position:relative;border-top:1px solid #e9ebef;border-bottom:1px solid #e9ebef;background:#fff;box-shadow:0 3px 12px rgba(35,37,42,.025)}
body.buyer-page:not(.buyer-auth-active) .user-commerce-grid a{padding:9px 2px 7px;border-radius:8px;transition:background .18s ease,transform .18s ease}
body.buyer-page:not(.buyer-auth-active) .user-commerce-grid a:active{transform:scale(.94)}
body.buyer-page:not(.buyer-auth-active) .user-commerce-grid a:hover{background:#fafafb}
body.buyer-page:not(.buyer-auth-active) .user-commerce-grid svg{width:22px;height:22px;padding:6px;border-radius:10px;box-sizing:content-box}
body.buyer-page:not(.buyer-auth-active) .user-commerce-grid a:nth-child(1) svg{background:#fff0f4;color:#e9486b}
body.buyer-page:not(.buyer-auth-active) .user-commerce-grid a:nth-child(2) svg{background:#eef7ff;color:#3581ca}
body.buyer-page:not(.buyer-auth-active) .user-commerce-grid a:nth-child(3) svg{background:#fff7e9;color:#dc9825}
body.buyer-page:not(.buyer-auth-active) .user-commerce-grid a:nth-child(4) svg{background:#ecf8f2;color:#26966a}
body.buyer-page:not(.buyer-auth-active) .user-commerce-grid strong{margin-top:1px;font-weight:800}
body.buyer-page:not(.buyer-auth-active) .user-commerce-grid span{box-shadow:0 2px 5px rgba(239,63,97,.18)}
body.buyer-page:not(.buyer-auth-active) .user-section-band{border-top:1px solid #e9ebef;border-bottom:1px solid #e9ebef;background:#fff;box-shadow:0 3px 12px rgba(35,37,42,.025)}
body.buyer-page:not(.buyer-auth-active) .user-section-title{position:relative;padding-left:10px}
body.buyer-page:not(.buyer-auth-active) .user-section-title::before{position:absolute;left:0;top:50%;width:3px;height:17px;border-radius:999px;background:var(--user-red);content:"";transform:translateY(-50%)}
body.buyer-page:not(.buyer-auth-active) .user-section-title h2{font-weight:900}
body.buyer-page:not(.buyer-auth-active) .user-section-title>a{display:inline-flex;align-items:center;gap:2px;color:#8c9099;transition:color .18s ease}
body.buyer-page:not(.buyer-auth-active) .user-section-title>a:hover{color:var(--user-red)}
body.buyer-page:not(.buyer-auth-active) .user-permission-tag{border-radius:999px;background:#ebf8f0;color:#21895e}
body.buyer-page:not(.buyer-auth-active) .user-order-grid{gap:3px}
body.buyer-page:not(.buyer-auth-active) .user-order-grid a{position:relative;border-radius:8px;transition:background .18s ease,transform .18s ease}
body.buyer-page:not(.buyer-auth-active) .user-order-grid a:hover{background:#fafafb}
body.buyer-page:not(.buyer-auth-active) .user-order-grid a:active{transform:scale(.96)}
body.buyer-page:not(.buyer-auth-active) .user-order-grid a:not(:last-child)::after{position:absolute;right:0;top:11px;width:1px;height:26px;background:#eff0f2;content:""}
body.buyer-page:not(.buyer-auth-active) .user-order-grid strong{font-weight:900}
body.buyer-page:not(.buyer-auth-active) .user-order-grid a:nth-child(2) strong{color:#d6911b}
body.buyer-page:not(.buyer-auth-active) .user-order-grid a:nth-child(3) strong{color:#3b87d9}
body.buyer-page:not(.buyer-auth-active) .user-order-grid a:nth-child(4) strong{color:#25986a}
body.buyer-page:not(.buyer-auth-active) .user-function-list>a,body.buyer-page:not(.buyer-auth-active) .user-function-list>button{border-bottom-color:#f0f1f3;transition:background .18s ease,padding-left .18s ease}
body.buyer-page:not(.buyer-auth-active) .user-function-list>a:hover,body.buyer-page:not(.buyer-auth-active) .user-function-list>button:hover{padding-left:4px;background:#fafafb}
body.buyer-page:not(.buyer-auth-active) .user-function-icon{border-radius:10px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.38)}
body.buyer-page:not(.buyer-auth-active) .user-function-list b{font-size:18px}

.user-subpage .user-page-topbar::after{position:absolute;right:12px;bottom:0;left:12px;height:1px;background:#f1f1f3;content:""}
.user-subpage .user-product-card::before{position:absolute;z-index:1;top:0;left:0;width:100%;height:3px;background:transparent;content:"";transition:background .18s ease}
.user-subpage .user-product-card:hover::before{background:#ef3f61}
.user-subpage .user-product-card{position:relative}
.user-subpage .user-cart-copy span,.user-subpage .user-product-shop{color:#9296a0}
.user-subpage .user-cart-bottom button{padding:4px 8px;border-radius:999px;background:#f4f5f7;color:#777b84;transition:background .18s ease,color .18s ease}
.user-subpage .user-cart-bottom button:hover{background:#fff0f3;color:var(--user-red)}
.user-subpage .user-order-head strong{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border-radius:999px;background:#fff1f4;color:var(--user-red);font-size:11px}
.user-subpage .user-order-summary{background:#fff;border-top:1px solid #f1f1f3}
.user-subpage .user-wallet-tabs{padding:9px 12px;border-bottom-color:#eeeeF1;box-shadow:0 5px 12px rgba(35,37,42,.025)}
.user-subpage .user-wallet-tabs button{border-radius:999px;font-weight:700}.user-subpage .user-wallet-tabs button.active{background:#2b2d32}
.user-subpage .user-wallet-log-icon{box-shadow:inset 0 0 0 1px rgba(255,255,255,.6)}
.user-subpage .user-info-note{border-left:3px solid #78a8dc;background:#f3f8fd;color:#5d7390}
.user-subpage .user-copy-row input{border-color:#e5e7eb;background:#fafafb}.user-subpage .user-copy-row button{border-radius:999px;box-shadow:0 5px 12px rgba(57,120,213,.14)}
.user-subpage .user-denied{background:#fff}
@media (max-width:760px){
  body.buyer-page:not(.buyer-auth-active) .buyer-app{gap:8px;padding-bottom:11px}
  body.buyer-page:not(.buyer-auth-active) .user-commerce-grid svg{width:20px;height:20px;padding:5px;border-radius:9px}
  body.buyer-page:not(.buyer-auth-active) .user-section-title::before{height:15px}
  body.buyer-page:not(.buyer-auth-active) .user-function-list>a:hover,body.buyer-page:not(.buyer-auth-active) .user-function-list>button:hover{padding-left:0}
}
@media (prefers-reduced-motion:reduce){
  body.buyer-page:not(.buyer-auth-active) .user-icon-button,body.buyer-page:not(.buyer-auth-active) .user-recharge-button,body.buyer-page:not(.buyer-auth-active) .user-commerce-grid a,body.buyer-page:not(.buyer-auth-active) .user-order-grid a,.user-subpage .user-product-card{transition:none}
  body.buyer-session-pending .buyer-shell::after{animation:none}
}

/* Buyer home: contained cards with stable chevrons instead of font glyphs. */
body.buyer-page:not(.buyer-auth-active) .buyer-app{gap:10px;padding:10px 12px 20px}
body.buyer-page:not(.buyer-auth-active) .user-profile-band{overflow:hidden;border:1px solid #e7e9ed;border-radius:10px;background:#fff;box-shadow:0 4px 14px rgba(35,37,42,.045)}
body.buyer-page:not(.buyer-auth-active) .user-profile-band::after{display:none}
body.buyer-page:not(.buyer-auth-active) .user-commerce-grid,body.buyer-page:not(.buyer-auth-active) .user-section-band{overflow:hidden;border:1px solid #e7e9ed;border-radius:10px;background:#fff;box-shadow:0 4px 14px rgba(35,37,42,.04)}
body.buyer-page:not(.buyer-auth-active) .user-function-list b{position:relative;display:grid;place-items:center;justify-self:end;width:18px;height:18px;color:transparent;font-size:0;line-height:1}
body.buyer-page:not(.buyer-auth-active) .user-function-list b::before{width:9px;height:9px;border-top:2px solid #8f949d;border-right:2px solid #8f949d;content:"";transform:rotate(45deg)}
body.buyer-page:not(.buyer-auth-active) .user-section-title>a span{display:inline-grid;place-items:center;width:14px;height:14px;color:transparent;font-size:0;vertical-align:0}
body.buyer-page:not(.buyer-auth-active) .user-section-title>a span::before{width:7px;height:7px;border-top:2px solid currentColor;border-right:2px solid currentColor;content:"";transform:rotate(45deg)}
.user-subpage .user-form-section,.user-subpage .user-profile-preview,.user-subpage .user-invite-card,.user-subpage .user-denied{border-radius:10px}
@media (max-width:760px){
  body.buyer-page:not(.buyer-auth-active) .buyer-app{gap:8px;padding:8px 10px 16px}
  body.buyer-page:not(.buyer-auth-active) .user-profile-band,body.buyer-page:not(.buyer-auth-active) .user-commerce-grid,body.buyer-page:not(.buyer-auth-active) .user-section-band{border-radius:9px}
}

/* Keep the buyer center typography and panel shape consistent across every page. */
body.buyer-page:not(.buyer-auth-active) .user-wallet-row small{color:#94979f;font-size:12px;font-weight:400}
body.buyer-page:not(.buyer-auth-active) .user-wallet-row strong{font-size:17px}
body.buyer-page:not(.buyer-auth-active) .user-recharge-button,body.buyer-page:not(.buyer-auth-active) .user-wallet-detail-button{font-size:12px}
.user-subpage .user-page-search.open,.user-subpage .user-order-tabs,.user-subpage .user-wallet-tabs,.user-subpage .user-code-tabs,.user-subpage .user-wallet-summary-card,.user-subpage .user-profile-preview,.user-subpage .user-form-section{border:1px solid #e7e9ed;border-radius:10px;background:#fff}
.user-subpage .user-page-search.open{margin:10px 12px 0}
.user-subpage .user-order-tabs,.user-subpage .user-wallet-tabs{margin:10px 12px 0;overflow-x:auto;overflow-y:hidden}
.user-subpage .user-code-tabs,.user-subpage .user-wallet-summary-card,.user-subpage .user-profile-preview,.user-subpage .user-form-section{margin-right:12px;margin-left:12px;overflow:hidden}
.user-subpage .user-wallet-summary-card,.user-subpage .user-profile-preview,.user-subpage .user-form-section{margin-top:10px}
.user-subpage .user-code-tabs{margin-top:10px}
.user-subpage .user-cart-item,.user-subpage .user-follow-card,.user-subpage .user-order-card,.user-subpage .user-price-item,.user-subpage .user-code-item,.user-subpage .user-product-card,.user-subpage .user-stat-item,.user-subpage .user-empty-state,.user-subpage .user-cart-settle,.user-subpage .user-bulk-bar{border-radius:10px}
.user-subpage .user-recommend-section{margin:10px 12px 0;padding:14px 12px;border:1px solid #e7e9ed;border-radius:10px;background:#fff}
@media (max-width:760px){
  body.buyer-page:not(.buyer-auth-active) .user-wallet-row small{font-size:12px}
  body.buyer-page:not(.buyer-auth-active) .user-wallet-row strong{font-size:15px}
  body.buyer-page:not(.buyer-auth-active) .user-recharge-button,body.buyer-page:not(.buyer-auth-active) .user-wallet-detail-button{font-size:12px}
  .user-subpage .user-page-search.open,.user-subpage .user-order-tabs,.user-subpage .user-wallet-tabs,.user-subpage .user-code-tabs,.user-subpage .user-wallet-summary-card,.user-subpage .user-profile-preview,.user-subpage .user-form-section,.user-subpage .user-recommend-section{margin-right:10px;margin-left:10px;border-radius:9px}
}

/* Compact action cards shared by the subsite and common-function sections. */
body.buyer-page:not(.buyer-auth-active) .user-service-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
body.buyer-page:not(.buyer-auth-active) .user-service-grid>a,
body.buyer-page:not(.buyer-auth-active) .user-service-grid>button{
  display:grid;
  justify-items:center;
  gap:7px;
  min-width:0;
  min-height:88px;
  padding:11px 6px 9px;
  border:1px solid #edf0f2;
  border-radius:9px;
  background:#fafbfc;
  color:#343b44;
  font:inherit;
  text-align:center;
  cursor:pointer;
  transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease;
}
body.buyer-page:not(.buyer-auth-active) .user-service-grid>a:hover,
body.buyer-page:not(.buyer-auth-active) .user-service-grid>button:hover{
  border-color:#e0e5e9;
  background:#fff;
  box-shadow:0 7px 16px rgba(36,42,49,.06);
  transform:translateY(-2px);
}
body.buyer-page:not(.buyer-auth-active) .user-service-grid>a:active,
body.buyer-page:not(.buyer-auth-active) .user-service-grid>button:active{transform:scale(.96)}
body.buyer-page:not(.buyer-auth-active) .user-service-icon{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:9px;
}
body.buyer-page:not(.buyer-auth-active) .user-service-icon svg{width:19px;height:19px;fill:currentColor}
body.buyer-page:not(.buyer-auth-active) .user-service-grid strong{
  max-width:100%;
  overflow:hidden;
  color:#4a535d;
  font-size:12px;
  font-weight:750;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.buyer-page:not(.buyer-auth-active) .user-service-icon.tone-red{background:#fff0f3;color:#e84b69}
body.buyer-page:not(.buyer-auth-active) .user-service-icon.tone-blue{background:#eef6ff;color:#3e7ec8}
body.buyer-page:not(.buyer-auth-active) .user-service-icon.tone-green{background:#edf8f2;color:#299568}
body.buyer-page:not(.buyer-auth-active) .user-service-icon.tone-gray{background:#f0f2f4;color:#717983}
body.buyer-page:not(.buyer-auth-active) .user-subpage .user-page-shell{
  background:#f5f6f8;
}

/* Buyer order center */
body.user-order-sheet-open{overflow:hidden}
.front-frame-page>.front-app-frame.user-subpage .user-order-list{gap:10px;padding:10px 0 18px}
.front-frame-page>.front-app-frame.user-subpage .user-order-card{overflow:hidden;border:1px solid #e9eaed;border-radius:8px;background:#fff;box-shadow:0 4px 15px rgba(25,27,31,.04)}
.user-order-shop{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:46px;padding:7px 11px;color:#292a2e}
.user-order-shop>img{width:24px;height:24px;border-radius:50%;object-fit:cover;background:#f1f2f3}
.user-order-shop-name{display:flex;align-items:center;gap:3px;min-width:0;line-height:1}
.user-order-shop-name>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.25}
.user-order-shop-name>svg{display:block;flex:0 0 13px;width:13px;height:13px;fill:#a3a5aa}
.user-order-shop-status{display:grid;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;justify-content:end;gap:6px;min-width:0;color:#e84f70;font-size:12px;line-height:1;font-weight:800;white-space:nowrap}
.user-order-shop-status b{font:inherit}
.user-order-countdown{min-width:37px;color:#8b8d93;font-size:11px;font-variant-numeric:tabular-nums;text-align:right}
.user-order-group-countdown{min-width:58px;color:#e5484d;font-size:10px;font-variant-numeric:tabular-nums;text-align:right}
.front-frame-page>.front-app-frame.user-subpage .user-order-product{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:10px;padding:10px 11px;background:#fff}
.user-order-cover{display:block;width:76px;height:76px}
.front-frame-page>.front-app-frame.user-subpage .user-order-product img{display:block;width:76px;height:76px;border-radius:7px;object-fit:cover;background:#eceef0}
.front-frame-page>.front-app-frame.user-subpage .user-order-copy{display:grid;align-content:start;gap:4px;min-width:0}
.front-frame-page>.front-app-frame.user-subpage .user-order-copy h2{display:-webkit-box;margin:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1;color:#303136;font-size:13px;line-height:1.35}
.user-order-product-title{display:flex;align-items:center;gap:5px;min-width:0}
.user-order-product-title>span{display:inline-flex;flex:0 0 auto;align-items:center;min-height:18px;padding:0 6px;border-radius:999px;background:#30343a;color:#fff!important;font-size:9px!important;font-weight:700;line-height:1}
.user-order-product-title>h2{min-width:0}
.user-order-source{justify-self:start;display:inline-flex;align-items:center;min-height:19px;padding:0 7px;border-radius:999px;background:#f1f2f4;color:#767980;font-size:9px;font-weight:700;line-height:1}
.user-order-detail{display:grid;gap:1px;min-width:0;color:#787a80;font-size:11px;line-height:1.35}
.user-order-detail span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-order-detail.muted{color:#aaabb0}
.user-order-copy time{color:#a0a1a6;font-size:10px;line-height:1.3}
.front-frame-page>.front-app-frame.user-subpage .user-order-price{align-self:start;color:#404146;text-align:right}
.front-frame-page>.front-app-frame.user-subpage .user-order-price strong{display:block;font-size:13px;font-weight:750}
.front-frame-page>.front-app-frame.user-subpage .user-order-price span{display:block;margin-top:4px;color:#9a9ba0;font-size:10px}
.user-order-code{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 11px;border-bottom:1px solid #f0f1f2;background:#fff;color:#8d8f94;font-size:10px}
.user-order-code code{min-width:0;overflow:hidden;color:#55575c;font:600 11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}
.user-order-code button{padding:0;border:0;background:transparent;color:#3978d5;font-size:11px;cursor:pointer}
.user-order-reject{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 11px 9px;padding:9px 10px;border-radius:7px;background:#fff4f6;color:#ca4962}
.user-order-reject>div{display:grid;gap:3px;min-width:0}.user-order-reject strong{font-size:11px}.user-order-reject p{margin:0;overflow:hidden;color:#8f5d67;font-size:10px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.user-order-reject button{flex:0 0 auto;min-height:27px;padding:0 10px;border:1px solid #ef9aae;border-radius:999px;background:#fff;color:#df4967;font-size:10px;font-weight:700;cursor:pointer}
.front-frame-page>.front-app-frame.user-subpage .user-order-summary{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:9px 11px 6px;border:0;background:#fff;color:#98999e;font-size:10px}
.front-frame-page>.front-app-frame.user-subpage .user-order-summary strong{margin-left:3px;color:#303136;font-size:13px}
.front-frame-page>.front-app-frame.user-subpage .user-order-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;padding:0 11px 11px}
.front-frame-page>.front-app-frame.user-subpage .user-order-actions a,.front-frame-page>.front-app-frame.user-subpage .user-order-actions button{display:inline-flex;align-items:center;justify-content:center;min-width:60px;min-height:30px;padding:0 10px;border:1px solid #dfe0e3;border-radius:999px;background:#fff;color:#505157;font-size:11px;font-weight:700;cursor:pointer}
.front-frame-page>.front-app-frame.user-subpage .user-order-actions .detail{border-color:#d9dadd;color:#55575c}
.front-frame-page>.front-app-frame.user-subpage .user-order-actions .external-redeem{border-color:#f0b36c;background:#fff8ef;color:#bf6b15}
.front-frame-page>.front-app-frame.user-subpage .user-order-actions .primary{border-color:#f08aa0;background:#fff5f7;color:#e84f70}
.front-frame-page>.front-app-frame.user-subpage .user-order-actions .danger{border-color:#f0c4cb;background:#fff8f9;color:#d64b60}
.front-frame-page>.front-app-frame.user-subpage .user-order-actions .disabled{border-color:#ebecef;background:#f6f6f7;color:#a2a3a7;cursor:default}

.user-order-group-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;margin-top:8px;padding:8px 11px 0;border-top:1px solid #f0f2ef;color:#7b827c;font-size:11px}
.user-order-group-members{display:flex;align-items:center;min-width:0}
.user-order-group-members img,.user-order-group-empty{width:26px;height:26px;flex:0 0 26px;border:2px solid #fff;border-radius:50%;object-fit:cover;background:#eff2ef;box-shadow:0 0 0 1px #e4e8e4}
.user-order-group-members img+img,.user-order-group-empty+img,.user-order-group-members img+.user-order-group-empty{margin-left:-6px}
.user-order-group-empty{display:grid;place-items:center;color:#969d96;font-size:15px;font-weight:800;line-height:1}
.user-order-group-summary>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-order-code + .user-order-group-summary{border-top:0}
.user-order-sheet.user-group-invite-sheet{position:relative;display:grid;justify-items:center;grid-template-rows:auto auto;width:min(300px,calc(100vw - 76px));max-height:calc(100dvh - 74px);padding:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;opacity:1;transform:translateY(12px) scale(.97);transition:transform .22s cubic-bezier(.22,.7,.25,1),opacity .22s ease}
.user-order-sheet-layer.user-group-invite-layer{align-items:center;padding:38px 12px calc(18px + env(safe-area-inset-bottom));background:transparent}
.user-group-invite-layer .user-order-sheet-backdrop{background:rgba(12,14,14,.86);transition:opacity .22s ease}
.user-order-sheet-layer.open .user-order-sheet.user-group-invite-sheet{transform:translateY(0) scale(1)}
.user-order-sheet-layer.user-group-invite-layer:not(.open) .user-order-sheet.user-group-invite-sheet{opacity:0;transform:translateY(12px) scale(.97)}
.user-group-invite-sheet>.poster-canvas{display:block;width:100%;height:auto;border-radius:12px;background:#fff;box-shadow:0 12px 28px rgba(0,0,0,.2)}
.user-group-invite-sheet .product-poster-close{position:absolute;top:-42px;right:0;z-index:2;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.user-group-invite-sheet .product-poster-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;width:100%;padding:8px 0 0}
.user-group-invite-sheet .product-poster-actions .btn{min-width:0;min-height:40px;padding:0 8px;border-radius:999px;border:1px solid #dfe0e3;background:#fff;color:#505157;font-size:13px;font-weight:700;cursor:pointer}
.user-group-invite-sheet .product-poster-actions .btn:not(.secondary){border-color:#202020;background:#202020;color:#fff}

.user-order-sheet-layer{position:fixed;inset:0;z-index:180;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}
.user-order-sheet-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(19,20,23,.48);opacity:0;transition:opacity .2s ease}
.user-order-sheet{position:relative;z-index:1;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;width:min(100%,var(--front-design-frame-width,420px));max-height:min(82vh,720px);max-height:min(82dvh,720px);overflow:hidden;border-radius:14px 14px 0 0;background:#fff;box-shadow:0 -14px 40px rgba(16,17,20,.18);transform:translateY(102%);transition:transform .22s cubic-bezier(.22,.7,.25,1)}
.user-order-sheet-layer.open{pointer-events:auto}
.user-order-sheet-layer.open .user-order-sheet-backdrop{opacity:1}
.user-order-sheet-layer.open .user-order-sheet{transform:translateY(0)}
.user-order-sheet-layer.user-group-invite-layer{align-items:center}
.user-order-sheet-layer.user-group-invite-layer .user-order-sheet.user-group-invite-sheet{transform:translateY(0) scale(1)}
.user-order-sheet-handle{justify-self:center;width:34px;height:4px;margin-top:7px;border-radius:999px;background:#d4d5d8}
.user-order-sheet>header{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;min-height:48px;padding:0 9px;border-bottom:1px solid #eeeeF1}
.user-order-sheet>header h2{grid-column:2;margin:0;font-size:15px;text-align:center}
.user-order-sheet>header button{grid-column:3;display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:#98999f}
.user-order-sheet>header svg{width:19px;height:19px;fill:currentColor}
.user-order-sheet-body{min-height:0;overflow-y:auto;padding:13px 14px 16px;overscroll-behavior:contain}
.user-order-sheet-product{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:9px;align-items:start;padding-bottom:13px;border-bottom:1px solid #eeeeF1}
.user-order-sheet-product>img{width:62px;height:62px;border-radius:7px;object-fit:cover;background:#eee}
.user-order-sheet-product>div{display:grid;gap:5px;min-width:0}
.user-order-sheet-product>div>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.user-order-sheet-product .user-order-product-title{display:flex;align-items:center;gap:5px;width:100%;min-width:0;line-height:18px}
.user-order-sheet-product .user-order-product-title>h2{display:block;min-width:0;margin:0;overflow:hidden;color:#303136;font-size:12px;font-weight:700;line-height:18px;text-overflow:ellipsis;white-space:nowrap}
.user-order-sheet-product>span{display:grid;justify-items:end;gap:4px;font-size:11px}
.user-order-sheet-product>span b{font-size:13px}.user-order-sheet-product>span small{color:#999}
.user-comment-rating{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:15px 0 13px;border-bottom:1px solid #eeeeF1}
.user-comment-rating>span,.user-order-textarea>span,.user-comment-upload>span{color:#62646a;font-size:12px;font-weight:750}
.user-comment-rating>div{display:flex;gap:5px}
.user-comment-rating button{display:grid;place-items:center;width:29px;height:29px;padding:0;border:0;background:transparent;color:#d5d6da}
.user-comment-rating button.active{color:#ffb02e}
.user-comment-rating svg{width:25px;height:25px;fill:currentColor}
.user-comment-rating>strong{color:#df8c16;font-size:11px}
.user-order-textarea{display:grid;gap:8px;padding-top:14px}
.user-order-textarea textarea{width:100%;min-height:104px;resize:vertical;padding:11px;border:1px solid #e5e6e9;border-radius:8px;background:#f7f7f8;color:#303136;font:inherit;line-height:1.55;outline:0}
.user-order-textarea textarea:focus{border-color:#bfc2c8;background:#fff;box-shadow:0 0 0 3px rgba(53,57,65,.06)}
.user-comment-upload{display:grid;gap:9px;padding-top:14px}.user-comment-upload small{color:#a1a2a7;font-weight:400}
.user-comment-images{display:flex;flex-wrap:wrap;gap:8px}
.user-comment-images>span,.user-comment-add{position:relative;display:block;width:62px;height:62px;border-radius:7px}
.user-comment-images>span{background:#eee}.user-comment-images img{display:block;width:100%;height:100%;border-radius:7px;object-fit:cover}
.user-comment-images>span button{position:absolute;top:-6px;right:-6px;display:grid;place-items:center;width:19px;height:19px;padding:0;border:2px solid #fff;border-radius:50%;background:#3d3f44;color:#fff;font:700 10px/1 sans-serif}
.user-comment-add{display:grid;place-items:center;padding:0;border:1px dashed #cfd1d5;background:#fafafa;color:#92949a}
.user-comment-add svg{width:24px;height:24px;fill:currentColor}
.user-after-sale-detail{display:grid;gap:9px;margin:13px 0 0;padding:12px;border-radius:8px;background:#f7f7f8}
.user-after-sale-detail>div{display:flex;justify-content:space-between;gap:12px;font-size:11px}.user-after-sale-detail dt{color:#92949a}.user-after-sale-detail dd{margin:0;color:#4b4c51;text-align:right}
.user-detail-sheet{grid-template-rows:auto auto minmax(0,1fr);max-height:min(88vh,760px);max-height:min(88dvh,760px)}
.user-order-detail-status{display:flex;align-items:center;justify-content:center;gap:6px;padding:2px 0 15px;color:#30343a}
.user-order-detail-status svg{width:18px;height:18px;fill:#4e9b73}.user-order-detail-status strong{font-size:14px}
.user-detail-sheet .user-order-sheet-product{padding:11px 0 13px;border-top:1px solid #eff0f2;background:#fff}
.user-order-detail-paid{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #eff0f2;color:#85878d;font-size:12px}
.user-order-detail-paid strong{color:#e84f70;font-size:15px}
.user-order-detail-list{display:grid;margin:0;padding:8px 0 2px}
.user-order-detail-list>div{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:start;gap:10px;padding:7px 0;font-size:12px;line-height:1.45}
.user-order-detail-list dt{color:#92949a}.user-order-detail-list dd{display:flex;align-items:flex-start;justify-content:flex-end;gap:7px;min-width:0;margin:0;color:#4a4c52;text-align:right}
.user-order-detail-list dd span{min-width:0;overflow-wrap:anywhere;white-space:pre-line}.user-order-detail-list .multiline dd span{line-height:1.6}
.user-order-detail-list button{flex:0 0 auto;padding:0;border:0;background:transparent;color:#3978d5;font-size:11px;line-height:1.5}
.user-review-resubmit-sheet{max-height:min(86vh,740px);max-height:min(86dvh,740px)}
.user-resubmit-reason{display:grid;gap:5px;margin:13px 0;padding:10px 11px;border-radius:8px;background:#fff3f5}.user-resubmit-reason strong{color:#d94765;font-size:11px}.user-resubmit-reason p{margin:0;color:#7c5961;font-size:12px;line-height:1.55;white-space:pre-line}
.user-resubmit-fields{display:grid;gap:11px}.user-resubmit-fields .field{display:grid;gap:6px}.user-resubmit-fields .field>span{color:#65686f;font-size:11px;font-weight:700}.user-resubmit-fields .input{width:100%;height:40px;padding:0 11px;border:1px solid #e1e3e7;border-radius:8px;background:#f8f8f9;outline:0}.user-resubmit-fields .input:focus{border-color:#aeb3bc;background:#fff;box-shadow:0 0 0 3px rgba(56,62,71,.06)}
.user-resubmit-empty{margin:12px 0;color:#999ca3;font-size:12px;text-align:center}
.user-order-sheet>footer{display:grid;grid-template-columns:1fr 1fr;padding-bottom:env(safe-area-inset-bottom);border-top:1px solid #e9eaed;background:#fff}
.user-order-sheet>footer button{min-height:48px;border:0;background:#fff;color:#66686e;font-size:13px;font-weight:800}
.user-order-sheet>footer button+button{border-left:1px solid #eeeeF1}.user-order-sheet>footer button.primary{color:#1585d1}.user-order-sheet>footer button.contact{color:#ed7b23}
.user-order-sheet>footer button.danger{color:#d94c62}
.user-group-close-sheet{max-height:min(70vh,520px);max-height:min(70dvh,520px)}
.user-group-close-confirm{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:11px;padding:16px 2px 8px}
.user-group-close-confirm>span{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff1f3;color:#d94c62}
.user-group-close-confirm svg{width:22px;height:22px;fill:currentColor}
.user-group-close-confirm strong{display:block;margin:1px 0 5px;color:#30343a;font-size:14px}
.user-group-close-confirm p{margin:0;color:#85888f;font-size:12px;line-height:1.65}
.user-external-redeem-sheet{grid-template-rows:auto auto minmax(0,1fr) auto;max-height:min(72vh,520px);max-height:min(72dvh,520px)}
.user-external-redeem-confirm,.user-external-redeem-state{display:grid;justify-items:center;gap:8px;padding:15px 4px 8px;text-align:center}
.user-external-redeem-icon,.user-external-redeem-state>span{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#fff4e7;color:#c9751e}
.user-external-redeem-icon svg{width:23px;height:23px;fill:currentColor}.user-external-redeem-state>span{font-size:22px;font-weight:800}
.user-external-redeem-confirm p{margin:4px 0 0;color:#70747a;font-size:12px}.user-external-redeem-confirm .user-external-redeem-question{max-width:310px;color:#45484d;font-size:14px;line-height:1.7}.user-external-redeem-confirm strong{display:inline;color:#24272c;font-size:16px;letter-spacing:0;overflow-wrap:anywhere}
.user-external-redeem-confirm small,.user-external-redeem-state p{max-width:290px;margin:3px 0 0;color:#96999e;font-size:11px;line-height:1.65}
.user-external-redeem-state strong{margin-top:3px;color:#30343a;font-size:15px}.user-external-redeem-state a{display:inline-flex;align-items:center;justify-content:center;min-width:128px;height:38px;margin-top:5px;border-radius:999px;background:#25292f;color:#fff;font-size:12px;font-weight:750}
.user-external-redeem-form-sheet{max-height:min(86vh,680px);max-height:min(86dvh,680px)}
.user-external-redeem-fields{display:grid;gap:12px;padding-top:14px}
#userExternalRedeemIdentitySlot{display:grid;gap:12px}
.user-external-redeem-fields label{display:grid;gap:6px}
.user-external-redeem-fields label>span{color:#5f6268;font-size:11px;font-weight:750}
.user-external-redeem-code-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.user-external-redeem-code-head>span{min-width:0;color:#5f6268;font-size:11px;font-weight:750}
.user-external-redeem-code-head .user-external-redeem-restore{flex:0 0 auto;padding:3px 7px;border:1px solid #ecd8b8;border-radius:999px;background:#fffaf1;color:#c9751e;font-size:10px;font-weight:800;line-height:1.2}
.user-external-redeem-fields input,.user-external-redeem-fields select{width:100%;height:42px;padding:0 11px;border:1px solid #e0e2e6;border-radius:8px;background:#f8f8f9;color:#303238;font:inherit;font-size:12px;outline:0}
.user-external-redeem-fields select{appearance:auto}
.user-external-redeem-fields input:focus,.user-external-redeem-fields select:focus{border-color:#e8a759;background:#fff;box-shadow:0 0 0 3px rgba(232,167,89,.12)}
.user-external-redeem-fields small{color:#999ca2;font-size:10px;line-height:1.45}
.user-external-redeem-category-hint{display:block;margin-top:-1px;color:#e5484d!important;font-size:10px!important;line-height:1.4}
.user-external-redeem-sheet .user-order-sheet-product .user-order-product-title{max-width:100%}
.user-external-redeem-sheet .user-order-sheet-product .user-order-product-title h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}

@media(max-width:480px){
  .front-frame-page>.front-app-frame.user-subpage .user-order-list{padding-top:8px}
  .front-frame-page>.front-app-frame.user-subpage .user-order-product{grid-template-columns:68px minmax(0,1fr) auto}
  .user-order-cover,.front-frame-page>.front-app-frame.user-subpage .user-order-product img{width:68px;height:68px}
  .user-comment-rating{grid-template-columns:auto minmax(0,1fr)}.user-comment-rating>strong{grid-column:2}
}

/* Buyer subpages share one closed frame so headers do not leak through the rounded shell. */
.front-app-frame.user-subpage{border-radius:24px;overflow:clip!important;background:#f5f6f8!important}
.front-app-frame.user-subpage>.front-app-content{min-height:100%;border-radius:inherit;overflow:clip!important;background:#f5f6f8}
.user-subpage .user-page-shell{min-height:100vh;padding-bottom:42px;background:#f5f6f8}
.user-subpage .user-page-topbar{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:0 10px;border-bottom:1px solid #eeeeF1;background:#fff;box-shadow:none;backdrop-filter:none}
.user-subpage .user-page-topbar::after{right:0;left:0;background:#eeeeF1}
.user-subpage .user-page-topbar h1{position:absolute;left:50%;max-width:calc(100% - 156px);margin:0;overflow:hidden;font-size:17px;font-weight:850;line-height:1.25;text-align:center;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;transform:translateX(-50%)}
.user-subpage .user-page-topbar>a,.user-subpage .user-page-topbar>button,.user-subpage .user-page-topbar>span{position:relative;z-index:1;flex:0 0 40px}
.user-subpage .user-page-topbar>span{display:block}
.user-subpage .user-topbar-actions{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-end;min-width:40px}
.user-subpage .user-topbar-actions button{flex:0 0 40px}

/* Followed stores use the same shop-first hierarchy as the public storefront. */
.user-subpage .user-follow-list{gap:12px}
.user-subpage .user-follow-card{display:grid;gap:13px;padding:14px;border:1px solid #e5e8ed;border-radius:12px;background:#fff;box-shadow:0 4px 16px rgba(28,32,38,.045)}
.user-subpage .user-follow-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.user-subpage .user-follow-profile{display:flex;align-items:center;gap:10px;min-width:0;color:#272a30}
.user-subpage .user-follow-profile>img{width:52px;height:52px;flex:0 0 52px;border:1px solid #eef0f3;border-radius:50%;object-fit:cover;background:#f2f3f5}
.user-subpage .user-follow-copy{gap:5px}.user-subpage .user-follow-copy strong{font-size:15px;font-weight:850}.user-subpage .user-follow-copy span{font-size:12px;color:#8d939c}
.user-subpage .user-follow-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.user-subpage .user-follow-enter,.user-subpage .user-follow-card button{display:inline-flex;align-items:center;justify-content:center;min-width:58px;height:31px;padding:0 10px;border:1px solid #e0e4ea;border-radius:999px;background:#fff;color:#606772;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}
.user-subpage .user-follow-enter{border-color:#3978d5;color:#3978d5}
.user-subpage .user-follow-card button{min-width:0;color:#8b919a}
.user-subpage .user-follow-card button:hover{border-color:#ef9aac;background:#fff3f5;color:var(--user-red)}
.user-subpage .user-follow-products{display:flex;gap:9px;padding-top:1px;overflow:auto;scrollbar-width:none}.user-subpage .user-follow-products::-webkit-scrollbar{display:none}
.user-subpage .user-follow-products a{position:relative;display:grid;grid-template-rows:76px auto;flex:0 0 76px;overflow:hidden;border-radius:8px;background:#f4f6f9;color:#3273cc}
.user-subpage .user-follow-products img{width:76px;height:76px;object-fit:cover;background:#eceff3}.user-subpage .user-follow-products strong{padding:4px 6px 5px;font-size:11px;line-height:1}
.user-subpage .user-follow-empty{margin:0;padding:10px 12px;border-radius:8px;background:#f7f8fa;color:#9ca1a9;font-size:12px}
@media (max-width:699px){
  .front-app-frame.user-subpage{border-radius:16px 16px 0 0}
  .user-subpage .user-page-shell{padding-bottom:28px}
  .user-subpage .user-page-topbar{min-height:52px;padding:0 8px}
  .user-subpage .user-page-topbar h1{max-width:calc(100% - 136px);font-size:16px}
  .user-subpage .user-list-content{padding:12px 10px 20px}
  .user-subpage .user-follow-card{gap:11px;padding:12px}
  .user-subpage .user-follow-profile>img{width:48px;height:48px;flex-basis:48px}
  .user-subpage .user-follow-actions{gap:5px}
  .user-subpage .user-follow-enter,.user-subpage .user-follow-card button{min-width:52px;height:29px;padding:0 8px;font-size:11px}
  .user-subpage .user-follow-products{gap:8px}.user-subpage .user-follow-products a{grid-template-rows:70px auto;flex-basis:70px}.user-subpage .user-follow-products img{width:70px;height:70px}
}
body.buyer-page:not(.buyer-auth-active) .user-section-band,
body.buyer-page:not(.buyer-auth-active) .user-commerce-grid,
body.buyer-page:not(.buyer-auth-active) .user-profile-band{
  box-shadow:0 5px 17px rgba(32,39,47,.035);
}
@media (max-width:760px){
  body.buyer-page:not(.buyer-auth-active) .user-service-grid{gap:7px}
  body.buyer-page:not(.buyer-auth-active) .user-service-grid>a,
  body.buyer-page:not(.buyer-auth-active) .user-service-grid>button{min-height:78px;padding:9px 4px 8px}
  body.buyer-page:not(.buyer-auth-active) .user-service-icon{width:31px;height:31px}
  body.buyer-page:not(.buyer-auth-active) .user-service-icon svg{width:17px;height:17px}
  body.buyer-page:not(.buyer-auth-active) .user-service-grid strong{font-size:11px}
}

/* followed-store-title-20260810 */
body.user-subpage[data-user-collection="follows"] .user-follow-copy {
  display: flex;
  align-items: center;
  min-height: 52px;
  gap: 0;
}

body.user-subpage[data-user-collection="follows"] .user-follow-copy strong {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  line-height: 1.25;
}

body.user-subpage[data-user-collection="follows"] .user-follow-copy span {
  display: none;
}

body.user-subpage[data-user-collection="follows"] .user-follow-store-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
}

@media (max-width:699px) {
  body.user-subpage[data-user-collection="follows"] .user-follow-copy {
    min-height: 48px;
  }

  body.user-subpage[data-user-collection="follows"] .user-follow-store-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
}
@media (prefers-reduced-motion:reduce){
  body.buyer-page:not(.buyer-auth-active) .user-service-grid>a,
  body.buyer-page:not(.buyer-auth-active) .user-service-grid>button{transition:none}
}

/* Common functions use equal cells without the old subsite separators. */
body.user-home-page.buyer-page:not(.buyer-auth-active) #buyerCommonFunctions>a::after,
body.user-home-page.buyer-page:not(.buyer-auth-active) #buyerCommonFunctions>button::after{
  display:none!important;
}

/* Common and subsite actions share the same quiet cells as the order grid. */
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-service-grid{
  gap:3px;
}
body.user-home-page.buyer-page:not(.buyer-auth-active) #buyerCommonFunctions{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-service-grid>a,
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-service-grid>button{
  position:relative;
  min-height:52px;
  padding:2px;
  border:0;
  border-radius:8px;
  background:transparent;
  box-shadow:none;
}
body.user-home-page.buyer-page:not(.buyer-auth-active) #buyerCommonFunctions>a:not(:last-child)::after,
body.user-home-page.buyer-page:not(.buyer-auth-active) #buyerCommonFunctions>button:not(:last-child)::after{
  display:none;
}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-service-grid>a:hover,
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-service-grid>button:hover{
  background:#fafbfc;
  box-shadow:none;
  transform:none;
}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-service-icon{
  width:30px;
  height:30px;
  border-radius:8px;
}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-service-grid strong{
  font-size:11px;
  font-weight:800;
}
@media (max-width:760px){
  body.user-home-page.buyer-page:not(.buyer-auth-active) .user-service-grid>a,
  body.user-home-page.buyer-page:not(.buyer-auth-active) .user-service-grid>button{min-height:52px}
}

/* Buyer profile card: balance and actions share the avatar row; editable WeChat data stays below. */
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-profile-band{
  grid-template-columns:1fr;
  gap:10px;
}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-profile-main{
  display:grid;
  grid-template-columns:66px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
}
body.user-home-page.buyer-page:not(.buyer-auth-active) .buyer-profile-copy{min-width:0}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-profile-balance{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin-top:4px;
  min-width:0;
}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-profile-balance small{color:#94979f;font-size:11px;white-space:nowrap}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-profile-balance strong{color:#303136;font-size:15px;font-weight:800;white-space:nowrap}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-profile-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-profile-actions .user-recharge-button,
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-profile-actions .user-wallet-detail-button{min-width:48px;min-height:34px;padding:0 10px;border-radius:9px;font-size:12px}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-identity-capsule{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  width:100%;
  min-height:42px;
  padding:4px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  background:#f7f8fa;
  color:#303136;
  text-align:left;
  cursor:pointer;
}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-identity-capsule>span{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:999px;background:#202226;color:#fff;font-size:12px;font-weight:800;white-space:nowrap}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-identity-capsule code{min-width:0;padding-left:8px;overflow:hidden;color:#4d535c;font:700 12px/1.2 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;letter-spacing:.15px;text-overflow:ellipsis;white-space:nowrap}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-identity-capsule:active{transform:scale(.99)}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-fields{display:grid;gap:9px;margin:0}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-field{display:grid;gap:6px;min-width:0}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-field>span{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-field>span small{margin-left:auto;text-align:right}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-field b{color:#626872;font-size:11px;font-weight:800;white-space:nowrap}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-field small{min-width:0;overflow:hidden;color:#969ba4;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-field a{color:#e24b6c;font-weight:800;text-decoration:none}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-field input{width:100%;height:40px;padding:0 12px;border:1px solid #e5e7eb;border-radius:10px;outline:0;background:#fafbfc;color:#34383f;font-size:12px}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-field input:focus{border-color:#9ca3ad;background:#fff;box-shadow:0 0 0 3px rgba(32,34,38,.07)}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-hint{color:#df3f57;font-size:10px;font-style:normal;line-height:1.35}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-capsule{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  width:100%;
  min-height:42px;
  padding:4px;
  box-sizing:border-box;
  border:1px solid #e5e7eb;
  border-radius:999px;
  background:#f7f8fa;
}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-capsule input{
  min-width:0;
  width:100%;
  height:34px;
  padding:0 8px;
  border:0;
  outline:0;
  background:transparent;
  color:#4d535c;
  font:700 12px/1.2 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  letter-spacing:.15px;
}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-capsule input::placeholder{color:#9aa0a8;font-weight:600}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-edit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:52px;
  min-height:34px;
  padding:0 14px;
  border:0;
  border-radius:999px;
  background:#202226;
  color:#fff;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-edit:active{transform:scale(.98)}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-field.is-editing .user-wechat-capsule{border-color:#9ca3ad;background:#fff;box-shadow:0 0 0 3px rgba(32,34,38,.07)}
body.user-home-page.buyer-page:not(.buyer-auth-active) .user-wechat-capsule input[readonly]{cursor:default}
@media (max-width:420px){
  body.user-home-page.buyer-page:not(.buyer-auth-active) .user-profile-main{grid-template-columns:62px minmax(0,1fr) auto;gap:9px}
  body.user-home-page.buyer-page:not(.buyer-auth-active) .user-profile-actions{gap:5px}
  body.user-home-page.buyer-page:not(.buyer-auth-active) .user-profile-actions .user-recharge-button,
  body.user-home-page.buyer-page:not(.buyer-auth-active) .user-profile-actions .user-wallet-detail-button{min-width:44px;padding:0 8px}
}
@media (max-width:360px){
  body.user-home-page.buyer-page:not(.buyer-auth-active) .user-profile-main{grid-template-columns:54px minmax(0,1fr) auto}
  body.user-home-page.buyer-page:not(.buyer-auth-active) .buyer-avatar{width:54px;height:54px}
  body.user-home-page.buyer-page:not(.buyer-auth-active) .user-profile-actions .user-recharge-button,
  body.user-home-page.buyer-page:not(.buyer-auth-active) .user-profile-actions .user-wallet-detail-button{min-width:42px;padding:0 7px}
  body.user-home-page.buyer-page:not(.buyer-auth-active) .user-profile-balance{gap:5px}
}

.user-after-sale-conversation { display: grid; gap: 10px; margin-top: 13px; }
.user-after-sale-conversation section { display: grid; gap: 6px; width: 92%; padding: 12px; border-radius: 12px; background: #f6f7f8; }
.user-after-sale-conversation section.buyer-question { justify-self: end; background: #fff1f5; }
.user-after-sale-conversation section.merchant-reply { justify-self: start; background: #eef6ff; }
.user-after-sale-conversation section > span { color: #858b94; font-size: 11px; font-weight: 800; }
.user-after-sale-conversation section > p { margin: 0; color: #3f444b; font-size: 13px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.user-after-sale-conversation section > time { color: #a0a5ad; font-size: 10px; }
.user-after-sale-waiting { margin-top: 14px; padding: 13px; border: 1px dashed #dfe2e6; border-radius: 9px; color: #999fa7; font-size: 11px; line-height: 1.5; text-align: center; }
.user-after-sale-waiting.is-closed { display: grid; gap: 9px; margin-bottom: 0; padding: 14px 13px; border-style: solid; background: #f8fafc; color: #8f959d; }
.user-after-sale-reopen{display:flex;align-items:center;justify-content:center;width:100%;min-height:36px;margin-top:0;padding:0 14px;border:1px solid #e5484d;border-radius:9px;background:#fff6f6;color:#d83f47;font-size:12px;font-weight:800;cursor:pointer;box-shadow:0 2px 6px rgba(229,72,77,.08);transition:background .18s ease,border-color .18s ease,transform .18s ease}
.user-after-sale-reopen:active{background:#ffe9e9;border-color:#d83f47;transform:translateY(1px)}
.user-after-sale-followup { margin-top: 13px; padding-top: 13px; border-top: 1px solid #eef0f3; }
.user-after-sale-sheet .user-order-sheet-body { scroll-padding-bottom: calc(24px + env(safe-area-inset-bottom)); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

@media (max-width: 480px) {
  .user-order-sheet-layer.open { align-items: flex-end; padding-top: 0; }
  .user-order-sheet { width: min(100%, var(--front-design-frame-width, 420px)); max-width: 100%; border-radius: 14px 14px 0 0; }
  .user-order-sheet-body { min-width: 0; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
  .user-order-sheet-product { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px; }
  .user-order-sheet-product > img { width: 56px; height: 56px; }
  .user-comment-rating { grid-template-columns: auto minmax(0, 1fr); gap: 5px 8px; }
  .user-comment-rating > div { min-width: 0; justify-content: flex-end; gap: 1px; }
  .user-comment-rating button { width: 25px; height: 25px; touch-action: manipulation; }
  .user-comment-rating svg { width: 21px; height: 21px; }
  .user-comment-rating > strong { grid-column: 2; justify-self: end; line-height: 1.2; }
  .user-order-textarea textarea { min-height: 96px; resize: none; }
  .user-order-sheet > footer button { min-width: 0; }
}

/* Order center card lookup */
.user-order-top-actions{position:relative;z-index:2;display:flex;align-items:center;justify-content:flex-end;gap:1px}
.user-order-sheet-layer.user-group-invite-layer{align-items:center!important;padding:0 12px!important}
.user-subpage .user-page-topbar .user-order-top-actions button{display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}
.user-subpage .user-page-topbar .user-order-search-svg{width:22px;height:22px;overflow:visible;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.user-order-top-actions img{width:20px;height:20px;object-fit:contain}
.user-card-query-form{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:8px;align-items:end}
.user-card-query-form label{display:grid;gap:7px;color:#74777d;font-size:12px;font-weight:700}
.user-card-query-form input{width:100%;min-height:44px;padding:0 12px;border:1px solid #e4e5e8;border-radius:8px;background:#f8f8f9;outline:0}
.user-card-query-form input:focus{border-color:#202020;background:#fff}
.user-card-query-form button{min-height:44px;border:0;border-radius:8px;background:#202020;color:#fff;font-size:13px;font-weight:800}
.user-card-query-result{margin-top:14px;padding:12px;border-radius:8px;background:#f6f7f6}
.user-card-query-result dl{display:grid;gap:0;margin:0}
.user-card-query-result dl>div{display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px;padding:9px 0;border-bottom:1px solid #e8eae8}
.user-card-query-result dl>div:last-child{border-bottom:0}
.user-card-query-result dt{color:#909490;font-size:11px}
.user-card-query-result dd{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0;color:#303330;font-size:12px;overflow-wrap:anywhere}
.user-card-query-result dd button{flex:0 0 auto;border:0;background:transparent;color:#1683c8;font-size:11px;font-weight:700}
.user-card-query-result .multiline dd span{white-space:pre-wrap}

/* Invite poster */
.user-invite-poster-button{width:100%;min-height:42px;margin-top:10px;border:0;border-radius:999px;background:#202020;color:#fff;font-size:13px;font-weight:800;cursor:pointer}
.user-invite-poster-modal{z-index:7200;align-items:center;padding:20px}
.user-invite-poster-sheet{position:relative;display:grid;justify-items:center;gap:11px;width:min(390px,100%);padding:0;background:transparent;box-shadow:none}
.user-invite-poster-sheet canvas{display:block;width:min(100%,330px);height:auto;border-radius:7px}
.user-invite-poster-sheet>.btn{width:min(100%,330px)}
.user-invite-poster-close{position:absolute;right:calc(50% - min(50%,165px) + 8px);top:8px;z-index:2;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:rgba(32,32,32,.78);color:#fff;font-size:21px;cursor:pointer}

/* Invite income */
.user-invite-income{display:grid;gap:13px;margin:0 12px 20px;padding:15px;border:1px solid #e7e8ec;border-radius:10px;background:#fff;box-shadow:0 5px 16px rgba(35,37,42,.035)}
.user-invite-income>header,.user-invite-income-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.user-invite-income h2,.user-invite-income-title strong{margin:0;color:#24272c;font-size:15px;font-weight:900}
.user-invite-income>header span,.user-invite-income-title span{color:#9a9ea5;font-size:10px}
.user-invite-income-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid #eceef1;border-radius:8px;background:#fafbfc}
.user-invite-income-stats>div{position:relative;display:grid;justify-items:center;gap:5px;padding:13px 5px}
.user-invite-income-stats>div:not(:last-child)::after{position:absolute;top:12px;right:0;bottom:12px;width:1px;background:#e7e9ed;content:""}
.user-invite-income-stats strong{max-width:100%;overflow:hidden;color:#24272c;font-size:15px;text-overflow:ellipsis;white-space:nowrap}
.user-invite-income-stats span{color:#8f949c;font-size:10px}
.user-invite-income-title{padding-top:1px}
.user-invite-income-title strong{font-size:13px}
.user-invite-income-list{display:grid;gap:8px}
.user-invite-income-item{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px;border:1px solid #eceef1;border-radius:8px;background:#fff}
.user-invite-income-item>i{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eaf8f0;color:#25895c;font-size:11px;font-style:normal;font-weight:900}
.user-invite-income-item>div{display:grid;gap:2px;min-width:0}
.user-invite-income-item>div strong,.user-invite-income-item>div span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-invite-income-item>div strong{color:#34383f;font-size:12px}
.user-invite-income-item>div span,.user-invite-income-item time{color:#989ca4;font-size:9px}
.user-invite-income-item>b{color:#23845a;font-size:13px;white-space:nowrap}
.user-invite-income-item.is-refund>i{background:#fff0f2;color:#d84a62}
.user-invite-income-item.is-refund>b{color:#d84a62}
.user-invite-income-empty{padding:24px 12px;border:1px dashed #e1e3e7;border-radius:8px;color:#9ca0a7;font-size:11px;text-align:center}
@media(max-width:370px){.user-invite-income{padding:12px}.user-invite-income-stats strong{font-size:13px}.user-invite-income-item{grid-template-columns:30px minmax(0,1fr) auto;padding:8px}.user-invite-income-item>i{width:30px;height:30px}}

/* Account security center */
.user-security-page{background:#f5f6f8}
.user-security-page .user-page-shell{padding-bottom:42px}
.security-hero{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;margin:12px;padding:17px 15px;border:1px solid #e5e8ed;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(28,32,38,.045)}
.security-hero-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#edf8f1;color:#249462}
.security-hero-icon img{width:27px;height:27px}
.security-hero h2{margin:0;color:#25282d;font-size:17px;font-weight:900;line-height:1.3}
.security-hero p{margin:4px 0 0;color:#9499a2;font-size:11px;line-height:1.45}
.security-hero-status{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:#edf8f1;color:#27875a;font-size:10px;font-weight:850;white-space:nowrap}
.security-hero-status i{width:5px;height:5px;border-radius:50%;background:#35a96e}
.security-section{display:grid;gap:13px;margin:0 12px 12px;padding:16px 14px;border:1px solid #e5e8ed;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(28,32,38,.035)}
.security-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.security-section-heading h2{margin:0;color:#272a30;font-size:15px;font-weight:900;line-height:1.3}
.security-section-heading p{margin:4px 0 0;color:#989da5;font-size:11px;line-height:1.45}
.security-section-heading>span{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#f2f4f6;color:#8a9098;font-size:10px;font-weight:800;white-space:nowrap}
.security-section-heading>span.security-state-success{background:#edf8f1;color:#238457}
.security-setting-list{display:grid;gap:1px;overflow:hidden;border:1px solid #eef0f3;border-radius:10px;background:#eef0f3}
.security-setting-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:66px;padding:10px 11px;border:0;background:#fff;color:#292c31;text-align:left;cursor:pointer}
.security-setting-item:hover{background:#fcfcfd}
.security-setting-item-static{cursor:default}
.security-setting-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#f2f4f6;color:#6c747e}
.security-setting-icon img{width:21px;height:21px;object-fit:contain}
.security-setting-icon.tone-blue{background:#edf4ff;color:#4c7fc6}
.security-setting-icon.tone-green{background:#edf8f1;color:#278e5e}
.security-setting-icon.tone-wechat{background:#ebf8f0;color:#22a361}
.security-setting-icon.tone-red{background:#fff0f3;color:#d94d69}
.security-setting-copy{display:grid;gap:4px;min-width:0}
.security-setting-copy strong{overflow:hidden;color:#30343a;font-size:13px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}
.security-setting-copy small{overflow:hidden;color:#999fa7;font-size:10px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.security-setting-action{display:inline-flex;align-items:center;gap:2px;color:#9298a0;font-size:11px;font-weight:750;white-space:nowrap}
.security-setting-action svg{width:15px;height:15px;fill:currentColor}
.security-setting-actions{display:flex;align-items:center;gap:6px}
.security-pill-button{min-width:62px;height:30px;padding:0 10px;border:1px solid #e0e4e8;border-radius:999px;background:#fff;color:#4f5862;font-size:11px;font-weight:800;cursor:pointer}
.security-pill-button:hover{border-color:#bfc5cc;background:#f8f9fa}
.security-pill-button.danger{border-color:#f2d5da;background:#fff7f8;color:#d64a62}
.security-dialog-layer{z-index:2300}
.security-dialog-sheet{width:min(100%,420px);max-height:min(76vh,620px);max-height:min(76dvh,620px)}
.security-dialog-sheet .user-order-sheet-body{padding:15px 16px 18px}
.security-dialog-tip{margin:0 0 14px;padding:10px 11px;border-radius:9px;background:#f6f7f8;color:#818891;font-size:11px;line-height:1.55}
.security-dialog-form{display:grid;gap:13px}
.security-dialog-form .field{display:grid;gap:7px}
.security-dialog-form .field>span{color:#686f78;font-size:11px;font-weight:800}
.security-dialog-form .input{width:100%;height:43px;padding:0 12px;border:1px solid #e1e4e8;border-radius:9px;background:#fafbfc;color:#30343a;outline:0;box-sizing:border-box}
.security-dialog-form .input:focus{border-color:#aeb6bf;background:#fff;box-shadow:0 0 0 3px rgba(77,91,105,.08)}
.security-dialog-form .field.hidden{display:none}
.security-code-field{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:8px;align-items:center}
.security-code-field button{height:43px;border:0;border-radius:9px;background:#202226;color:#fff;font-size:11px;font-weight:800;white-space:nowrap}
.security-code-field button:disabled{cursor:not-allowed;opacity:.55}
.security-qr-content{display:grid;justify-items:center;gap:9px;padding:2px 0 7px;text-align:center}
.security-qr-content>p{margin:0;color:#7f8790;font-size:12px}
.security-qr-content .buyer-wechat-qr-code{display:grid;place-items:center;width:216px;height:216px;padding:10px;border:1px solid #e6e9ed;border-radius:12px;background:#fff;box-sizing:border-box}
.security-qr-content .buyer-wechat-qr-code canvas{display:block;width:196px!important;height:196px!important}
.security-qr-content>strong{color:#30343a;font-size:13px}
.security-qr-content>small{color:#a0a5ad;font-size:10px}
.security-dialog-sheet>footer{grid-template-columns:1fr 1fr}
.security-dialog-sheet>footer button.primary{color:#1585d1}
.user-profile-page .profile-settings-section{gap:15px}
.profile-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.profile-section-heading h2{margin:0;color:#272a30;font-size:16px;font-weight:900}
.profile-section-heading p{margin:4px 0 0;color:#999fa7;font-size:11px}
.profile-section-heading>img{width:23px;height:23px;color:#6b737c}
.profile-readonly-field{position:relative}
.profile-readonly-field small{color:#9ba0a7;font-size:10px;line-height:1.4}
.profile-readonly-field .input[readonly]{background:#f2f3f5;color:#858b93;cursor:not-allowed}
@media(max-width:699px){
  .security-hero{margin:10px 10px 11px;padding:15px 13px}
  .security-section{margin:0 10px 10px;padding:14px 12px}
  .security-setting-item{min-height:62px;padding:9px 10px}
}
@media(max-width:360px){
  .security-hero{grid-template-columns:42px minmax(0,1fr);gap:10px}
  .security-hero-icon{width:42px;height:42px;border-radius:12px}.security-hero-icon img{width:23px;height:23px}
  .security-hero-status{grid-column:2;justify-self:start;margin-top:-4px}
  .security-setting-actions{gap:4px}.security-pill-button{min-width:56px;padding:0 8px}
  .security-setting-action{font-size:10px}
}
