/* App shell and boss screens, using the current OA's 52px header / compact rows. */
body{--app-width:1040px;background:#edf1f5;color:#23364c}
body .wrap,body .wrap.mobile{width:100%;max-width:var(--app-width);margin:0 auto;padding:12px 12px calc(86px + env(safe-area-inset-bottom));min-height:calc(100svh - 52px);background:#f4f6f8}
body .top{width:100%;max-width:var(--app-width);margin:0 auto;left:auto;right:auto;border-bottom:1px solid #e4e9f1}
body .top .topin,body[data-view] .top .topin{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;height:52px;min-height:52px;padding:0 14px;gap:12px;max-width:none}
body .top .pageTitle{font-size:18px;font-weight:700;margin:0;white-space:nowrap;flex:none;order:0}
body .topTools,body .topLeft{display:none!important}
body .topContext{order:1;flex-basis:auto;margin:0;max-width:52%;font-size:12px;min-width:0}
.topContext button{display:flex;align-items:center;gap:5px;min-height:44px;max-width:100%;padding:0;border:0;background:none;font-size:12px;font-weight:400;color:#667b8f}
.topContext button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topContext button svg{flex:none;width:13px;height:13px}
body .baseNav{display:flex;position:fixed;top:auto;left:50%;right:auto;bottom:0;transform:translateX(-50%);width:min(var(--app-width),100%);height:calc(64px + env(safe-area-inset-bottom));z-index:35;flex-direction:row;align-items:stretch;justify-content:space-around;gap:0;padding:0 0 calc(6px + env(safe-area-inset-bottom));border-top:1px solid #e4e9f1;border-right:0;background:#fff}
body .baseNav button{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:4px 0 0;min-width:0;min-height:44px;background:transparent;border-radius:0;color:#8290a3;font-size:10px;line-height:14px;font-weight:500}
body .baseNav button.active,body .baseNav button[aria-current=page]{background:transparent;color:#0e63ad;font-weight:700}
body .baseNav svg{width:21px;height:21px}body .baseBrand{display:none}
body .sticky{left:50%;right:auto;width:min(var(--app-width),100%);transform:translateX(-50%);bottom:calc(64px + env(safe-area-inset-bottom));padding:8px 12px}
body .stickyin{padding:0;max-width:none}body .sticky .btn{min-height:44px;padding:10px;font-size:15px}
body[data-view=front] .wrap{padding-bottom:calc(145px + env(safe-area-inset-bottom))}
body .miniWorkspaceContext{width:100%;max-width:var(--app-width);margin:auto;padding:6px 14px;background:#f4f6f8}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.ba-section,.ba-row-list{background:#fff;border:1px solid #e0e7ef;border-radius:10px;overflow:hidden}
.ba-section{padding:10px 12px;margin-bottom:12px}.ba-section .ba-row-list{border:0;border-radius:0}
.ba-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;margin-bottom:8px}
.ba-section-heading h2,.ba-section h3{font-size:14px;font-weight:650;line-height:1.5;margin:0}
.ba-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 12px;border:0;border-radius:8px;background:transparent;color:#23364c;font-size:14px;font-weight:500}
.ba-button svg,.ba-order-row>svg{width:18px;height:18px;flex:none}.ba-icon{padding:0;width:44px;color:#677d90}.ba-text{padding:0;color:#0e63ad;font-size:12px}.ba-text svg{width:14px;height:14px}
.ba-primary{background:#0e63ad;color:#fff;font-weight:650}.ba-outline{border:1px solid #cbdcec;color:#0e63ad}.ba-button:disabled{opacity:.5}
.ba-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-bottom:14px;border:1px solid #e0e7ef;background:#fff;border-radius:10px;overflow:hidden}
.ba-metrics button{display:grid;gap:4px;min-height:86px;padding:13px 16px;text-align:left;background:transparent;color:#23364c;border-right:1px solid #e7edf3;border-bottom:1px solid #e7edf3}
.ba-metrics button:nth-child(2n){border-right:0}.ba-metrics button:nth-last-child(-n+2){border-bottom:0}.ba-metrics span{font-size:12px;color:#6a7b8d}.ba-metrics strong{font-size:24px;line-height:1.2;font-weight:650;font-variant-numeric:tabular-nums}
.ba-metrics button:first-child{background:#eff6fc}.ba-metrics button:first-child strong{color:#0e63ad}
.ba-product-row{display:flex;align-items:center;gap:12px;width:100%;min-height:98px;padding:12px;background:#fff;color:#23364c;text-align:left;border:0;border-bottom:1px solid #e7edf3}
.ba-section .ba-product-row{padding:10px 0}.ba-product-row:last-child{border:0}
.ba-row-picture{display:block;width:62px;height:76px;flex:none;border-radius:6px;overflow:hidden;background:#f1f3f5}.ba-row-picture img{display:block;width:100%;height:100%;object-fit:cover}
.ba-row-copy{display:block;min-width:0;flex:1}.ba-row-copy>strong{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;font-size:14px;line-height:1.45;overflow-wrap:anywhere}.ba-row-copy>strong>span{font-size:12px;color:#6a7b8d;font-weight:400}
.ba-row-copy>small{display:block;font-size:12px;color:#6a7b8d;margin-top:5px;overflow-wrap:anywhere}.ba-row-price{display:block;font-size:14px;font-weight:600;margin-top:6px}.ba-row-end{display:grid;justify-items:end;gap:17px;color:#8a98a8}.ba-row-end small{font-size:11px}.ba-row-end svg{width:15px;height:15px}
.ba-order-row{display:flex;align-items:center;gap:12px;min-height:74px;border:0;border-top:1px solid #e7edf3;width:100%;text-align:left;background:none;color:#23364c;padding:10px 0}
.ba-order-row>span:first-child{flex:1;min-width:0}.ba-order-row>span:nth-child(2){text-align:right;flex:none}.ba-order-row strong{display:block;font-size:14px;font-weight:600}.ba-order-row b{font-size:12px;color:#916120;font-weight:500}.ba-order-row small{display:block;font-size:11px;margin-top:5px;color:#6a7b8d;overflow-wrap:anywhere}.ba-order-row svg{color:#8a98a8}
.ba-quick-entry{padding:0 12px}.ba-full-row{width:100%;justify-content:space-between;text-align:left;border-radius:0}.ba-quick-entry .ba-full-row{justify-content:flex-start}.ba-quick-entry .ba-full-row>span{flex:1}
.ba-selection-tools{margin:-12px -12px 0;padding:12px 12px 0;background:#f4f6f8;position:sticky;top:52px;z-index:15}
.ba-search{display:flex;align-items:center;gap:6px;border:1px solid #dce4ed;border-radius:9px;background:#fff;padding-left:12px;margin:0}
.ba-search>svg{width:17px;height:17px;flex:none;color:#8290a3}.ba-search input{min-height:44px;width:100%;min-width:0;border:0;background:none;border-radius:9px;padding:10px 5px;font-size:16px;box-shadow:none}
.ba-search:focus-within{border-color:#8fb1cc}.ba-status-tabs{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #dce4ed;padding:0 4px;margin-top:5px}
.ba-status-tabs button{position:relative;min-height:46px;background:none;border:0;color:#6a7b8d;padding:0 5px;font-size:14px}
.ba-status-tabs [aria-selected=true]{color:#0e63ad;font-weight:650}.ba-status-tabs [aria-selected=true]::after{content:"";position:absolute;left:5px;right:5px;height:2px;bottom:-1px;background:#0e63ad}
.ba-list-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 1px 10px;font-size:11px;color:#8290a3}
.ba-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}
.ba-product-card{display:block;min-width:0;padding:0;background:#fff;border:1px solid #e0e7ef;border-radius:10px;overflow:hidden;text-align:left;color:#23364c;box-shadow:none}
.ba-product-cover{display:block;position:relative;aspect-ratio:4/5;background:#ecedef;overflow:hidden}.ba-product-cover>img{display:block;width:100%;height:100%;object-fit:cover}.ba-product-cover>.ba-status{position:absolute;top:8px;left:8px;box-shadow:0 1px 2px #00000006}
.ba-product-copy{display:grid;gap:5px;padding:10px;min-width:0}.ba-product-copy>strong{font-size:14px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ba-product-copy>span{font-size:11px;color:#6a7b8d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ba-product-copy>b{font-size:16px;font-weight:650;margin-top:3px}.ba-product-copy>small{font-size:10px;color:#8290a3}
.ba-status{display:inline-flex;align-items:center;font-size:11px;font-weight:500;padding:3px 7px;border-radius:5px;line-height:1.5;background:#edf3f8;color:#0e63ad;white-space:nowrap}.ba-status.is-selected{background:#eaf7f0;color:#216944}.ba-status.is-shortlisted{background:#fff5e8;color:#9c570a}.ba-status.is-passed{background:#f1f3f5;color:#738397}
.ba-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:46px 16px;min-height:180px;gap:12px;color:#6a7b8d}.ba-empty>svg{width:40px;height:40px;color:#b5c4d1}.ba-empty>strong{font-size:14px;font-weight:500}.ba-empty p{font-size:12px;line-height:1.7;margin:0;max-width:280px}.ba-loading{padding:50px 20px;text-align:center;color:#8290a3;font-size:13px}.ba-quiet-empty{font-size:12px;color:#8290a3;line-height:1.7;margin:4px 0 8px}
.ba-no-photo{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;width:100%;color:#a4b1bf;gap:7px}.ba-no-photo svg{width:42px;height:42px}.ba-no-photo small{font-size:11px}.ba-row-picture .ba-no-photo small{display:none}.ba-row-picture .ba-no-photo svg{width:28px;height:28px}
.ba-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 0}.ba-pager span{font-size:12px;color:#8290a3}
.ba-detail-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:40px;margin-top:-8px;margin-bottom:4px}.ba-detail-toolbar .ba-text{font-size:14px}.ba-detail-toolbar .ba-text svg{width:18px;height:18px}
.ba-gallery{position:relative;min-width:0;margin-bottom:12px;border-radius:10px;overflow:hidden;background:#e9ecef;border:1px solid #e0e7ef}.ba-gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.ba-gallery-track::-webkit-scrollbar{display:none}.ba-gallery-track>button{flex:0 0 100%;width:100%;scroll-snap-align:start;padding:0;border:0;background:none;aspect-ratio:4/5;max-height:430px}.ba-gallery-track img{display:block;width:100%;height:100%;object-fit:contain}.ba-photo-count{position:absolute;bottom:12px;right:12px;background:#23364c99;color:white;padding:4px 9px;border-radius:16px;font-size:11px;pointer-events:none}
.ba-product-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:3px 0 10px}.ba-product-heading h2{font-size:18px;margin:0;font-weight:650;overflow-wrap:anywhere}.ba-product-heading p{font-size:12px;color:#6a7b8d;margin:6px 0 0}.ba-product-heading>strong{color:#0e63ad;font-size:20px;font-weight:650;text-align:right;white-space:nowrap}.ba-product-heading>strong small{display:block;color:#8290a3;font-size:11px;font-weight:400;margin-top:4px}
.ba-facts{margin:0;padding:0;border-top:1px solid #edf1f5}.ba-facts>div{display:flex;gap:18px;justify-content:space-between;padding:10px 0;font-size:13px;border-bottom:1px solid #edf1f5}.ba-facts dt{color:#6a7b8d;flex:none}.ba-facts dd{margin:0;text-align:right;overflow-wrap:anywhere}.ba-detail-note{padding:12px 0 3px}.ba-detail-note h3{font-size:12px;color:#6a7b8d;font-weight:400}.ba-detail-note p{font-size:13px;line-height:1.7;margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere}.ba-provenance{font-size:11px;color:#8290a3;margin:12px 0 0}
.ba-decision-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.ba-decision-options label{display:block;margin:0;position:relative}.ba-decision-options input{position:absolute;opacity:0;width:1px;height:1px}.ba-decision-options span{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #dce4ed;border-radius:8px;font-size:14px;font-weight:500;color:#6a7b8d}.ba-decision-options input:checked+span{border-color:#8fb1cc;color:#0e63ad;background:#eff6fc}.ba-decision-options input:focus-visible+span{outline:2px solid #0e63ad;outline-offset:2px}.ba-decision textarea{min-height:68px;background:#f6f8fa;border:0;resize:vertical}
.ba-decision-footer{margin-top:12px}.ba-decision-footer>.ba-button{width:100%}.ba-history summary{min-height:40px;font-size:13px;cursor:pointer}.ba-history-row{padding:10px 0;border-top:1px solid #edf1f5}.ba-history-row strong{font-size:12px;font-weight:600}.ba-history-row span{float:right;font-size:11px;color:#8290a3}.ba-history-row p{font-size:12px;color:#6a7b8d;margin:5px 0 0;line-height:1.6;overflow-wrap:anywhere}.ba-more-actions{background:#fff;border:1px solid #e0e7ef;border-radius:10px;padding:0 12px;margin-bottom:12px}.ba-more-actions:empty{display:none}.ba-more-actions>.ba-button{font-size:13px;border-bottom:1px solid #edf1f5}.ba-more-actions>.ba-button:last-child{border:0}
.ba-detail-open .baseNav{display:none}.ba-detail-open #boss,.ba-detail-open #catalog{padding-bottom:26px}
.tradeTabs{position:sticky;top:52px;background:#f4f6f8;z-index:10;margin-top:-12px;padding-top:8px;gap:14px}.tradeTabs button{min-height:44px;border-radius:0;padding:6px 4px;font-weight:500}.tradeTabs button.active{font-weight:650}.tradeHead h2{font-size:14px}.tradeList .tradeActions>.btn.primary{background:transparent;border:0;padding-left:0;color:#0e63ad;font-weight:500}.tradeList .card{border-radius:10px}.tradeCardTop h3{font-size:14px;font-weight:650}.tradeCardTop strong{font-size:16px}.orderReference{color:#8290a3}.tradeMetrics strong{font-size:17px}.tradeMetrics>div{padding:10px}.tradeRecord strong{font-size:13px}.flowTrail{gap:4px}.flowTrail span{padding:5px 7px}.accountHero h2{font-size:18px}.accountAvatar{width:44px;height:44px;border-radius:12px;font-size:20px}.accountGrid{display:grid;grid-template-columns:1fr;max-width:680px;margin:auto}.accountGrid .card{box-shadow:none}.accountRow small{font-size:11px}.accountRow strong{font-weight:500}.accountRow .btn{min-height:44px}.moduleToggle{min-height:44px;background:transparent!important;width:48px;border-radius:0;position:relative}.moduleToggle::before{position:absolute;width:40px;height:24px;top:10px;left:4px;background:#cbd4dc;border-radius:15px;transform:none!important}.moduleToggle::after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:white;top:13px;left:7px}.moduleToggle[aria-checked=true]::before{background:#245b8a}.moduleToggle[aria-checked=true]::after{left:23px}
@media(min-width:760px){body .wrap{padding-left:20px;padding-right:20px}.ba-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.ba-metrics button{border-bottom:0!important;border-right:1px solid #e7edf3!important}.ba-metrics button:last-child{border-right:0!important}.ba-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.ba-selection-tools{margin-left:-20px;margin-right:-20px;padding-left:20px;padding-right:20px}.ba-status-tabs{justify-content:flex-start;gap:28px}.ba-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.ba-gallery{position:sticky;top:68px}.ba-gallery-track>button{max-height:640px}.tradeList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tradeList .card{margin-bottom:0}.tradeDetail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.tradeMetrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:389px){.ba-status-tabs{gap:4px}.ba-product-copy{padding:9px}.ba-product-grid{gap:8px}.ba-product-heading h2{font-size:16px}.ba-product-heading>strong{font-size:18px}.ba-metrics button{padding:12px}.ba-row-picture{width:56px;height:70px}.ba-product-row{gap:10px}}
body.isMiniProgram .ba-selection-tools,body.isMiniProgram .tradeTabs{top:0}
body #front{max-width:var(--app-width)}
.tradeTabs button{border:0;border-bottom:2px solid transparent;background:transparent}
.tradeTabs button.active{border-bottom-color:#0e63ad}
.accountRow .btn{border:0;background:transparent;color:#0e63ad}
body[data-view=edit] .baseNav{display:none}
body #edit{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
.editActionBar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(var(--app-width),100%);padding:10px 12px calc(10px + env(safe-area-inset-bottom));display:flex;gap:8px;z-index:40;background:#fff;border-top:1px solid #e4e9f1}
.editActionBar>.btn{min-height:44px}.editActionBar>.primary{flex:1}
.editSources summary{min-height:44px;cursor:pointer;font-weight:600}.editSources summary .tag{float:right}
.ba-catalog-tools{display:flex;align-items:center;gap:4px}.ba-catalog-tools .ba-search{flex:1;min-width:0}
@media(max-width:600px){#admin .cluster .item.sel{grid-template-columns:20px minmax(0,1fr)}#admin .cluster .item>div:last-child{grid-column:1/-1;min-width:0}#admin .itemActions{display:flex;flex-wrap:wrap}#admin .itemActions .btn{min-height:44px}#admin .photos{grid-template-columns:repeat(6,minmax(0,1fr))!important}}

.ba-decision h3{margin-bottom:10px}.ba-decision-footer{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(var(--app-width),100%);background:#fff;border-top:1px solid #e4e9f1;padding:10px 12px calc(10px + env(safe-area-inset-bottom));margin:0;display:grid;grid-template-columns:80px 88px minmax(0,1fr);gap:8px;z-index:40}.ba-decision-footer>.ba-button{min-height:44px}.ba-detail-open #boss{padding-bottom:calc(106px + env(safe-area-inset-bottom))}.ba-gallery-track>button{max-height:360px}@media(min-width:760px){.ba-decision-footer{padding-inline:20px;grid-template-columns:120px 140px minmax(0,1fr)}.ba-gallery-track>button{max-height:620px}}
