/* BR interface: BL table shell, shared table, content, forms, responsive layout. */
.version-notice{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.version-notice small{color:#86909c}
.pt-wizard-modal .arco-modal-body{max-height:calc(92vh - 56px);overflow-y:auto}
.br-image-viewer{position:fixed;inset:0;z-index:4000;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.82);outline:none}
.br-image-viewer img{display:block;max-width:calc(100vw - 64px);max-height:calc(100vh - 64px);min-width:min(52vw,760px);object-fit:contain}
.br-image-viewer img.is-loading{visibility:hidden}
.br-image-viewer-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;overflow:hidden;transition:opacity .18s ease}
.br-image-viewer-placeholder.done{opacity:0}
.br-image-viewer-placeholder img{max-width:calc(100vw - 64px);max-height:calc(100vh - 64px);min-width:min(52vw,760px);object-fit:contain;filter:blur(16px) brightness(.72);transform:scale(1.03)}
.br-image-viewer-spinner{position:absolute;width:34px;height:34px;border:3px solid rgba(255,255,255,.32);border-top-color:#fff;border-radius:50%;animation:br-viewer-spin .8s linear infinite}
.br-image-viewer-close{position:absolute;right:16px;top:16px;width:36px;height:36px;border:0;border-radius:50%;background:rgba(0,0,0,.45);color:#fff;font-size:25px;cursor:pointer}
.br-image-viewer-error{color:#fff;font-size:14px;position:relative}
@keyframes br-viewer-spin{to{transform:rotate(360deg)}
}
.product-filter-bar{display:flex;flex-wrap:wrap;gap:12px;padding:12px 14px;margin-bottom:12px;border:1px solid var(--br-border);border-radius:6px;background:#fff;flex:none}
.product-filter-item{display:flex;align-items:center;gap:8px;font-size:13px;color:#4e5969}
.product-name-text{display:block;max-width:270px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.product-shop-names{display:flex;gap:4px 6px;flex-wrap:wrap;max-width:330px;padding:5px 0}
.product-shop-name{font-size:12px;line-height:22px;padding:0 7px;border-radius:3px;color:#526176;background:#eef2f8;white-space:nowrap}
.local-product-note{color:#637084;font-size:13px;margin:16px 0 12px}
.local-product-footer{display:flex;align-items:center;gap:12px;margin-top:18px;color:#637084;font-size:13px}
.local-product-modal{max-width:calc(100vw - 32px)}
.arco-modal-body{max-height:75vh;overflow:auto}
.login-card button{margin-top:24px}
.login-card h2{font-size:24px}
.login-card{padding:38px;border:1px solid #dfe6f0;border-radius:10px;background:white}
.login-brand p{font-size:19px;color:#78889e}
.login-brand h1{font-size:42px;margin:25px 0}
input[type=file]{margin:12px 0;max-width:100%}
input[type=date]{padding:8px;border:1px solid #d9dee7;border-radius:3px;font-family:inherit}
.form-grid label{color:#637084}
.form-grid{display:grid;grid-template-columns:135px 1fr;align-items:center;gap:18px;padding:15px 0}
.template-grid .panel{margin:0}
.actions{display:flex;gap:14px;align-items:center;margin-top:17px;flex-wrap:wrap}
.right{float:right;font-size:13px;font-weight:400}
.choice-row .chosen{background:#263243;color:white}
.login-card label{display:block;margin:18px 0 8px;font-weight:600}
figcaption{padding:10px 0;color:#7a8799}
.empty{padding:46px 20px;text-align:center;color:#8b96a6}
.error,.danger{color:#d94449}
.muted{color:#8894a5}
.tag.gray{background:#f0f2f5;color:#768397}
.tag.red{background:#ffeded;color:#cf4242}
.tag.amber{background:#fff3dd;color:#cc851f}
.tag.green{background:#e8faee;color:#00865a}
.thumb{width:62px;height:62px;object-fit:cover;border-radius:6px;border:1px solid #e8ecf2}
th,td{border-bottom:1px solid #e8ecf2;vertical-align:middle}
th{text-align:left;background:#f6f8fb;color:#596578;font-weight:600;white-space:nowrap}
table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
.account-name{cursor:pointer}
nav button.active{color:#fff;border-color:#2860ff}
nav button{border:0;background:transparent;color:#97a4b7;border-bottom:3px solid transparent}
nav{height:100%;display:flex;gap:2px}
small{display:block;color:#8b96a6;font-size:12px;line-height:1.6}
h3{font-size:15px}
h2{font-size:18px;margin:0 0 16px}
h1{font-size:26px;margin:0 0 7px}
p{line-height:1.65}
button{cursor:pointer}
a{color:#165dff;cursor:pointer;text-decoration:none}
*{box-sizing:border-box}
[v-cloak]{display:none}
/* BL table-page shell: fixed viewport, single-line context, data first. */
:root{--br-top:56px;--br-side:180px;--br-collapsed:64px;--br-border:#e5e6eb;--br-bg:#f7f8fa;--br-ink:#1d2129;--br-muted:#86909c;--br-blue:#165dff}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;overflow:hidden;background:var(--br-bg);color:var(--br-ink);font-size:14px}
#app{height:100dvh}
header{display:flex;align-items:center;color:#fff;height:var(--br-top);padding:0 16px;position:relative;gap:18px;background:#1e293b;z-index:100}
.brand{display:flex;align-items:center;color:#fff;width:auto;gap:10px;font-size:16px;white-space:nowrap}
.brand-mark{display:block;width:30px;height:30px;object-fit:contain;border-radius:0;flex:none;background:transparent}
.login-brand .brand-mark{width:84px;height:84px;border-radius:0}
header nav button{padding:0 16px;font-size:14px;border-bottom-width:3px}
.app-header>nav{min-width:0;overflow-x:auto;scrollbar-width:none}
.app-header>nav>button{flex:none;white-space:nowrap}
.avatar{display:grid;place-items:center;background:#165dff;width:30px;height:30px;font-size:13px;border-radius:8px}
.account{margin-left:auto;display:flex;align-items:center;gap:10px;white-space:nowrap}
.header-clock{display:flex;flex-direction:column;align-items:flex-end;gap:1px;padding:0 14px 0 16px;border-left:1px solid rgba(255,255,255,.22);border-right:1px solid rgba(255,255,255,.22);line-height:1.25;white-space:nowrap}
.header-clock-time,.header-clock-fx{display:flex;align-items:center;gap:5px;font-size:11px;color:rgba(255,255,255,.82)}
.header-clock-time b{font-size:12.5px;font-weight:600;color:#fff;font-variant-numeric:tabular-nums}
.header-clock-time svg,.header-clock-time .arco-icon{font-size:12px;color:rgba(255,255,255,.82)}
.header-clock-fx b{font-weight:600;color:#fff;font-variant-numeric:tabular-nums}
.header-clock-note{font-size:10.5px;color:rgba(255,255,255,.62)}
.header-data{display:flex;flex-direction:column;align-items:flex-end;gap:1px;line-height:1.25;white-space:nowrap;flex:none;margin-left:2px;padding:0 4px 0 0}
.header-data-date,.header-data-next,.header-data-bj{display:flex;align-items:center;gap:5px;font-size:11px;color:rgba(255,255,255,.82)}
.header-data-date b{font-size:12.5px;font-weight:600;color:#fff;font-variant-numeric:tabular-nums}
.header-data-next,.header-data-bj{color:rgba(255,255,255,.72)}
.demo-tag{background:#5d452a;color:#fbdba6;border-radius:4px;border:0;font-size:11px;padding:4px 8px;white-space:nowrap}
.workspace{display:flex;height:calc(100dvh - var(--br-top));min-height:0}
.workspace aside{width:var(--br-side);height:100%;position:relative;top:0;padding:0;display:flex;flex-direction:column;min-height:0;background:#fff;border-color:var(--br-border)}
.workspace.collapsed aside{width:var(--br-collapsed)}
.sidebar-menu{flex:1;min-height:0;overflow-y:auto;padding:8px}
.sidebar-menu button{height:40px;padding:0 12px;width:100%;display:flex;gap:10px;align-items:center;background:transparent;color:#4e5969;font-size:14px;border:0;border-radius:6px;margin:2px 0;white-space:nowrap}
.sidebar-menu button:hover{background:#f2f3f5}
.sidebar-menu button.active{background:#e8f3ff;color:var(--br-blue);font-weight:500}
.sidebar-menu button svg{width:16px;height:16px;flex:none}
.sidebar-menu button span{overflow:hidden;text-overflow:ellipsis}
.collapsed .sidebar-menu button{justify-content:center;padding:0}
.sidebar-footer{flex:none;border-top:1px solid var(--br-border);padding:3px 8px;display:flex;align-items:center;gap:8px;height:34px}
.sidebar-footer small{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#a1a8b3;flex:1}
.collapse-button{height:28px;border:0;background:transparent;color:var(--br-muted);border-radius:5px;min-width:32px;display:grid;place-items:center}
.collapse-button:hover{background:#f2f3f5;color:var(--br-ink)}
.collapsed .collapse-button{width:100%}
main{flex:1;padding:0;max-width:none;display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden}
.page-title{display:flex;align-items:center;height:52px;min-height:52px;flex:none;margin:0;padding:0 20px;background:#fff;border-bottom:1px solid var(--br-border);justify-content:flex-start;gap:12px;overflow:hidden}
.page-title-line{display:flex;align-items:center;white-space:nowrap;gap:6px;flex:none}
.page-title h1{font-size:16px;line-height:1.4;font-weight:600;margin:0}
.page-title .plat{font-size:14px;color:var(--br-muted)}
.refresh-button{margin-left:auto;flex:none}
.page-body{flex:1;min-height:0;padding:10px 10px 6px;overflow:auto}
.page-body>*{flex-shrink:0}
.page-body.list-page{display:flex;flex-direction:column;overflow:hidden}
.page-body.list-page>.br-data-table{flex:1;min-height:0}
/* 商品套图以 iframe 一体化嵌入主应用，容器占满内容区。 */
.page-body.iframe-page{display:flex;flex-direction:column;overflow:hidden;padding:0}
.page-body.iframe-page>.studio-surface{display:none}
.toolbar{display:flex;align-items:center;flex-wrap:wrap;border:1px solid #e2e6ee;background:#fff;flex:none;padding:8px 10px;margin:0 0 8px;gap:10px;border-color:var(--br-border);border-radius:6px;min-height:50px}
.toolbar-tail{display:flex;gap:8px;align-items:center;margin-left:auto;flex-wrap:nowrap;min-width:0}
.br-table-tools{display:flex;gap:8px;flex:none}
.notice{padding:7px 12px;margin:0 0 12px;font-size:13px}
.page-body>.arco-alert{margin-bottom:12px;flex:none}
.panel{background:#fff;border:1px solid #e2e6ee;padding:16px;margin:0 0 12px;border-color:var(--br-border);border-radius:8px;box-shadow:0 1px 3px #00000008}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;margin:0 0 10px}
.section-title h2{display:flex;align-items:center;gap:8px;font-size:16px;margin:0}
.provider-section{margin-bottom:16px}
.budget-panel{display:flex;justify-content:space-between;align-items:center;gap:16px}
.budget-panel p{margin:6px 0 0;color:var(--br-muted);font-size:13px}
.stats{display:flex;gap:12px;margin:0 0 12px}
.stats>div{background:#fff;border:1px solid #e2e6ee;flex:1;padding:12px 16px;min-width:min(140px,100%);border-color:var(--br-border);border-radius:6px}
.stats b{display:block;font-variant-numeric:tabular-nums;font-size:22px}
.stats span{display:block;color:#768397;font-size:12px;margin-bottom:6px}
.page-body h2{font-size:15px}
.trend-chart{width:100%;display:block;max-height:200px}
/* Shared Arco table. Width/overflow is handled by Arco's scroll and fixed columns. */
.br-data-table{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid var(--br-border);border-radius:8px;box-shadow:0 1px 3px #00000008;margin-bottom:12px}
.list-page>.br-data-table{margin:0}
.br-table-heading{flex:none;min-height:44px;display:flex;align-items:center;gap:12px;padding:0 16px;border-bottom:1px solid #f2f3f5}
.br-table-heading strong{font-size:14px;font-weight:600}
.br-table-controls{position:absolute;top:6px;right:12px;display:flex;gap:8px;z-index:3}
.br-table-zone{flex:1;min-height:0;min-width:0;overflow:hidden}
.br-data-table .arco-table{width:100%;min-height:0}
.br-data-table .arco-table-th{background:#f7f8fa;color:#1d2129;font-size:14px;font-weight:600;white-space:nowrap;height:42px;padding:10px 12px}
.br-data-table .arco-table-td{height:50px;padding:8px 12px;font-size:14px;line-height:1.35;border-bottom-color:#e5e6eb}
.br-data-table .arco-table-cell{min-width:0}
.br-data-table .arco-table-tr:nth-child(even) .arco-table-td{background:#f7f8fa}
.br-data-table .arco-table-tr:hover .arco-table-td{background:#f2f6fc}
.br-data-table .arco-table-th-item{white-space:nowrap}
.br-data-table.comfortable .arco-table-td{height:62px;padding:12px}
.br-data-table .arco-table-cell .arco-btn-text{color:#86909c;min-width:27px;padding:0 6px}
.br-data-table .arco-table-cell .arco-btn-text:hover{color:#165dff;background:#e8f3ff}
.br-row-actions{display:flex;align-items:center;justify-content:center;gap:2px;white-space:nowrap}
.br-row-actions .arco-btn{flex:none}
.br-row-actions svg{width:15px;height:15px}
.br-table-footer{flex:none;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:4px 10px;border-top:1px solid var(--br-border);font-variant-numeric:tabular-nums;background:#fff}
.br-table-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;color:#4e5969}
.br-table-summary b{font-weight:600;color:#165dff}
.br-table-summary small{font-size:11px;display:inline;color:#a1a8b3}
.br-table-footer .arco-pagination{flex:none;gap:2px}
.br-table-footer .arco-pagination-item{min-width:28px}
.br-table-empty{padding:40px 20px;display:flex;flex-direction:column;gap:12px;align-items:center;color:#86909c;font-size:13px}
.br-table-empty>svg{width:30px;height:30px;color:#c9cdd4}
.table-settings{display:flex;flex-direction:column;gap:12px}
.table-settings>.arco-checkbox{margin:0}
.product-cell{max-width:none;gap:10px;min-width:0}
.product-cell img{width:36px;height:36px;flex:none;border-radius:4px;object-fit:cover}
.cell-lines{min-width:0;overflow:hidden}
.cell-lines strong,.cell-lines b,.cell-lines>a{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.cell-clip{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cell-lines small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4;font-size:11px;margin-top:3px;max-width:none}
.tag{display:inline-block;border-radius:3px;padding:2px 6px;font-size:12px;background:#e8f1ff;color:#165dff;white-space:nowrap;line-height:18px}
.id{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;font-size:11px}
.creation-layout>.panel{min-width:0}
.arco-drawer-body .br-data-table{margin-top:12px}
table:not(.arco-table-element) th,table:not(.arco-table-element) td{padding:10px 12px;white-space:normal}
table:not(.arco-table-element) .tag{white-space:nowrap}
.login-shell{min-height:100vh;display:grid;grid-template-columns:1fr 420px;gap:100px;align-items:center;max-width:1150px;margin:auto;padding:40px;height:100dvh;overflow:auto}
.safe-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:12px}
@media(max-width:1280px){.page-title{padding:0 16px}
.page-body{padding:10px 10px 6px}
.br-table-summary small{display:none}
.br-table-footer{padding:4px 10px}}
/* 纯文字顶栏：黄色斜角在窄屏会压住数据块文字，窄于 1760 隐藏该装饰 */
@media(max-width:1760px){.app-header::after{display:none}}
@media(max-width:1100px){.header-data{display:none}}
@media(max-width:1000px){header{gap:12px}
.header-clock,.header-data{display:none}
header nav button{padding:0 11px;font-size:13px}
.account{gap:8px}
.account-name{display:none}
.page-title .plat{display:none}
.br-table-footer .arco-pagination-jumper{display:none}}
@media(max-width:760px){header nav{min-width:0;overflow-x:auto}
header nav button{white-space:nowrap;padding:0 9px}
.brand strong,.demo-tag,.avatar{display:none}
.account{gap:0}
.workspace aside{width:var(--br-side)}
.workspace.collapsed aside{width:64px}
.page-body{padding:8px 8px 6px}
.page-title{padding:0 12px}
.toolbar-tail{margin-left:0;width:100%;justify-content:flex-end}
.stats{flex-wrap:wrap}
.br-table-footer{gap:8px}
.br-table-footer .arco-pagination{flex-wrap:wrap}}
.br-data-table .arco-table-cell{padding:0!important;line-height:1.4}
.br-data-table .arco-table-th-item{gap:6px}
.br-data-table .arco-table-th-title{line-height:20px}
.br-data-table .arco-table-body .arco-table-cell{overflow:hidden}
.br-data-table .arco-table-td-align-right{text-align:right}
.br-data-table .arco-table-th-align-right{text-align:right}
@media(max-width:760px){.login-shell{display:block;padding:24px}
.login-brand{margin-bottom:24px}}
.br-row-actions .arco-btn-status-danger{color:#f53f3f!important}
/* First-version product association and direct per-listing image editor. */
.page-body.studio-body{padding:0;overflow:hidden;gap:0}
.studio-surface{width:100%}
.listing-editor{display:flex;flex-direction:column;gap:16px}
.listing-editor-heading{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.listing-editor-heading small{color:#86909c}
.listing-editor-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.listing-editor-tools small{color:#86909c}
.listing-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:10px;margin:12px 0}
.listing-library-grid button{padding:6px;border:1px solid #e5e6eb;background:#fff;border-radius:4px;cursor:pointer;min-width:0}
.listing-library-grid img{width:100%;height:90px;object-fit:contain}
.listing-library-grid span{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.listing-editor-footer{display:flex;justify-content:flex-end;gap:8px;padding-top:12px;border-top:1px solid #e5e6eb}
.product-cell{display:flex;align-items:center}
/* Product -> store SPU -> SKU: compact default */
.simple-product-image.empty{display:grid;place-items:center;color:#c9cdd4;font-size:28px;cursor:default}
.compact-disclosure{padding:0}
.compact-disclosure>summary{padding:13px 18px;cursor:pointer;font-size:13px;color:#4e5969}
.warehouse-chips{display:flex;flex-wrap:wrap;gap:10px;padding:0 18px 16px}
.warehouse-chips>div{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #e5e6eb;border-radius:4px}
.warehouse-chips img{width:36px;height:36px;object-fit:contain;border-radius:3px}
.warehouse-chips span{display:flex;flex-direction:column;gap:4px;font-size:12px}
.warehouse-chips small{color:#86909c}
.store-products{padding:0}
.store-products>h2{font-size:15px;margin:0;padding:17px 20px;border-bottom:1px solid #e5e6eb}
.store-group{padding:16px 20px;border-bottom:1px solid #e5e6eb}
.store-group:last-child{border-bottom:0}
.store-group-head{display:flex;align-items:center;gap:16px;margin-bottom:10px;font-size:13px}
.store-group-head small{color:#86909c;font-size:12px}
.store-spu+.store-spu{border-top:1px dashed #e5e6eb;margin-top:12px;padding-top:12px}
.store-spu-main{display:flex;gap:14px;align-items:center}
.store-spu-info{min-width:0;flex:1}
.store-spu-info strong{display:block;font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.store-spu-info p{display:flex;align-items:center;gap:4px;color:#86909c;font-size:12px;margin:5px 0 0;overflow-wrap:anywhere}
.store-spu-action{display:flex;align-items:center;gap:12px;flex:none}
.store-sku-details{margin:6px 0 0 70px}
.store-sku-details>summary{cursor:pointer;color:#165dff;font-size:12px;line-height:24px;width:fit-content}
.sku-table-scroll{overflow:auto;margin-top:8px}
.sku-link-table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}
.sku-link-table th{background:#f7f8fa;color:#4e5969;font-weight:500}
.sku-link-table td,.sku-link-table th{padding:9px 12px;border-bottom:1px solid #e5e6eb;white-space:nowrap}
.sku-link-table td span{display:block;line-height:20px}
.other-store-row{display:flex;gap:20px;justify-content:space-between;flex-wrap:wrap;font-size:12px;padding:12px 18px;border-top:1px solid #e5e6eb}
.other-store-row span{color:#86909c}
@media(max-width:1100px){.store-spu-action{gap:6px}
.store-spu-action .tag{display:none}}
@media(max-width:760px){.store-spu-main{flex-wrap:wrap}
.store-spu-action{margin-left:70px}
.store-sku-details{margin-left:0}}
.page-body>.card{background:#fff;border:1px solid var(--br-border);border-radius:8px;margin:0 0 12px;box-shadow:0 1px 3px #00000005}
.store-products,.store-group,.store-spu{min-width:0}
.store-group-head{white-space:nowrap;overflow:auto}
.store-products .sku-link-table th,.store-products .sku-link-table td{white-space:nowrap}
.listing-slot-note{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#4e5969;font-size:13px}
.listing-slot-note small{font-size:12px;color:#86909c}
.listing-slot-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.listing-slot{position:relative;border:1px solid #e5e6eb;background:#f7f8fa;border-radius:6px;overflow:hidden}
.listing-slot.slot-empty{border-style:dashed;background:#fafbfc}
.listing-slot-badge{position:absolute;top:7px;left:7px;background:#e8f3ff;color:#165dff;font-size:12px;padding:3px 7px;border-radius:3px;z-index:1}
.listing-slot-photo{height:130px;display:grid;place-items:center;cursor:pointer}
.listing-slot-photo img{width:100%;height:100%;object-fit:contain;cursor:zoom-in}
.listing-slot-placeholder{display:flex;flex-direction:column;align-items:center;gap:8px;color:#a0a7b3;font-size:12px}
.listing-slot-placeholder svg{width:24px;height:24px}
.listing-history-picker{display:flex;flex-direction:column;gap:12px}
.listing-history-picker .listing-library-grid{margin:0;grid-template-columns:repeat(6,minmax(0,1fr))}
.listing-history-picker .listing-library-grid img{height:105px}
.listing-history-picker .listing-library-grid button:hover{border-color:#165dff;background:#e8f3ff}
.listing-history-footer{display:flex;justify-content:space-between;align-items:center;padding-top:12px;border-top:1px solid #e5e6eb}
@media(max-width:900px){.listing-slot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.listing-history-picker .listing-library-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.listing-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.listing-history-picker .listing-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.listing-slot-note small{font-size:11px}}
.listing-slot{display:flex;flex-direction:column}
.listing-slot-photo{height:130px;flex:none;min-height:0;overflow:hidden}
.listing-slot-photo>img{display:block;height:130px;max-height:130px;min-height:0}
.product-list-image{display:inline-grid;place-items:center;width:64px;height:64px;padding:0;border:1px solid #e5e6eb;border-radius:4px;background:#f7f8fa;vertical-align:middle;cursor:zoom-in}
.product-list-image img{display:block;width:62px;height:62px;object-fit:contain}
.image-unavailable{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#a5adbb;background:#f7f8fa;cursor:default}
.image-unavailable svg{width:22px;height:22px}
.image-unavailable small{font-size:10px;white-space:nowrap}
.spu-gallery{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 14px}
.spu-gallery-image{display:flex;flex-direction:column;align-items:stretch;width:98px;padding:0;border:1px solid #e5e6eb;border-radius:4px;background:#fff;overflow:hidden;cursor:zoom-in;color:#4e5969;font:inherit}
.spu-gallery-image:disabled,.sku-photo:disabled{cursor:default;opacity:1}
.spu-gallery-picture{height:88px;display:grid;place-items:center;background:#f7f8fa}
.spu-gallery-picture>img{width:100%;height:88px;object-fit:contain}
.spu-gallery-label{padding:5px 4px;text-align:center;font-size:11px;border-top:1px solid #e5e6eb}
.spu-gallery-image.is-main{border-color:#165dff}
.spu-gallery-image.is-main .spu-gallery-label{color:#165dff;background:#e8f3ff;border-color:#bedaff;font-weight:600}
.images-empty-note{color:#86909c;font-size:12px;padding:10px 0}
.store-sku-details{margin-left:0}
.sku-photos-cell{min-width:105px;max-width:350px}
.sku-photos{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:350px}
.sku-photo{padding:0;border:0;background:transparent;cursor:zoom-in;flex:none}
.sku-photo .sku-spec-thumb{display:block;width:66px;height:66px}
.sku-photo>.image-unavailable{width:66px;height:66px;border:1px solid #e5e6eb;border-radius:4px}
.sku-link-table td .image-unavailable{display:flex}
.sku-link-table td .image-unavailable small{line-height:1.2}
.product-display-picture>.image-unavailable{display:flex}
.sku-spec-thumb{width:44px;height:44px;object-fit:contain;cursor:zoom-in;background:#f7f8fa;border:1px solid #e5e6eb;border-radius:4px}
.sku-no-photo{color:#c9cdd4}
.sku-image-explainer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:#4e5969}
.sku-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.sku-image-card{border:1px solid #e5e6eb;border-radius:6px;overflow:hidden;background:#fff;min-width:0}
.sku-image-selected{border-color:#165dff;box-shadow:0 0 0 1px #165dff}
.sku-value-heading{display:flex;justify-content:space-between;gap:8px;padding:10px;background:#f7f8fa;font-size:13px}
.sku-value-heading small{color:#86909c}
.sku-value-image{height:160px;display:grid;place-items:center;cursor:pointer}
.sku-value-image img{width:100%;height:160px;object-fit:contain}
.sku-value-actions{display:flex;justify-content:center;gap:6px;padding:9px;border-top:1px solid #f2f3f5}
.sku-value-skus{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#86909c;font-size:11px;padding:0 10px 10px}
.sku-link-table td:last-child{white-space:nowrap}
@media(max-width:600px){.sku-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.listing-slot.slot-selected{border-color:#165dff;box-shadow:0 0 0 1px #165dff}
.product-gallery-panel{padding:18px;background:#fff;border:1px solid #e5e6eb;border-radius:8px}
.gallery-hint{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;color:#86909c;font-size:12px;margin-bottom:18px}
.product-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(195px,1fr));gap:16px;min-height:220px}
.product-gallery-card{min-width:0;border:1px solid #e5e6eb;border-radius:6px;overflow:hidden;background:#fff}
.gallery-image{width:100%;height:180px;border:0;background:#f7f8fa;display:grid;place-items:center;cursor:zoom-in}
.gallery-image img{width:100%;height:180px;object-fit:contain}
.gallery-card-info{padding:12px;display:flex;flex-direction:column;gap:9px;font-size:12px}
.gallery-card-info strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gallery-card-info>div{display:flex;justify-content:space-between;color:#4e5969}
.gallery-card-info>div span,.gallery-card-info>div small{white-space:nowrap}
.gallery-card-info small{color:#86909c}
.product-gallery-card footer{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-top:1px solid #f2f3f5}
.gallery-pagination{display:flex;justify-content:space-between;align-items:center;padding-top:18px;margin-top:18px;border-top:1px solid #e5e6eb;color:#86909c;font-size:13px}
.studio-gallery-button{border:1px solid #d6d3d1;background:#fff;color:#1e5f9e;padding:4px 8px;cursor:pointer;font:inherit;font-size:11.5px}
.studio-gallery-button:disabled,.studio-gallery-icon:disabled{opacity:.55;cursor:wait}
.history-gallery-button{border:0;border-left:1px solid #e7e5e4;flex:1;white-space:nowrap}
.studio-gallery-icon{font:inherit;background:#fff;cursor:pointer}
@media(max-width:600px){.product-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.gallery-image,.gallery-image img{height:145px}
.gallery-pagination{flex-wrap:wrap;gap:12px}
.gallery-card-info>div{flex-wrap:wrap;row-gap:2px}}
/* 素材库（产品图 / 场景图 / 人物） */
.media-library-page{display:flex;flex-direction:column;gap:16px}
.media-tags .tag{margin:0}
.media-people-section .detail-section-title{margin-bottom:0}
.media-person-avatar.is-static{cursor:zoom-in}
.media-supply-card .gallery-image{position:relative}
.player-script-actions{display:flex;align-items:center;gap:10px;padding:12px 0;flex-wrap:wrap}
/* Sidebar edge resizes only the workspace; the table observes available space. */
.workspace aside{flex:none}
.sidebar-resize-handle{position:absolute;right:-3px;top:0;bottom:0;width:7px;z-index:5;cursor:col-resize;touch-action:none;outline:none}
.sidebar-resize-handle::before{content:"";position:absolute;top:calc(50% - 13px);left:3px;width:2px;height:26px;border-radius:2px;background:#c8d2db}
.sidebar-resize-handle:hover,.sidebar-resize-handle:focus-visible{background:#165dff18}
.sidebar-resize-handle:hover::before,.sidebar-resize-handle:focus-visible::before{background:#165dff}
.workspace.side-resizing{cursor:col-resize;user-select:none}
.br-currency-switch{display:inline-flex;align-items:center;flex:none;border-radius:4px;background:#f2f3f5;padding:2px;gap:2px;height:32px;box-sizing:border-box;white-space:nowrap}
.br-currency-switch button{border:0;border-radius:3px;background:transparent;color:#667085;padding:0 9px;height:28px;font-size:12px;cursor:pointer}
.br-currency-switch button.active{background:#165dff;color:#fff}
.br-currency-switch button:focus-visible{outline:2px solid #165dff;outline-offset:2px}
.br-currency-switch .br-fx-date{font-size:10px;color:#8b96a6;margin:0 5px;white-space:nowrap}
.br-currency-switch .br-fx-date.warning{color:#b27b17}
/* Opt-in detail tables show every local row, using the page scroll. */
.br-data-table.unpaged{flex:none;margin-bottom:0}
.br-data-table.unpaged>.br-table-zone{flex:none;overflow:visible}
/* A pending session check is not a signed-out state. */
.auth-check{min-height:100vh;width:100%;display:flex;align-items:center;justify-content:center;background:#f7f8fa;color:#86909c}
.auth-check-box{text-align:center;padding:24px}
.auth-check-box p{margin:14px 0;font-size:13px}
/* Sidebar: first-level task groups, second-level pages; compact mode keeps leaf tooltips. */
.sidebar-menu .sidebar-group{margin:0 0 8px;min-width:0}
.sidebar-menu .sidebar-group-heading{margin:0;font:inherit}
.sidebar-menu .sidebar-group-trigger{height:34px;min-height:34px;font-size:12px;font-weight:600;color:#6b7785;gap:9px;padding:0 10px;white-space:nowrap}
.sidebar-menu .sidebar-group-trigger:hover{background:#f2f5f9;color:#1d4ed8}
.sidebar-menu .sidebar-group-trigger>span{flex:1;text-align:left;white-space:nowrap}
.sidebar-menu .sidebar-group-trigger .sidebar-group-arrow{width:12px;height:12px;flex:none;transform:rotate(0deg)}
.sidebar-menu .sidebar-group-trigger .sidebar-group-arrow.closed{transform:rotate(-90deg)}
.sidebar-menu .sidebar-group-items{min-width:0}
.sidebar-menu .sidebar-leaf{width:calc(100% - 12px);margin:2px 0 2px 12px;min-height:36px;height:36px;gap:10px;padding:0 10px;white-space:nowrap}
.sidebar-menu .sidebar-leaf>span{white-space:nowrap}
.sidebar-menu .contains-active>.sidebar-group-heading .sidebar-group-trigger{color:#34507c}
.workspace.collapsed .sidebar-menu .sidebar-group{padding-bottom:5px;margin-bottom:5px;border-bottom:1px solid #e9eef4}
.workspace.collapsed .sidebar-menu .sidebar-group:last-child{border-bottom:0}
.workspace.collapsed .sidebar-menu .sidebar-leaf{width:100%;margin:2px 0;height:38px;min-height:38px;padding:0;justify-content:center}
@media(max-width:760px){.sidebar-menu .sidebar-group-trigger{padding:0 6px;gap:6px}
.sidebar-menu .sidebar-leaf{width:calc(100% - 8px);margin-left:8px;gap:6px;padding:0 6px}}
.catalog-name{border:0;background:none;color:var(--brand,#165dff);font:inherit;font-weight:600;text-align:left;cursor:pointer;padding:0;white-space:normal}
.catalog-name:hover{text-decoration:underline}
.catalog-name:disabled{color:#6b7787;cursor:default;text-decoration:none}
.catalog-children .br-data-table{background:white}
.pricing-page .tag{margin:2px 4px 2px 0}
.thumbnail-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:var(--color-text-3);font-size:20px;pointer-events:none}
/* 单表列表页：底部不留空白，表体/分页贴住内容区下沿 */
.page-body.list-page{padding-bottom:0}
.page-body.list-page>.pricing-page,.page-body.list-page>.merch-list-page{height:100%;min-height:0}
/* 葡语文案的中文对照副行（只读缓存） */
.zh-name{display:block;font-size:12px;line-height:18px;color:#86909c;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zh-inline{color:#86909c;font-style:normal;font-size:12px;margin-left:4px}
/* 素材库（产品图 / 场景图 / 人物 / 参考视频）——2026-11-04 重建：此前规则随合并丢失致线上裸奔 */
.media-library-page{display:flex;flex-direction:column;gap:16px}
.media-tags .tag{margin:0}
.media-people-section .detail-section-title{margin-bottom:0}
.media-person-avatar.is-static{cursor:zoom-in}
.media-video-info .zh-name{color:#86909c}
/* 表格设置：左侧选择，右侧统一排序；显示偏好独立，应用后一次生效 */
.table-settings{gap:0}
.table-settings-dialog{display:flex;flex-direction:column;max-height:calc(100dvh - 80px);box-sizing:border-box}
.table-settings-dialog>.ax-dialog-head{flex:none}
.table-settings-dialog>.table-settings{display:flex;flex-direction:column;flex:1;min-height:0}
.table-settings-dialog .table-settings-tabs{flex:none}
.table-settings-dialog .table-settings-columns-panel,.table-settings-dialog .table-settings-display-panel{flex:1;min-height:0;overflow:auto}
.table-settings-dialog .table-settings-selected-list{max-height:none;overflow:visible}
.table-settings-dialog .table-settings-footer{position:static;flex:none;margin:12px -16px -16px;padding:12px 16px}
.table-settings-tabs{display:flex;gap:22px;border-bottom:1px solid var(--color-border-2)}
.table-settings-tabs button{position:relative;padding:0 0 10px;border:0;background:transparent;color:var(--color-text-2);cursor:pointer;white-space:nowrap}
.table-settings-tabs button.active{color:rgb(var(--primary-6));font-weight:500}
.table-settings-tabs button.active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:rgb(var(--primary-6))}
.table-settings-columns-panel>.arco-input-search,.table-settings-columns-panel>.ax-input-field{width:100%;margin:14px 0}
.table-settings-layout{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);gap:16px}
.table-settings-available,.table-settings-selected{min-width:0}
.table-settings-selected{padding:12px;border-radius:8px;background:var(--color-fill-1)}
.table-settings-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:8px}
.table-settings-section-head>b{font-size:13px;font-weight:500;white-space:nowrap}
.table-settings-section-head>span{font-size:11px;color:var(--color-text-3);white-space:nowrap}
.table-settings-group{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:2px 8px;margin-bottom:12px}
.table-settings-group-title{grid-column:1/-1;margin:4px 0;color:var(--color-text-2);font-size:12px;font-weight:500}
.table-settings-option{display:flex;align-items:center;min-width:0;min-height:32px;padding:3px 6px;border-radius:5px}
.table-settings-option:hover{background:var(--color-fill-1)}
.table-settings-option .arco-checkbox{margin:0;min-width:0;white-space:nowrap}
.table-settings-option>.ax-check{flex:1;min-width:0;min-height:32px;height:auto;white-space:nowrap}
.table-settings-option input{flex:none}
.table-settings-option .table-settings-lock{margin-left:6px}
.table-settings-ranges{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}
.table-settings-ranges button{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border:1px solid var(--color-border-2);border-radius:5px;background:var(--color-bg-2,#fff);color:var(--color-text-2);font-size:12px;white-space:nowrap;cursor:pointer}
.table-settings-ranges button.active{border-color:rgb(var(--primary-5));background:rgb(var(--primary-1));color:rgb(var(--primary-6))}
.table-settings-ranges button span{font-size:11px;color:inherit;opacity:.8}
.table-settings-metric-options{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:2px 8px}
.table-settings-sort-hint{margin:0 0 10px;color:var(--color-text-3);font-size:11px;white-space:nowrap}
.table-settings-selected-list{display:flex;flex-direction:column;gap:6px;max-height:min(360px,46vh);overflow:auto;padding-right:2px}
.table-settings-row{position:relative;display:flex;align-items:center;gap:6px;min-height:38px;padding:5px 7px;border:1px solid var(--color-border-2);border-radius:6px;background:var(--color-bg-2,#fff)}
.table-settings-row:hover{border-color:var(--color-border-3)}
.table-settings-row.dragging{opacity:.5;background:var(--color-fill-2)}
.table-settings-row.drop-before::before,.table-settings-row.drop-after::after{content:"";position:absolute;left:4px;right:4px;height:2px;border-radius:2px;background:rgb(var(--primary-5))}
.table-settings-row.drop-before::before{top:-4px}
.table-settings-row.drop-after::after{bottom:-4px}
.table-settings-handle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:28px;border:1px solid var(--color-border-2);border-radius:5px;background:var(--color-fill-1);color:var(--color-text-3);cursor:grab}
.table-settings-handle:hover{border-color:rgb(var(--primary-3));background:rgb(var(--primary-1));color:rgb(var(--primary-6))}
.table-settings-handle:focus-visible{outline:2px solid rgb(var(--primary-3));outline-offset:1px}
.table-settings-handle:active{cursor:grabbing}
.table-settings-handle.disabled{cursor:default;opacity:.35}
.table-settings-selected-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.table-settings-row .arco-btn{flex:none}
.table-settings-pin{height:24px;padding:0 6px!important;border:1px solid transparent;border-radius:5px;color:var(--color-text-3);font-size:11px;line-height:22px;white-space:nowrap}
.table-settings-pin:hover{border-color:rgb(var(--primary-2));background:rgb(var(--primary-1));color:rgb(var(--primary-6))}
.table-settings-pin.pinned{border-color:rgb(var(--primary-2));background:rgb(var(--primary-1));color:rgb(var(--primary-6))}
.table-settings-lock{flex:none;font-size:11px;color:var(--color-text-3);white-space:nowrap}
.table-settings-order-note{margin-top:10px;padding-top:9px;border-top:1px solid var(--color-border-2);color:var(--color-text-3);font-size:11px;white-space:nowrap}
.table-settings-empty{grid-column:1/-1;padding:24px 8px;text-align:center;color:var(--color-text-3);font-size:12px}
.table-settings-display-panel{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-height:300px;padding-top:18px}
.table-settings-reset-confirm{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px -20px 0;padding:10px 20px;border-top:1px solid #f5c26b;background:#fff7e8;color:#7a4b09;font-size:12px}
.table-settings-reset-confirm>div{display:flex;gap:8px;flex:none}
.table-settings-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:0 -20px -20px;padding:12px 20px;border-top:1px solid var(--color-border-2);background:var(--color-bg-2,#fff);position:sticky;bottom:-20px;z-index:2}
.table-settings-footer>:first-child{margin-right:auto}
.table-settings-dirty{font-size:12px;color:var(--color-text-3);white-space:nowrap}
@media(max-width:720px){.table-settings-layout{grid-template-columns:1fr}
.table-settings-selected-list{max-height:220px}
.table-settings-reset-confirm{align-items:flex-start;flex-direction:column}
.table-settings-dirty{display:none}}
@media(pointer:coarse){.table-settings-option,.table-settings-option>.ax-check{min-height:44px}}
/* 创作画布模块全幅：无侧栏（LibTV 画布全屏形态） */
.workspace.no-side>aside{display:none}
.workspace.no-side .sidebar-footer,.workspace.no-side .sidebar-resize-handle{display:none}
/* Detail-page tables share the page scroll surface and grow with their rows. */
.br-data-table.page-flow{flex:none;height:auto;max-height:none;overflow:visible;min-height:0}
.br-data-table.page-flow>.br-table-zone{flex:none;overflow:visible;max-height:none}
.br-data-table.page-flow .arco-table-container,.br-data-table.page-flow .arco-table-content,.br-data-table.page-flow .arco-scrollbar,.br-data-table.page-flow .arco-scrollbar-container{overflow:visible!important;max-height:none!important}
.br-data-table.page-flow .arco-table-empty{min-height:110px}
.header-data.is-delayed .header-data-next{color:#ffd591}
.header-data.is-failed .header-data-next{color:#ffb4a8}
