:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#292925;background:#f5f5f0;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #dcded6;background:#fff;color:inherit;border-radius:9px;padding:11px 14px;touch-action:manipulation}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a9bb85;outline-offset:2px}.primary{background:#3f503a;border-color:#3f503a;color:#fff;font-weight:600}.quiet{border:0;background:transparent;color:#73756c}input,textarea,select{width:100%;border:1px solid #dcded6;background:#fff;border-radius:9px;padding:13px;color:#292925;font-size:16px}label{display:block;font-size:13px;color:#666b60;margin-bottom:17px}label input,label select,label textarea{display:block;margin-top:8px}small,.hint{font-size:12px;color:#818577}.brand{letter-spacing:4px;font-size:25px;font-weight:650;display:flex;align-items:center;gap:15px}.brand span{font-size:10px;letter-spacing:2px;font-weight:400;border-left:1px solid #c9cec1;padding-left:15px}header{height:84px;background:#fffefa;border-bottom:1px solid #e4e6dd;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1020px)/2))}.app{max-width:1020px;margin:auto;padding:32px 22px}h1{font-size:29px;font-weight:500;letter-spacing:-1px;margin:8px 0}h2{font-size:19px;font-weight:550;margin:0 0 16px}.welcome{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.sync{font-size:11px;color:#8b877b;white-space:nowrap}.connected{color:#627855}.customer{padding:19px;background:#e9eddf;border-radius:12px;display:flex;gap:18px;align-items:end;margin-bottom:26px}.customer label{flex:1;margin:0}.customer button{white-space:nowrap;min-height:47px}.tabs{display:flex;gap:26px;border-bottom:1px solid #dfe1d8;margin-bottom:22px}.tabs button{padding:14px 0;border:0;border-radius:0;background:none;color:#85897d}.tabs .active{color:#3f503a;border-bottom:2px solid #3f503a;font-weight:650}.tools{display:flex;gap:12px}.tools input{flex:1;min-width:0}.tools button{white-space:nowrap}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:22px}.shoe{background:#fffefa;border:1px solid #e5e7de;border-radius:13px;overflow:hidden}.shoe>img{width:100%;height:230px;object-fit:cover;background:#edeee7;display:block}.shoe-body{padding:18px}.shoe h2{display:flex;align-items:center;justify-content:space-between;margin:7px 0 17px}.shoe h2 span{font-size:12px;color:#7e8574;font-weight:400}.sizes{display:flex;gap:7px;flex-wrap:wrap}.sizes button{padding:8px 11px;border-radius:7px;display:flex;flex-direction:column;gap:4px;min-width:48px}.sizes strong{font-size:14px;font-weight:550}.sizes span{font-size:10px;color:#8a8d82}.sizes .chosen{border-color:#596e4b;background:#edf1e4}.sell{width:100%;margin-top:18px;font-size:13px}.empty{padding:60px 16px;text-align:center;color:#8c9083;background:#eff0e8;border:1px dashed #d7dbcc;border-radius:12px;margin-top:24px}.empty>div{font-size:42px;margin-bottom:15px}.empty p{font-size:13px;line-height:1.9}.record{display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:1px solid #e2e5da;padding:18px 0}.record strong{font-size:14px;font-weight:500}.record small{display:block;margin-top:7px}.record button{white-space:nowrap;font-size:12px}.error,.notice{padding:13px;border-radius:8px;font-size:13px;line-height:1.7}.error{background:#fae9e5;color:#9a4232}.notice{background:#e5eddb;color:#45593c;margin-bottom:16px}.error button{float:right}footer{font-size:10px;text-align:center;letter-spacing:2px;color:#9a9f90;margin-top:42px;padding-bottom:20px}.login{max-width:450px;margin:auto;padding:46px 26px}.login .brand span{font-size:8px}.login-intro{padding:62px 0 32px}.login h1{font-size:40px;line-height:1.5;margin:10px 0}.login-intro p{font-size:13px;color:#8c9181}.login form{padding:27px;background:#fffefa;border:1px solid #e1e5d8;border-radius:15px}.login form h2{margin-bottom:26px}.login .primary{width:100%}.login .hint{text-align:center}.overlay{position:fixed;inset:0;background:#1a231969;display:flex;align-items:center;justify-content:center;padding:18px;z-index:5}.dialog{background:#f9faf5;border-radius:17px;padding:24px;width:100%;max-width:460px;max-height:90dvh;overflow:auto}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.dialog-head h2{margin:0}.dialog .primary{width:100%}.loading{padding:80px;text-align:center}@media(max-width:760px){header{height:68px}.app{padding:25px 18px}.brand{font-size:23px}.brand span{font-size:9px}.welcome h1{font-size:25px}.customer{padding:15px;gap:9px}.customer button{font-size:12px;padding:10px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shoe>img{height:200px}.shoe-body{padding:13px}.sizes{gap:5px}.sizes button{padding:7px 9px}.shoe h2{font-size:16px}.tools button{font-size:12px;padding:10px}}@media(max-width:480px){.grid{grid-template-columns:1fr}.shoe>img{height:280px}.shoe-body{padding:19px}.sizes button{min-width:51px}.sell{padding:14px}.overlay{align-items:end;padding:0}.dialog{border-radius:20px 20px 0 0;max-height:93dvh;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.welcome{gap:8px}.sync{font-size:10px}.brand{gap:10px}}.upload-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:23px;background:#fffefa;border:1px solid #dce3d0;border-radius:12px;margin-bottom:16px}.upload-banner strong{font-size:17px;font-weight:550}.upload-banner p{margin:8px 0 0;font-size:12px;color:#838a76}.upload-banner button{white-space:nowrap;min-height:48px}.customer-actions{display:flex;gap:8px;flex-wrap:wrap}.entry-help{padding:25px;background:#fffefa;border-radius:14px;border:1px solid #e1e5d8}.entry-help p,.entry-content p{font-size:13px;line-height:1.9}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.size-inputs{border:0;margin:0 0 24px;padding:0}.size-inputs legend{font-size:13px;color:#666b60;margin-bottom:12px}.size-inputs>div{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.size-inputs label{margin:0;text-align:center}.size-inputs input{text-align:center;margin-top:5px;padding:10px 5px}.photo-upload{padding:15px;border:1px dashed #c4cbb6;border-radius:9px;background:#f0f3e9}.photo-upload input{font-size:12px;padding:9px 0;background:transparent;border:0}.photo-upload small{font-size:10px}.entry-content>.primary{width:100%}@media(max-width:480px){.welcome h1{font-size:23px}.upload-banner{padding:17px 14px;gap:10px}.upload-banner strong{font-size:14px}.upload-banner button{font-size:13px;padding:11px}.customer{display:block}.customer-actions{margin-top:12px}.customer-actions button{flex:1;min-height:40px}.dialog .form-pair input{min-width:0}.entry-content textarea{font-size:13px}}.color-section{background:#f0f3e9;border:1px solid #dce3d0;border-radius:11px;padding:15px;margin-bottom:13px}.color-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.color-heading>span{font-size:13px;font-weight:600;color:#526348}.color-heading .quiet{padding:5px;font-size:11px}.color-section .size-inputs{margin-bottom:0}.add-color{width:100%;background:transparent;border:1px dashed #9ba88b;color:#526348;margin-bottom:20px;min-height:44px}.return-button{display:block;width:100%;margin-top:9px;min-height:44px;font-size:13px;color:#795d49;border-color:#d9cbbc;background:#fffaf3}.return-summary{display:flex;gap:14px;align-items:center;padding:13px;background:#f0f3e9;border-radius:10px;margin-bottom:22px}.return-summary img{width:72px;height:72px;object-fit:cover;border-radius:7px}.return-summary div{min-width:0;overflow-wrap:anywhere}.return-summary strong,.return-summary span{display:block;margin-top:7px;font-size:14px}.return-summary small{font-size:12px}.return-balance{font-size:13px;color:#6f755f;margin:-3px 0 18px;line-height:1.8}.return-balance strong{color:#3f503a}.delete-inventory{width:100%;margin-top:7px;border:0;background:transparent;color:#985748;font-size:12px;min-height:44px}.danger{background:#934e3d;border-color:#934e3d}.deletion-sizes{display:flex;flex-wrap:wrap;gap:8px}.deletion-sizes span{border:1px solid #ded9cf;border-radius:7px;padding:9px;font-size:12px}.delete-summary{font-size:14px;color:#8b4b3c;line-height:1.8}.history-filters{background:#fffefa;padding:18px;border:1px solid #e1e5d8;border-radius:12px}.history-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 13px}.history-filter-grid label{min-width:0}.history-filter-grid input,.history-filter-grid select{min-width:0;max-width:100%;padding:11px 9px}.history-filter-actions{display:flex;gap:10px}.history-filter-actions button{min-height:44px;min-width:85px}.history-filters .hint{margin-bottom:0;line-height:1.8}.history-count{font-size:13px;color:#727a65;margin:20px 0 8px;min-height:20px}.operation-record{padding:18px 0;border-bottom:1px solid #dfe4d5}.operation-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.operation-top strong{font-size:14px;font-weight:600;color:#45553c}.operation-top time{font-size:11px;color:#7e8574;white-space:nowrap}.operation-product{font-size:14px;margin-top:11px;overflow-wrap:anywhere}.operation-record p{font-size:12px;color:#818577;margin:9px 0}.operation-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center}.operation-bottom>span{font-size:12px;color:#6f7961}.operation-bottom button{font-size:12px;min-height:44px;white-space:nowrap}.operation-state{background:#edf0e6;padding:7px 10px;border-radius:6px}.pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:24px}.pagination button{min-height:44px;font-size:13px}.pagination span{font-size:12px;color:#727a65}@media(max-width:480px){.operation-top{align-items:flex-start;flex-direction:column;gap:7px}.history-filters{padding:15px}.history-filter-grid{gap:0 10px}.operation-product{line-height:1.8}}.shoe-image{position:relative}.shoe-image>img{width:100%;height:230px;object-fit:cover;background:#edeee7;display:block}.shoe-image>button{position:absolute;right:12px;top:12px;background:#fffefaf2;min-height:44px;font-size:12px;box-shadow:0 2px 8px #20251a14}.replacement-preview{margin-bottom:14px}.replacement-preview small{display:block;margin-bottom:8px}.replacement-preview img{width:100%;height:190px;object-fit:contain;background:#edf0e7;border-radius:9px}.history-management{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-bottom:14px}.history-management button{min-height:44px;font-size:12px}.clear-history-button{border-color:#d9bdb4;color:#914e3d;background:#fffaf5}.clear-preview{padding:15px;background:#eff2e9;border-radius:9px}.clear-preview strong{font-size:14px}.clear-preview p{font-size:13px;line-height:1.8;margin:8px 0 0}.clear-warning{font-size:13px;color:#8f4a39;line-height:1.9}.dialog .hint{line-height:1.8}@media(max-width:760px){.shoe-image>img{height:200px}}@media(max-width:480px){.shoe-image>img{height:280px}.history-management button{flex:1}.replacement-preview img{height:160px}}.shoe-price-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0 16px}.shoe-price-line small{display:block;font-size:11px}.shoe-price-line strong{display:block;margin-top:5px;font-size:19px;color:#405339;font-weight:600}.shoe-price-line button{font-size:12px;min-height:44px;white-space:nowrap}.price-rule{font-size:13px;line-height:1.9;color:#526348;background:#edf2e5;padding:12px;border-radius:8px}.sales-metrics{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:12px;margin:20px 0 12px}.sales-metrics>div{background:#e8eedf;border:1px solid #dce4d0;padding:19px 16px;border-radius:12px;min-width:0}.sales-metrics small{font-size:12px;color:#6d7a5e}.sales-metrics strong{font-size:29px;font-weight:650;display:block;color:#3e5336;margin-top:10px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.sales-metrics strong span{font-size:12px;font-weight:400;margin-left:6px}.sales-metrics .sales-amount{font-size:25px}.sales-basis{line-height:1.9;margin-bottom:20px}.price-warning{font-size:12px;line-height:1.9;padding:13px;background:#fff1da;color:#87632f;border-radius:9px}.summary-views{display:flex;border-bottom:1px solid #dfe4d5;gap:20px}.summary-views button{border:0;border-radius:0;background:transparent;font-size:13px;padding:12px 0;min-height:44px;color:#858b7b}.summary-views .active{color:#415637;border-bottom:2px solid #415637;font-weight:600}.sales-detail{display:grid;grid-template-columns:72px minmax(0,1fr);gap:13px;padding:17px 0;border-bottom:1px solid #dfe4d5}.sales-detail>img{width:72px;height:83px;object-fit:cover;border-radius:8px;background:#eaece3}.sales-detail strong{display:block;font-size:14px;font-weight:550;margin-top:6px;overflow-wrap:anywhere}.sales-detail p{font-size:12px;color:#7a826d;margin:8px 0;line-height:1.8}.sales-detail-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#415637;font-size:15px}.sales-detail-bottom button{font-size:12px;min-height:44px}.sales-period{display:grid;grid-template-columns:1fr auto;gap:9px;padding:19px 0;border-bottom:1px solid #dfe4d5}.sales-period strong{font-size:14px;font-weight:550}.sales-period span{font-size:12px;color:#7a826d;margin-left:12px}.sales-period b{font-size:17px;color:#415637}.sales-period small{grid-column:1/-1;font-size:12px;color:#a67b38}@media(max-width:480px){.tabs{gap:24px}.sales-metrics{gap:10px}.sales-metrics>div{padding:16px 12px}.sales-metrics .sales-amount{font-size:23px}.summary-views{justify-content:space-between;gap:10px}}.sales-detail-bottom{flex-wrap:wrap}.sales-row-actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}.sales-row-actions .delete-sales-button{color:#934e3d;border-color:#ddc1b8;background:#fff9f5}.sales-archived{display:inline-block;padding:5px 7px;background:#f5ecdf;color:#906837;font-size:11px;margin-top:7px;border-radius:5px}.sales-removed-note{background:#eef1e7;border:1px solid #dce2d0;border-radius:10px;padding:13px;display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:15px}.sales-removed-note p{font-size:12px;line-height:1.8;margin:0;min-width:0}.sales-removed-note button{font-size:12px;white-space:nowrap;min-height:44px}@media(max-width:480px){.sales-removed-note{align-items:flex-start;flex-direction:column}.sales-removed-note button{width:100%}}.shoe-code-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.shoe-code-line small{overflow-wrap:anywhere;min-width:0}.shoe-code-line button{font-size:12px;min-height:44px;padding:9px 11px;white-space:nowrap}.add-style-inventory{width:100%;min-height:44px;margin:0 0 9px;color:#526348;background:#f1f4e9;border-color:#cdd7c0;font-size:13px}.size-existing{display:block;font-size:10px;line-height:1.6;margin-top:5px;color:#7d856e}.color-section .size-inputs input:disabled{background:#e6e8df}.style-dialog .dialog-head{position:sticky;top:-24px;z-index:1;background:#f9faf5;margin:-24px -24px 20px;padding:18px 24px 12px;border-bottom:1px solid #e4e8dc}.inventory-overview{margin-bottom:22px}.inventory-overview-title{font-size:13px;color:#526348;margin:0 0 10px}.inventory-metrics{margin:0 0 10px}.inventory-basis{margin:0;line-height:1.9}.inventory-overview .price-warning{margin:10px 0 0}.inventory-overview>.hint{line-height:1.9}
