@font-face{font-family:reference-icons;src:url('./assets/icons.woff') format('woff');font-display:block}
*{box-sizing:border-box;margin:0;padding:0} :root{--primary:#5b5bf5;--danger:#ff4d4f;--bg:#f5f5f7;--text:#333;--muted:#999}body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-size:14px}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit}a{color:inherit;text-decoration:none}button:disabled{opacity:.55;cursor:wait}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--primary);outline-offset:3px}input,textarea,select{min-width:0;border:0;background:#fff;outline-offset:0}input{height:44px}textarea{resize:vertical;min-height:72px} .icon{font-family:reference-icons!important;font-style:normal;font-weight:normal;font-size:22px}.page{min-height:100dvh;padding-bottom:calc(62px + env(safe-area-inset-bottom))}.header{height:44px;background:white;display:flex;align-items:center;justify-content:center;position:relative;font-size:16px;font-weight:600}.header.dark{background:#202020;color:#fff}.header .back{position:absolute;left:8px;width:36px;height:40px}.brandbar{height:52px;background:white;display:flex;align-items:center;justify-content:space-between;padding:0 16px}.brand{font-size:25px;font-weight:800;font-style:italic;text-decoration:underline;color:var(--primary)}.brandbar button{color:var(--primary);padding:10px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.product{min-width:0;background:white;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #0000000f}.product img{display:block;width:100%;height:140px;object-fit:cover;background:#eee}.product .info{padding:10px}.product h2{font-size:12px;line-height:1.4;height:34px;font-weight:400;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.price{color:var(--danger);font-size:14px;font-weight:700;margin-top:6px}.nav{position:fixed;z-index:10;bottom:0;left:0;width:100%;height:calc(50px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);display:flex;background:white;border-top:1px solid #eee}.nav a{flex:1;display:flex;gap:2px;align-items:center;justify-content:center;flex-direction:column;color:#777;font-size:10px}.nav a.active{color:var(--primary)}.nav .icon{font-size:23px}.empty{text-align:center;padding:32px 14px;color:var(--muted);font-size:13px}.searchbar{padding:10px 12px;display:flex;gap:10px;background:#fff}.searchbar input{flex:1;background:#f5f5f7;border-radius:5px;height:34px;padding:0 12px}.searchbar button{background:var(--primary);border-radius:20px;color:#fff;padding:0 16px}.primary{width:100%;background:var(--primary);color:#fff;padding:12px 0;border-radius:24px;font-size:16px;font-weight:600;min-height:44px}.card{background:white;border-radius:12px;margin:12px;padding:16px}.auth-head{height:148px;background:var(--primary);text-align:center;color:white;padding-top:38px}.auth-head h1{font-size:32px;font-style:italic;font-weight:800}.auth-head p{opacity:.65;font-size:13px;margin-top:8px}.auth-card{margin:24px 16px;padding:24px;background:#fff;border-radius:16px;box-shadow:0 4px 16px #00000008}.auth-row{display:flex;align-items:center;min-height:52px;border-bottom:1px solid #eee}.auth-row span{width:100px;flex-shrink:0}.auth-row input{flex:1;width:0;font-size:14px}.auth-card .primary{margin-top:24px;height:48px}.auth-foot{text-align:center;color:#999;font-size:12px;margin-top:20px}.auth-foot a{color:var(--primary)}.hero-product{display:block;width:100%;height:280px;object-fit:cover;background:#eee}.detail-info{padding:16px;background:white}.detail-info .price{font-size:22px;margin:0}.detail-info h1{font-size:16px;margin:12px 0;font-weight:600}.detail-info small{color:#999}.price-line{display:flex;justify-content:space-between}.intro{margin-top:10px;background:white;padding:16px;min-height:130px}.intro h2{font-size:15px;border-left:3px solid var(--primary);padding-left:8px;margin-bottom:16px}.purchase-bar{position:fixed;bottom:0;background:white;width:100%;padding:10px 12px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #eee}.purchase-summary{display:flex;gap:10px;align-items:center;margin-bottom:10px}.purchase-summary img{width:42px;height:42px;object-fit:cover;border-radius:4px}.purchase-summary .text{min-width:0;flex:1}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.stepper{display:flex;align-items:center;gap:2px}.stepper button{background:#f5f5f7;width:28px;height:28px;border-radius:4px}.stepper input{width:38px;height:28px;background:#f5f5f7;text-align:center}.buy{background:linear-gradient(90deg,#ff7856,#ff4477)}.tabs{display:flex;overflow:auto;background:#fff;scrollbar-width:none}.tabs button{flex:1;white-space:nowrap;padding:15px 12px;font-size:13px;border-bottom:3px solid transparent}.tabs .active{color:var(--primary);border-bottom-color:var(--primary)}.order-card{margin:10px 12px;background:#fff;border-radius:14px;padding:12px;box-shadow:0 2px 10px #0000000f}.order-top{display:flex;justify-content:space-between;align-items:center;color:#999;font-size:13px;margin-bottom:12px}.badge{background:var(--primary);color:white;border-radius:4px;padding:4px 7px;font-size:12px}.badge.completed,.badge.paid{background:#18b47d}.badge.cancelled,.badge.rejected{background:#999}.order-product{display:flex;gap:12px;align-items:center}.order-product img{width:84px;height:84px;object-fit:cover;border-radius:8px}.order-product h2{font-size:14px;font-weight:600;line-height:1.45;margin-bottom:8px}.order-product p{font-size:13px;color:#666}.stats{display:flex;margin-top:14px;text-align:center}.stats>div{flex:1;color:#999;font-size:12px;min-width:0}.stats strong{display:block;font-size:16px;color:var(--primary);margin-top:6px}.order-bottom{text-align:right;margin-top:12px}.outline{border:1px solid #ddd;border-radius:18px;padding:7px 16px;font-size:12px}.me-head{padding:24px 20px 30px;background:linear-gradient(120deg,#5b5bf5,#8b83ff);color:white}.identity{display:flex;align-items:center;gap:14px}.avatar{height:56px;width:56px;background:#fff;border-radius:50%;padding:8px}.identity strong{font-size:18px}.identity p{font-size:12px;margin-top:8px;opacity:.85}.vip{border:1px solid #ffffff80;border-radius:10px;padding:2px 8px;font-size:10px;margin-left:8px}.credit{margin-top:18px;display:flex;justify-content:space-between;font-size:12px}.creditbar{height:4px;background:#fff;border-radius:3px;margin-top:8px}.balance{display:flex;text-align:center;margin-top:-14px;position:relative;padding:22px 8px}.balance a{flex:1;border-right:1px solid #eee}.balance a:last-child{border:0}.balance strong{display:block;font-size:18px;margin-bottom:8px}.balance small{font-size:12px;color:#999}.group-title{font-size:14px;font-weight:600;padding:0 4px 6px}.menu-row{display:flex;align-items:center;gap:10px;min-height:46px;border-bottom:1px solid #f5f5f5}.menu-row:last-child{border:0}.menu-row .icon{color:#666;font-size:20px}.menu-row .arrow{margin-left:auto;color:#bbb}.logout{background:#fff;margin:12px;width:calc(100% - 24px);border-radius:24px;height:44px;color:#666}.simpleform{padding:14px;background:#e9e9ea;min-height:calc(100dvh - 44px)}.field{display:block;margin-bottom:16px}.field>span{display:block;margin-bottom:10px;font-size:14px}.field input,.field textarea,.field select{width:100%;padding:12px;border-radius:3px}.simpleform .primary{border-radius:4px;font-weight:400}.form-card{margin:24px 12px;background:white;border-radius:12px;padding:18px}.form-card input,.form-card textarea{background:#f7f7f8}.form-card .field{margin-bottom:20px}.withdraw-balance{background:linear-gradient(110deg,#7775fc,#d3a3dc);padding:22px 16px;color:white}.withdraw-balance strong{display:block;font-size:28px;margin:8px 0}.withdraw-balance p{font-size:12px;opacity:.85}.amount-row{display:flex;gap:8px;align-items:center}.amount-row input{flex:1}.amount-row button{color:var(--primary);padding:10px}.hint{font-size:12px;color:#888;line-height:1.6;margin:10px 0}.personal-rows{margin-top:26px;padding:0 18px}.personal-rows .menu-row{height:52px}.right{margin-left:auto;color:#999}.center{text-align:center}.large-avatar{width:76px;height:76px;margin:0 auto 12px}.ledger-row{padding:14px 0;border-bottom:1px solid #eee;display:flex;justify-content:space-between;gap:12px}.ledger-row small{display:block;color:#999;margin-top:5px}.error{color:#c23636;padding:12px;text-align:center}.loading{padding:60px 20px;text-align:center;color:#999}#toast{position:fixed;z-index:100;left:50%;top:45%;transform:translate(-50%,-50%);background:#222e;color:white;border-radius:8px;padding:14px 20px;max-width:85vw;text-align:center;display:none}dialog{border:0;border-radius:14px;width:min(360px,90vw);margin:auto;padding:22px;color:#333}dialog::backdrop{background:#0007}dialog h2{font-size:18px;margin-bottom:14px}dialog p{line-height:1.6}.dialog-actions{display:flex;gap:12px;margin-top:22px}.dialog-actions button{flex:1}.dialog-actions button:first-child{background:#f4f4f6;border-radius:24px}.detail-page{padding-bottom:135px}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Measurements taken from reference home DOM. */
.brandbar{height:51px;position:sticky;top:0;z-index:11;box-shadow:0 1px 4px #0000000f}.brand{font-size:22px;text-decoration:none;position:relative}.brand:after{content:"";display:block;height:3px;width:60%;background:var(--primary);opacity:.4;border-radius:2px;margin-top:-4px}.brandbar+.grid{padding-top:0}.product img{display:inline-block;vertical-align:baseline}.product{box-shadow:0 2px 8px #0000000f}

.me-head{background:linear-gradient(135deg,#5b5bf5,#7b7bff);padding:24px 16px 20px}.avatar{background:#ffffff40;border:2px solid #ffffff80;padding:0}.large-avatar{background:#a3a0f7}.identity strong{font-size:16px}.identity p{margin-top:4px}.credit{justify-content:flex-start;gap:8px;margin-top:16px;opacity:.8}.creditbar{margin-top:6px}.balance{margin:12px;padding:16px;box-shadow:0 2px 12px #0000000f}.balance a{border:0}.balance strong{margin-bottom:4px}.balance small{font-size:11px}.menu-group{padding:0;overflow:hidden;margin:0 12px 12px}.menu-group .group-title{padding:14px 16px;font-size:13px;color:#999;border-bottom:1px solid #f5f5f5}.menu-group .menu-row{min-height:44px;padding:10px 16px;gap:6px}.menu-group .icon{font-size:16px}.menu-group .arrow .icon{font-size:14px}

.sheet-shade{position:fixed;inset:0;background:#0008;z-index:20}.password-sheet{position:absolute;bottom:0;width:100%;background:#fff;border-radius:18px 18px 0 0;padding:24px 20px}.password-sheet h2{font-size:24px;margin-bottom:24px}.password-sheet input{background:#f7f7f8}.sheet-cancel{display:block;text-align:center;margin-top:16px;color:#999}
