:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#1b2738;background:#f6f7fb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}.ico{width:20px;height:20px;flex-shrink:0}a{color:inherit;text-decoration:none}.boot{min-height:100dvh;display:grid;place-content:center;text-align:center;color:#8490a1;font-size:14px}.spinner,.tiny-spinner{border:3px solid #d9e7ff;border-top-color:#1669ec;border-radius:50%;animation:spin .8s linear infinite}.spinner{width:28px;height:28px;margin:auto}.tiny-spinner{display:inline-block;width:12px;height:12px;border-width:2px;vertical-align:middle}@keyframes spin{to{transform:rotate(360deg)}}
.app-shell{width:100%;max-width:560px;margin:auto;min-height:100dvh;padding-bottom:calc(86px + env(safe-area-inset-bottom))}.topbar{height:67px;padding:10px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid #eef0f5;position:sticky;top:0;z-index:8}.topbar-title{display:flex;gap:7px;align-items:center;font-weight:720;font-size:19px;letter-spacing:-.5px}.wordmark{font-size:23px;font-weight:900;letter-spacing:-1.5px;background:linear-gradient(110deg,#ec3655 15%,#2463d9 65%);background-clip:text;color:transparent}.refresh,.icon-btn{width:42px;height:42px;min-width:42px;min-height:42px;padding:0;margin:0;display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;line-height:0;vertical-align:middle;border:1px solid #e8edf5;border-radius:12px;background:#fff;color:#506078;appearance:none;-webkit-appearance:none}.refresh .ico,.icon-btn .ico{display:block;position:static;margin:0;width:20px;height:20px;flex:0 0 20px;transform:none;vertical-align:middle}.filter-shell{background:#fff;padding:12px 16px 12px;border-bottom:1px solid #ecf0f4}.market-switch{display:flex;gap:8px}.market-option{flex:1;min-width:0;border:1px solid #e7ebf2;border-radius:9px;padding:11px 5px;color:#5f6d80;font-size:13px;font-weight:650;background:#f7f8fa;white-space:nowrap}.market-option.on{color:white;background:#1667e8;border-color:#1667e8;box-shadow:0 4px 10px #1765e71f}.ranges{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;width:100%;padding:12px 0 2px;overflow:visible}.range-pill{min-width:0;width:100%;color:#626e7e;background:#f4f6f9;border:0;border-radius:9px;font-size:clamp(10px,3vw,12.5px);padding:9px 0;white-space:nowrap;line-height:1.2}.range-pill.selected{background:#e8f0ff;color:#135cce;font-weight:700}.statusline{min-height:36px;display:flex;align-items:center;padding:7px 16px;color:#78869a;font-size:11px}.statusline .ico{width:13px;height:13px;display:inline;vertical-align:-2px;color:#18ad7e}.status-danger{color:#b64549}.page-body{min-height:calc(100dvh - 238px)}.content{padding:3px 14px 22px}.section-top{display:flex;align-items:center;justify-content:space-between;padding:10px 3px 13px}.section-top h2{font-size:17px;line-height:1.5;font-weight:730;margin:0}.section-top p{margin:2px 0 0;color:#92a0b0;font-size:11.5px}.kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px}.kpi{background:white;border:1px solid #ecedf2;border-radius:13px;min-height:108px;padding:14px 14px 11px;display:flex;flex-direction:column;gap:9px}.kpi-label{color:#8190a2;font-size:12px}.kpi strong{font-size:23px;line-height:1.1;font-weight:750;letter-spacing:-.5px;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kpi small{font-size:10px;color:#a1acba}.section-card{margin-top:14px;background:white;border:1px solid #edf0f4;border-radius:13px;padding:15px 14px}.section-card.slim{padding-bottom:16px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.section-title h3{font-size:15px;font-weight:750;margin:0}.section-title>span{color:#9ca6b4;font-size:11px}.text-link{border:0;background:none;color:#1f6be8;font-size:12px;display:flex;align-items:center;gap:1px}.text-link .ico{height:14px;width:14px}.product-line{display:flex;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #f2f3f6}.product-line:last-child{border-bottom:0}.ranking{width:20px;height:20px;display:grid;place-items:center;border-radius:6px;background:#eef0f3;color:#7e8999;font-weight:750;font-size:11px;flex-shrink:0}.ranking.top{color:#d17420;background:#fff2e1}.thumb{height:48px;width:48px;border:1px solid #eceff4;border-radius:8px;background:#f6f7f9;overflow:hidden;display:grid;place-items:center;flex-shrink:0}.thumb img,.product-image img{height:100%;width:100%;object-fit:contain;background:white}.image-fallback{display:grid;place-items:center;color:#a9b4c4;width:100%;height:100%}.image-fallback .ico{height:23px;width:23px}.product-line-main{flex:1;min-width:0;font-size:12.5px;color:#233044}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.product-line-main small,.product-line-end small{font-size:10.5px;color:#9ca7b7;display:block;margin-top:4px}.product-line-end{text-align:right;min-width:26px;font-size:14px}.product-line-end strong{font-variant-numeric:tabular-nums}.empty-mini,.muted{color:#8d9aaa;font-size:12px}.empty-mini{padding:24px 0;text-align:center}.market-total{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #f2f4f6;font-size:13px}.market-total:last-child{border-bottom:0}.market-total strong{font-size:14px;font-variant-numeric:tabular-nums}.demo-banner{font-size:11px;background:#fff8eb;color:#a5691d;padding:9px 16px}.count-pill{padding:6px 10px;background:#e9f1ff;border-radius:20px;font-size:11px;color:#1e6be0;font-weight:700}
.search-row{margin:2px 0 12px}.search-field{height:42px;background:white;border:1px solid #e6ebf0;border-radius:11px;display:flex;gap:9px;align-items:center;color:#a0aabc;padding:0 12px}.search-field .ico{width:17px;height:17px}.search-field input{border:0;outline:0;min-width:0;flex:1;background:transparent;font-size:13px;color:#25334a}.search-field input::placeholder{color:#aab4c1}.filter-row{display:flex;gap:9px;overflow:auto;scrollbar-width:none;margin-bottom:13px}.filter{border:0;border-radius:30px;padding:8px 15px;background:#eff2f6;color:#697689;font-size:12px;white-space:nowrap}.filter.active{color:#1768e7;background:#e7f0ff;font-weight:700}.result-head{font-size:11px;color:#92a0b0;display:flex;justify-content:space-between;margin:8px 1px 11px}.order-list,.stock-list{display:flex;flex-direction:column;gap:10px}.order-card,.stock-card{background:#fff;border:1px solid #e9eef4;border-radius:13px;padding:14px}.order-h,.order-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.order-h strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag{display:inline-flex;align-items:center;justify-content:center;color:#7d8795;background:#f2f4f7;border-radius:5px;padding:3px 7px;font-size:10px;white-space:nowrap}.tag.ok{color:#148b63;background:#eaf9f0}.tag.bad{color:#c84d4b;background:#fff0ee}.tag.fbe{background:#eaf1ff;color:#236bdf}.order-time{display:flex;align-items:center;gap:6px;font-size:11px;color:#96a1ae;margin-top:10px;padding-bottom:8px;border-bottom:1px solid #f1f2f5}.order-time .ico{width:13px;height:13px}.order-time .fbe{margin-left:auto}.order-product{display:flex;gap:10px;align-items:center;padding:12px 0}.order-info{flex:1;min-width:0;font-size:13px}.order-info small{display:block;font-size:11px;color:#97a3b3;margin-top:6px}.order-product>strong{font-size:13px;font-weight:600}.order-bottom{border-top:1px solid #f2f3f5;padding-top:12px;color:#929eaa;font-size:12px}.order-bottom strong{font-size:16px;color:#1d5fcb;font-variant-numeric:tabular-nums}.stock-main{display:flex;gap:12px;align-items:start}.product-image{height:74px;width:74px;background:#f7f8f9;border-radius:9px;border:1px solid #e9edf3;flex-shrink:0;display:grid;place-items:center;overflow:hidden}.stock-title-wrap{min-width:0;flex:1}.stock-title{display:flex;gap:8px;align-items:center;margin:1px 0 6px;font-size:13px;font-weight:680}.stock-sub{font-size:11px;color:#94a1b3;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.stock-labels{display:flex;gap:6px;margin-top:10px}.price-row{display:flex;justify-content:space-between;align-items:center;background:#f1f5fc;padding:12px;margin-top:13px;border-radius:9px}.price-row>div{display:flex;flex-direction:column;gap:6px}.price-row small{color:#8997aa;font-size:11px}.price-row strong{font-size:16px;font-weight:750;color:#155ecc}.edit-price{display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#1966da;width:40px;height:40px}.edit-price .ico{width:18px;height:18px}.stock-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;padding:15px 0 10px}.stock-grid>div{display:flex;flex-direction:column;text-align:center;gap:8px;border-right:1px solid #eff1f4}.stock-grid>div:last-child{border:0}.stock-grid span{color:#919eae;font-size:10px;white-space:nowrap}.stock-grid strong{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}.red{color:#e24e4e}.extra-stock{color:#74839a;font-size:10.5px;border-top:1px dashed #e9edf3;padding-top:10px}.competitor{margin-top:7px;color:#6e7a88;font-size:11px}.empty{padding:56px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}.empty strong{font-size:14px}.empty p{font-size:12px;color:#94a1b0;margin:0}.empty-symbol{height:60px;width:60px;border-radius:18px;background:#edf2f8;color:#a6b3c4;display:grid;place-items:center;margin-bottom:9px}.empty-symbol .ico{width:28px;height:28px}.error-banner{margin:10px 14px;background:#fff0ed;border:1px solid #fbd7d5;color:#b64b4c;border-radius:10px;padding:12px;display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.5}.error-banner .ico{flex-shrink:0}.error-banner button{margin-left:auto;color:#b64b4c;border:0;background:transparent;font-weight:700}
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:560px;width:100%;height:calc(66px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:white;display:grid;grid-template-columns:repeat(4,1fr);box-shadow:0 -5px 20px #24334b0a;border-top:1px solid #e8ecf1;z-index:9}.nav-item{background:transparent;border:0;display:flex;align-items:center;justify-content:center;gap:4px;flex-direction:column;color:#9aa5b4;font-size:10.5px;padding:6px}.nav-item .ico{width:22px;height:22px}.nav-item.active{color:#1769ea;font-weight:750}.profile-head{display:flex;align-items:center;gap:13px;padding:24px 12px}.profile-icon{width:56px;height:56px;border-radius:17px;background:#e8f0ff;display:grid;place-items:center;color:#1769e8}.profile-icon .ico{width:30px;height:30px}.profile-head h2{margin:0;font-size:18px}.profile-head p{font-size:12px;color:#8d9aaa;margin:6px 0 0}.setting-row{min-height:47px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f1f3f6;font-size:12px;gap:8px}.setting-row>span:last-child,.setting-row>div{color:#6b7c92}.setting-row>div{display:flex;align-items:center;gap:6px}.setting-value{max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inline-test{color:#1769df;border:0;background:none;font-size:11px}.notice{margin:18px 5px;display:flex;gap:8px;color:#8693a4;font-size:11px;line-height:1.6}.notice .ico{width:18px;height:18px;flex-shrink:0}.btn{border-radius:11px;border:0;min-height:46px;padding:12px 16px;font-weight:700;font-size:14px}.btn.primary{background:#1766e8;color:white}.btn.outline{background:white;border:1px solid #e0e6ed;color:#53657d}.btn.full{width:100%}.logout{color:#e05e5e!important}.overlay{position:fixed;inset:0;background:#07162e82;display:flex;align-items:end;justify-content:center;z-index:99}.sheet{width:min(100%,560px);background:#fff;border-radius:22px 22px 0 0;padding:21px 20px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -10px 32px #07162616}.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.sheet-head h3{margin:0;font-size:17px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.form-grid label{font-size:12px;color:#768499}.form-grid input{margin-top:8px;width:100%;padding:10px;border-radius:9px;border:1px solid #dfe6ef;color:#273449;background:#f8f9fc;font-size:12px}.modal-sku{color:#94a0ac;font-size:12px}.price-current{border-bottom:1px solid #e9edf2;padding:14px 0;margin-bottom:20px;display:flex;justify-content:space-between;font-size:13px;color:#7c8a9a}.price-current strong{color:#1d2b41}.input-label{font-size:12px;color:#7f8c9e}.price-input{width:100%;border:1px solid #d9e2ef;border-radius:10px;margin:9px 0 15px;padding:14px;font-size:24px;font-weight:700;outline-color:#1a66e6;color:#1b2f4d}.estimate-row{display:flex;justify-content:space-between;padding:13px;border-radius:10px;background:#eff5ff;font-size:12px}.estimate-row b{font-size:16px;color:#1364e1}.notice-small{font-size:11px;color:#98a4b4;line-height:1.6;margin:13px 0 22px}.login-shell{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:28px 20px;background:linear-gradient(#fff,#f5f7fb)}.login-mark{display:grid;place-items:center;width:64px;height:64px;background:#1768e7;color:#fff;border-radius:19px;margin-bottom:15px}.login-mark .ico{width:32px;height:32px}.login-shell h1{margin:0;font-size:23px}.login-shell>p{font-size:12px;color:#8290a2;margin:10px 0 28px}.login-card{width:min(100%,380px);padding:24px;background:white;border-radius:15px;box-shadow:0 12px 50px #2a416315}.login-card label{display:block;font-size:12px;color:#647488;margin-bottom:9px}.login-card input{display:block;width:100%;padding:13px;border:1px solid #dae2ed;border-radius:9px;margin-bottom:18px;outline-color:#196ae9}.form-message{text-align:center;margin-top:12px;font-size:12px;color:#d54a4a}.login-foot{font-size:11px;color:#a0acb9;margin-top:30px}.toast{position:fixed;z-index:200;left:50%;transform:translateX(-50%);bottom:calc(85px + env(safe-area-inset-bottom));color:#fff;background:#24334bea;padding:12px 16px;min-width:210px;max-width:85%;border-radius:10px;font-size:12px;line-height:1.6;text-align:center;box-shadow:0 6px 20px #111b2a25}
@media(min-width:700px){body{background:#e9edf3}.app-shell{background:#f6f7fb;box-shadow:0 0 50px #30415a16}.bottom-nav{box-shadow:0 -4px 15px #16233b13}}@media(max-width:360px){.market-option{font-size:11px;padding:10px 3px}.kpi strong{font-size:20px}.stock-grid span{font-size:9px}.stock-grid strong{font-size:12px}.filter{padding:7px 11px}}

/* 三国汇总页按国家分组，避免不同币种和库存混在一起。 */
.country-group{min-width:0}.country-group+.country-group{margin-top:16px}.country-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 3px 10px;color:#26364b;font-size:13px}.country-heading strong{font-weight:750}.country-heading span{color:#8997a9;font-size:11px;text-align:right}.country-group .stock-list{margin:0}.country-group .order-list{margin:0}

/* Startup diagnostics used by the iOS home-screen version. */
.startup-error{min-height:100dvh;padding:28px 22px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:#f6f7fb;color:#1b2738}.startup-error-mark{font-size:27px;font-weight:900;letter-spacing:-1px;background:linear-gradient(110deg,#ec3655 15%,#2463d9 65%);background-clip:text;color:transparent}.startup-error h1{font-size:21px;margin:18px 0 8px}.startup-error p{max-width:310px;color:#78869a;font-size:14px;line-height:1.7}.startup-error small{max-width:310px;color:#9aa5b4;font-size:11px}.startup-error button{margin-top:22px;padding:13px 28px;border:0;border-radius:12px;background:#1667e8;color:#fff;font-size:15px;font-weight:700}

/* Home-screen PWA: keep toolbar below the iPhone status bar. */
.standalone .app-shell{padding-top:env(safe-area-inset-top)}
.standalone .topbar{top:env(safe-area-inset-top)}
.standalone .overlay{padding-top:env(safe-area-inset-top)}
/* Compact phone widths: no horizontal overflow in the header or dialogs. */
@media(max-width:380px){.topbar{padding-left:14px;padding-right:14px}.topbar-title{min-width:0;font-size:17px}.wordmark{font-size:21px}.sheet{padding-left:16px;padding-right:16px}}
