/* Shared responsive rules for Android browsers, WebViews, tablets and desktop previews. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
#app,.scroll,.sheet-content{min-height:0}.scroll{overflow-y:auto;-webkit-overflow-scrolling:touch;scroll-padding:16px}
.phone #app{height:calc(100% - 34px)}
.app-header{height:auto;min-height:62px}.header-title{min-width:0}.app-header h1{overflow-wrap:anywhere;line-height:1.35}.header-action{flex-shrink:0}
input,select,textarea{min-width:0;max-width:100%;font-size:1rem!important}input[type=number]{appearance:textfield;-moz-appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
input[type=date],input[type=month]{width:100%;min-height:46px;-webkit-appearance:none;appearance:none}
button,a{touch-action:manipulation}.phone button,.phone .text-link,.phone a.menu-item{min-height:44px}.phone .stepper button{min-width:44px;min-height:44px}.phone .stepper input{width:52px;min-width:0}.phone .stepper{width:auto;flex-shrink:0;min-height:46px}.item-inputs{flex-wrap:wrap;gap:10px}.price-editor{min-width:0;flex:1}.price-editor input{width:70px;max-width:100%}
.phone .two-fields{align-items:start}.field{min-width:0}.two-fields>*{min-width:0}.field>span{overflow-wrap:anywhere}
.fixed-submit{flex-shrink:0;gap:12px;padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}.fixed-submit .primary{min-width:0;white-space:normal;line-height:1.4}.amount-preview{min-width:0}.amount-preview strong{font-size:clamp(1.15rem,5vw,1.625rem);overflow-wrap:anywhere}
.bottom-nav{height:auto;min-height:68px;padding-bottom:max(8px,env(safe-area-inset-bottom,0px))}.bottom-nav button{line-height:1.5;min-width:0;padding:0 2px}
.sheet-backdrop{top:34px}.sheet{display:flex;flex-direction:column;max-height:100%;padding-bottom:max(16px,env(safe-area-inset-bottom,0px))}.sheet-head,.sheet-footer{flex-shrink:0}.sheet-content{overflow-y:auto;overscroll-behavior:contain}.sheet-head button{width:44px;min-height:44px;flex-shrink:0}
#app[data-screen=home]>.app-header{border-bottom:1px solid #ffffff38}
.v6-quick-actions{display:grid;grid-template-columns:1.2fr 1fr;gap:12px;margin:16px 0}.v6-quick-actions>div{display:grid;gap:9px}.v6-quick-actions .secondary{font-size:.8125rem;padding:8px 10px;gap:6px}.v6-one-order{display:flex;align-items:center;text-align:left;gap:10px;background:#edf3ff;border:1px solid #d8e6ff;border-radius:14px;padding:16px 12px}.v6-one-order b{display:block;font-size:1rem;white-space:nowrap}.v6-one-order small{display:block;font-size:.6875rem;line-height:1.6;color:#5b728e;margin-top:5px}.v6-one-order>.icon{width:15px;margin-left:auto}.v6-one-order .v5-action-icon{width:38px;height:42px;flex-shrink:0}
.v6-store-card{display:block;padding:0!important}.v6-store-open{width:100%;text-align:left;padding:18px}.v6-store-sales{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:13px 0}.v6-store-sales small{display:block;font-size:.75rem;color:#5f728e}.v6-store-sales strong{display:block;font-size:1.3rem;margin-top:5px;overflow-wrap:anywhere}.v6-store-sales>span{font-size:.75rem;color:#647892;text-align:right}.v6-store-numbers{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:.75rem;color:#58708b}.v6-store-numbers b{color:#29476b}.v6-store-actions{display:grid;grid-template-columns:1fr 1.25fr 1.25fr;border-top:1px solid #e8edf4;padding:5px 8px}.v6-store-actions button{font-size:.75rem;color:#2466eb;display:flex;align-items:center;justify-content:center;gap:4px;padding:4px}.v6-store-actions .icon{width:17px;height:17px}.v6-store-actions button+button{border-left:1px solid #e8edf4}
.phone .store-intro{position:relative;padding-right:18px}.phone .store-intro>.between{padding-right:0}.phone .store-contact-actions{position:static;display:flex;justify-content:flex-end;gap:8px;margin-top:-48px;margin-bottom:7px;padding-left:calc(100% - 100px)}.phone .store-contact-actions button{flex:0 0 44px;width:44px;min-height:44px;font-size:0}.store-contact-actions .icon{width:20px;height:20px}.phone .store-intro .contact{padding-right:100px;flex-wrap:wrap}.phone .store-intro .address-line{padding-right:100px}.phone .store-actions button{min-width:0}.phone .store-actions button>span:last-child{font-size:.75rem;line-height:1.5;white-space:normal}.phone .tabs{overflow-x:auto;justify-content:flex-start;gap:0;scrollbar-width:none}.phone .tabs>button{flex:1 0 auto;padding:12px 10px;font-size:.8125rem}.phone .segmented{display:flex}.phone .segmented button{min-width:0;white-space:normal;line-height:1.4;font-size:.8125rem}
.v6-stock-tools{display:grid!important;grid-template-columns:1fr 1fr;gap:0!important}.v6-stock-tools button{justify-content:center;font-size:.875rem}.v6-stock-tools button+button{border-left:1px solid #e5ebf4}.v6-cost-entry{display:flex;justify-content:flex-end;padding:0 20px 12px}.v6-cost-entry .text-link{font-size:.875rem}
.phone .v5-stock-meta.v6-stock-tools button{width:100%;margin:0;font-size:.875rem;justify-content:center}.phone .remove{min-width:44px;min-height:44px}
.v5-stock-number{flex-wrap:wrap}.v5-stock-number strong{overflow-wrap:anywhere;min-width:0}.v5-stock-utilities{grid-template-columns:repeat(2,minmax(0,1fr))}.v5-stock-utilities>button{min-width:0;flex-wrap:wrap}.v5-stock-utilities>button>span{min-width:0}.cost-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cost-grid button{min-width:0}.cost-grid b,.profit-card h2{overflow-wrap:anywhere}.profit-formula>div{gap:12px;flex-wrap:wrap}.inline-field{min-width:0;flex-wrap:wrap}.inline-field input{max-width:100%}
.phone #app[data-screen=profit] .page>.between{flex-wrap:wrap}.phone #app[data-screen=profit] .inline-field{display:grid;flex:1 1 220px;gap:8px;font-size:.8125rem}.phone .inline-field input[type=month]{max-width:100%;width:100%;min-height:46px}
.v6-remaining{border-top:1px solid #e8edf4;margin-top:16px;padding-top:15px}.v6-remaining .field{margin-bottom:10px}.v6-remaining p{font-size:.8125rem;line-height:1.7;color:#536c8c}.v6-remaining p.red{color:#bc3e43}.v6-return-source{margin-top:15px}.v6-record-audit{margin:16px}.v6-record-audit h2{font-size:1rem;margin-bottom:10px}.v6-record-audit p{font-size:.875rem;line-height:1.8;overflow-wrap:anywhere}
.phone .store-finances strong,.phone .v5-stock-line b,.phone .v5-business-totals b{overflow-wrap:anywhere}.phone .v5-stock-line button{min-width:0}.phone .v5-stock-line span{white-space:normal;line-height:1.5}.phone .v5-store-head h3{overflow-wrap:anywhere}.wechat-float{bottom:calc(80px + env(safe-area-inset-bottom,0px))}
@media(max-width:1023px),(pointer:coarse){
 body:not(.admin){height:100vh;height:100dvh;overflow:hidden;background:#f3f5f8}
 body:not(.admin) .studio,body:not(.admin) .preview-caption,body:not(.admin) .preview-footer{display:none}
 body:not(.admin) .preview-zone{margin:0;padding:0;min-height:0;height:var(--app-height,100dvh);width:100%;display:block}
 body:not(.admin) .phone{width:100%;max-width:840px;height:100%;min-height:0;margin:auto;border:0;border-radius:0;box-shadow:none;padding-top:env(safe-area-inset-top,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
 body:not(.admin) .phone>.statusbar,body:not(.admin) .home-indicator{display:none!important}
 body:not(.admin) .phone #app{height:100%}
 body:not(.admin) .sheet-backdrop{top:0}
 .v6-keyboard .bottom-nav{display:none}
}
body.embed .phone>.statusbar,body.embed .home-indicator{display:none!important}body.embed .phone #app{height:100%}body.embed .sheet-backdrop{top:0}
@media(min-width:600px) and (max-width:1023px){.v6-store-card{max-width:none}.page{padding-left:28px;padding-right:28px}.v5-business,.v5-workbench{margin-left:-28px;margin-right:-28px;padding-left:28px;padding-right:28px}.v5-profile{margin-left:-28px;margin-right:-28px}.v5-balance strong{font-size:2.8rem}}
@media(max-width:374px){.v6-quick-actions{grid-template-columns:1fr}.v6-quick-actions>div{grid-template-columns:1fr 1fr}.v6-one-order small{font-size:.75rem}.v6-store-open{padding:15px}.v6-store-sales strong{font-size:1.15rem}.phone .two-fields{grid-template-columns:1fr}.phone .v5-stock-utilities{grid-template-columns:1fr}.phone .v5-stock-number{flex-wrap:wrap}.phone .v5-salute{gap:8px;flex-wrap:wrap}.phone .v5-business-title{flex-wrap:wrap}.phone .v5-business-title>span{display:none}.phone .v5-lifetime{grid-template-columns:1fr;gap:12px}.phone .v5-lifetime>div{text-align:left;display:flex;justify-content:space-between;align-items:center}.phone .v5-profile-person{flex-wrap:wrap}.phone .store-finances p{font-size:.6875rem}.phone .store-finances strong{font-size:1.05rem}.phone .store-actions{padding-left:8px;padding-right:8px}}
@media(orientation:landscape) and (max-height:500px){.app-header{min-height:50px}.page{padding-top:12px}.bottom-nav{min-height:54px;padding-top:2px;padding-bottom:max(2px,env(safe-area-inset-bottom,0px))}.bottom-nav .v5-nav-icon{height:25px}.fixed-submit{padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom,0px))}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@supports not (background:color-mix(in srgb,blue 10%,white)){.level-title{background:#edf4ff}.level-badge{filter:none}}
