:root{--ink:#172033;--muted:#6b7280;--line:#e4e7ec;--soft:#f3f5f7;--paper:#fff;--nav:#101827;--nav-active:#1d293d;--teal:#0faaa1;--teal-dark:#07857e;--teal-soft:#e8f8f6;--blue-soft:#eaf4ff;--amber:#f59e0b;--red:#dc2626;--green:#059669;--shadow:0 12px 38px rgba(22,31,50,.08);--radius:14px}
*{box-sizing:border-box}body{margin:0;min-width:1120px;background:var(--soft);color:var(--ink);font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(15,170,161,.18);outline-offset:2px}
.hidden{display:none!important}
.app{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:24px 15px 18px;background:radial-gradient(circle at 35% -5%,rgba(19,217,208,.13),transparent 25%),var(--nav);color:#fff;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 24px}.brand img{width:41px;height:41px;object-fit:cover;border-radius:11px;box-shadow:0 8px 25px rgba(19,217,208,.2)}.brand strong{display:block;font-size:16px}.brand small{display:block;margin-top:3px;color:#8ba0b8;font-size:9px;letter-spacing:.07em}.nav-label{padding:15px 10px 7px;color:#66758b;font-size:10px;font-weight:800;letter-spacing:.12em}.nav-item{width:100%;border:0;border-radius:10px;background:transparent;color:#aab5c6;display:flex;align-items:center;gap:10px;min-height:43px;padding:9px 11px;font-size:13px;text-align:left;cursor:pointer;margin:2px 0}.nav-item:hover{color:#fff;background:rgba(255,255,255,.05)}.nav-item.active{color:#fff;background:var(--nav-active)}.nav-item span{width:20px;text-align:center;color:#8fa0b7}.nav-item.active span{color:#40e1d8}.nav-item i{margin-left:auto;min-width:21px;height:21px;padding:0 6px;border-radius:999px;display:grid;place-items:center;background:rgba(255,255,255,.08);color:#d9e1ec;font-size:10px;font-style:normal}.side-foot{margin-top:auto;padding-top:12px}.side-download{border:1px solid rgba(64,225,216,.3);color:#d9fffc;background:rgba(19,217,208,.08)}.side-download:hover{border-color:rgba(64,225,216,.65);background:rgba(19,217,208,.14)}.privacy-card{padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.035);color:#95a2b5;font-size:11px;line-height:1.55}.privacy-card strong{display:block;color:#e9fff9;margin-bottom:3px}.privacy-card strong span{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#34d399}
.main{min-width:0;padding:0 28px 42px}.topbar{min-height:86px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line)}.topbar h1{margin:5px 0 0;font-size:24px;letter-spacing:-.03em}.breadcrumb{color:#8891a2;font-size:11px}.top-actions{display:flex;gap:9px}.btn{min-height:38px;padding:9px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:12px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:.16s ease}.btn:hover{transform:translateY(-1px);box-shadow:0 5px 16px rgba(20,30,50,.08)}.btn-primary{background:var(--teal);color:#fff;border-color:var(--teal)}.btn-primary:hover{background:var(--teal-dark)}.btn-dark{background:var(--nav);color:#fff;border-color:var(--nav)}.btn-danger{color:var(--red)}.btn-ghost{background:transparent}.btn-small{min-height:30px;padding:6px 10px;font-size:11px}.btn:disabled{opacity:.48;cursor:not-allowed;transform:none;box-shadow:none}
.db-sync{display:inline-flex;align-items:center;min-height:30px;padding:4px 10px;border:1px solid #d7dde7;border-radius:999px;background:#f7f9fc;color:#697386;font-size:11px;font-weight:700;white-space:nowrap}.db-sync::before{content:"";width:7px;height:7px;margin-right:6px;border-radius:50%;background:#94a3b8}.db-sync.synced{color:#087f79;background:#e9fbf8;border-color:#bcece6}.db-sync.synced::before{background:#0fa99f}.db-sync.syncing{color:#92620a;background:#fff8df;border-color:#f2df9d}.db-sync.syncing::before{background:#e6a817}.db-sync.error{color:#b42318;background:#fff1f0;border-color:#f3c1bd}.db-sync.error::before{background:#d92d20}
.page-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0 14px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px 16px}.stat label{display:block;color:var(--muted);font-size:10px;margin-bottom:8px}.stat strong{font-size:23px;letter-spacing:-.04em}.stat small{display:block;color:#9aa1ad;font-size:10px;margin-top:6px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-top:14px;overflow:hidden}.panel-head{padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.panel-head h2{margin:0;font-size:15px}.panel-head p{margin:4px 0 0;color:var(--muted);font-size:11px}.section-title{display:flex;align-items:center;gap:10px;padding:13px 15px;background:var(--blue-soft);border-left:4px solid var(--teal);font-size:14px;font-weight:800;margin-bottom:17px;border-radius:5px}.panel-body{padding:18px}.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.filter-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:13px}.field{margin-bottom:15px}.field label{display:block;margin-bottom:6px;color:#4b5565;font-size:11px;font-weight:700}.field label em{color:var(--red);font-style:normal}.control{width:100%;min-height:38px;padding:8px 10px;border:1px solid #dce1e8;border-radius:8px;background:#fff;color:var(--ink);font-size:12px}textarea.control{resize:vertical;line-height:1.55}.control[readonly]{background:#f7f8fa;color:#727b8a}.toolbar{padding:13px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);flex-wrap:wrap}.toolbar-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.selected-hint{color:var(--teal-dark);font-size:11px;font-weight:700}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:980px}th{padding:11px 12px;background:#fafbfc;border-bottom:1px solid var(--line);color:#7c8492;text-align:left;font-size:10px;font-weight:800;letter-spacing:.02em}td{padding:12px;border-bottom:1px solid var(--line);font-size:11px;vertical-align:middle}tbody tr:hover{background:#fcfdfd}tbody tr:last-child td{border-bottom:0}.check{width:15px;height:15px;accent-color:var(--teal);cursor:pointer}.product-info{display:flex;align-items:center;gap:10px;min-width:255px}.thumb,.thumb-fallback{width:49px;height:49px;flex:0 0 auto;border:1px solid var(--line);border-radius:9px;background:#f1f3f6}.thumb{object-fit:contain}.thumb-fallback{display:grid;place-items:center;color:#8d97a7;font-weight:900}.product-info strong{display:block;max-width:310px;line-height:1.4}.meta{color:#8a93a2;font-size:10px;margin-top:4px}.tag,.status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;white-space:nowrap;font-size:10px;font-weight:700}.tag{background:#f0f2f5;color:#5f6877}.status-green{background:#ecfdf5;color:#047857}.status-amber{background:#fffbeb;color:#b45309}.status-blue{background:#eff6ff;color:#1d4ed8}.status-gray{background:#f2f4f7;color:#667085}.row-actions{display:flex;gap:5px;white-space:nowrap}.link-btn{border:0;background:transparent;color:var(--teal-dark);font-weight:700;font-size:11px;cursor:pointer;padding:4px 3px}.link-btn:hover{text-decoration:underline}.empty{padding:65px 20px;text-align:center;color:var(--muted)}.empty-icon{width:66px;height:66px;margin:0 auto 14px;border-radius:18px;display:grid;place-items:center;background:var(--teal-soft);color:var(--teal-dark);font-size:27px}.empty h3{color:var(--ink);margin:0 0 7px}.empty p{margin:0 0 17px;font-size:11px}.pager{padding:12px 16px;display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:10px;border-top:1px solid var(--line)}
.edit-shell{max-width:1320px;margin:20px auto 0}.stepper{display:flex;align-items:center;gap:8px;margin-bottom:14px}.step{min-width:150px;padding:10px 13px;border-radius:10px;background:#e8ebef;color:#7d8593;font-size:11px;font-weight:800}.step.active{background:var(--teal);color:#fff}.step.done{background:var(--teal-soft);color:var(--teal-dark)}.edit-card{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:18px;margin-bottom:14px}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 14px}.span-2{grid-column:span 2}.span-3{grid-column:span 3}.span-4{grid-column:1/-1}.country-row{display:flex;flex-wrap:wrap;gap:8px}.country-check{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:8px;padding:7px 10px;font-size:11px;cursor:pointer}.country-check:has(input:checked){border-color:var(--teal);background:var(--teal-soft);color:var(--teal-dark);font-weight:700}.country-check input{accent-color:var(--teal)}.price-result{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:9px;overflow:hidden;margin-top:2px}.price-result div{padding:12px;text-align:center;border-right:1px solid var(--line)}.price-result div:last-child{border-right:0}.price-result small{display:block;color:var(--muted);font-size:10px;margin-bottom:5px}.price-result strong{font-size:15px}.ai-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px}.ai-options{margin-left:auto;display:flex;gap:6px}.ai-radio{padding:7px 10px;border:1px solid var(--line);border-radius:999px;font-size:10px;cursor:pointer}.ai-radio:has(input:checked){background:#eefcfb;color:var(--teal-dark);border-color:var(--teal);font-weight:800}.ai-radio input{display:none}.text-row{display:grid;grid-template-columns:125px minmax(0,1fr);gap:12px;align-items:start;margin-bottom:14px}.text-label{padding-top:9px;font-size:11px;font-weight:800}.counter{margin-top:4px;text-align:right;color:#8a93a2;font-size:10px}.counter.over{color:var(--red);font-weight:800}.five-points{display:grid;gap:8px}.point-row{display:grid;grid-template-columns:24px minmax(0,1fr) 30px;gap:6px;align-items:start}.point-row>span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--teal-soft);color:var(--teal-dark);font-size:10px;margin-top:7px}.icon-btn{width:30px;height:30px;border:1px solid var(--line);background:#fff;border-radius:7px;cursor:pointer}.image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}.image-card{border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fafbfc}.image-stage{aspect-ratio:1;position:relative;background:#fff;display:grid;place-items:center;overflow:hidden}.image-stage img{width:100%;height:100%;object-fit:contain}.image-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:7px;background:rgba(7,16,29,.65);opacity:0;transition:.15s}.image-card:hover .image-overlay{opacity:1}.image-overlay button{width:34px;height:34px;border:1px solid rgba(255,255,255,.35);border-radius:8px;background:rgba(255,255,255,.13);color:#fff;cursor:pointer}.image-meta{padding:8px 9px;color:#77808e;font-size:10px;display:flex;justify-content:space-between}.upload-card{aspect-ratio:1;border:1.5px dashed #cbd1db;border-radius:11px;display:grid;place-items:center;color:#7d8696;cursor:pointer;background:#fafbfc;text-align:center;font-size:11px}.upload-card:hover{border-color:var(--teal);color:var(--teal-dark);background:var(--teal-soft)}.edit-footer{display:flex;justify-content:space-between;gap:10px;padding:8px 0 30px}
.variant-builder{display:grid;grid-template-columns:1fr 1fr;gap:12px}.token-box{border:1px solid var(--line);border-radius:10px;padding:13px}.token-box h3{margin:0 0 10px;font-size:12px}.add-line{display:flex;gap:7px}.tokens{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;min-height:26px}.token{display:inline-flex;gap:6px;align-items:center;background:var(--teal-soft);color:var(--teal-dark);border-radius:7px;padding:5px 8px;font-size:10px;font-weight:700}.token button{border:0;background:transparent;color:inherit;cursor:pointer;padding:0}.batch-bar{display:grid;grid-template-columns:130px 170px 1fr 1fr auto;gap:8px;align-items:end;margin-top:14px;padding:13px;background:#f7f9fa;border-radius:10px}.variant-table td{padding:10px}.variant-images{display:flex;gap:5px;flex-wrap:wrap;min-width:330px}.variant-images img{width:52px;height:52px;object-fit:contain;border:1px solid var(--line);border-radius:7px;background:#fff}.delta-positive{color:var(--green);font-weight:800}.delta-negative{color:var(--red);font-weight:800}
.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0 14px}.settings-note{padding:11px 12px;border-radius:9px;background:#eff6ff;color:#1e40af;font-size:10px;line-height:1.6;margin-bottom:15px}.modal-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:rgba(10,18,31,.56);backdrop-filter:blur(4px)}.modal{width:min(610px,100%);max-height:calc(100vh - 38px);overflow:hidden;background:#fff;border-radius:16px;box-shadow:0 28px 90px rgba(0,0,0,.25);display:flex;flex-direction:column}.modal.wide{width:min(980px,100%)}.modal-head{padding:17px 19px;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0 0 4px;font-size:16px}.modal-head p{margin:0;color:var(--muted);font-size:10px}.modal-close{width:30px;height:30px;border:0;border-radius:50%;background:#f1f3f5;cursor:pointer}.modal-body{padding:18px 19px;overflow-y:auto}.modal-foot{padding:13px 19px;display:flex;justify-content:flex-end;gap:8px;background:#fafbfc;border-top:1px solid var(--line)}.progress{padding:11px;border:1px solid #fde68a;background:#fffbeb;color:#92400e;border-radius:9px;font-size:10px;display:flex;gap:8px;align-items:center;margin-top:10px}.spinner{width:15px;height:15px;border:2px solid #fcd34d;border-top-color:#a16207;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.preview-modal{width:min(900px,90vw);height:min(780px,88vh);background:#0b1220;border-radius:16px;padding:18px;display:grid;place-items:center;position:relative}.preview-modal img{max-width:100%;max-height:100%;object-fit:contain}.preview-modal button{position:absolute;right:12px;top:12px;width:34px;height:34px;border:0;border-radius:50%;cursor:pointer}.toast-wrap{position:fixed;z-index:200;right:20px;bottom:20px;display:grid;gap:8px}.toast{min-width:270px;max-width:420px;padding:11px 13px;border-radius:10px;background:#172033;color:#fff;font-size:11px;box-shadow:0 15px 40px rgba(0,0,0,.2)}.toast.success{border-left:4px solid #34d399}.toast.error{border-left:4px solid #fb7185}.toast.info{border-left:4px solid #60a5fa}
.upload-defaults-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:0 10px}.upload-defaults-grid .field{min-width:0}.upload-defaults-grid .add-line{gap:5px}.upload-defaults-grid .add-line>.control{min-width:0}
@media(max-width:1500px){.upload-defaults-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.upload-defaults-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.upload-defaults-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1250px){.filter-grid,.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.span-4{grid-column:1/-1}.page-summary{grid-template-columns:repeat(2,1fr)}}

.product-copy{min-width:0;max-width:330px}.product-title{display:block;max-width:310px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-weight:800;line-height:1.5;text-decoration:none}.product-title:hover{color:var(--teal-dark);text-decoration:underline}
.text-field-footer{min-height:30px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:3px}.text-field-footer .counter{margin:0}.text-field-actions{display:flex;gap:4px}.text-field-actions button{width:28px;height:28px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#657083;cursor:pointer;font-size:14px}.text-field-actions button:hover{border-color:var(--teal);background:var(--teal-soft);color:var(--teal-dark)}.point-row{grid-template-columns:24px minmax(0,1fr)}
.bilingual-head{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 10px 137px;color:#667085;font-size:10px;font-weight:800}.bilingual-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:stretch}.translated-box{min-height:60px;padding:10px 11px;border:1px solid #dce1e8;border-radius:8px;background:#f8fafc;color:#334155;font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.translation-empty{color:#a0a7b3}.translated-points{display:grid;gap:8px}.translated-point{display:grid;grid-template-columns:24px minmax(0,1fr);gap:7px;min-height:60px;padding:8px;border:1px solid #dce1e8;border-radius:8px;background:#f8fafc;color:#334155;font-size:11px;line-height:1.55}.translated-point>span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#dff7f4;color:var(--teal-dark);font-weight:800}.ai-running{display:flex;align-items:center;gap:8px;margin:-4px 0 14px;padding:10px 12px;border:1px solid #99f6e4;border-radius:9px;background:#f0fdfa;color:#0f766e;font-size:11px}
.batch-bar{grid-template-columns:repeat(4,minmax(0,1fr)) auto}.batch-bar .field{min-width:0}.batch-bar .control{width:100%}
.detail-modal{width:min(1480px,calc(100vw - 70px))}.detail-body{display:grid;grid-template-columns:minmax(420px,38%) minmax(0,1fr);gap:22px}.detail-gallery{min-width:0}.detail-hero{height:480px;border:1px solid var(--line);border-radius:10px;background:#fff;display:grid;place-items:center;overflow:hidden}.detail-hero img{width:100%;height:100%;object-fit:contain}.detail-no-image{color:#98a2b3}.detail-thumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto;padding-bottom:5px}.detail-thumbs button{width:76px;height:66px;flex:0 0 auto;padding:2px;border:1px solid var(--line);border-radius:7px;background:#fff;cursor:pointer}.detail-thumbs button:hover{border-color:var(--teal)}.detail-thumbs img{width:100%;height:100%;object-fit:contain}.detail-copy h3{margin:0 0 18px;font-size:15px;line-height:1.55}.detail-copy dl{display:grid;grid-template-columns:100px 1fr;gap:11px;margin:0 0 18px;font-size:11px}.detail-copy dt{color:#7b8492}.detail-copy dd{margin:0;color:#394150}.detail-variants{display:grid;grid-template-columns:100px 1fr;gap:8px;align-items:start;margin:13px 0;font-size:11px}.detail-variants>div{display:flex;gap:6px;flex-wrap:wrap}.detail-points{margin-top:18px;font-size:11px}.detail-points ol{padding-left:18px;line-height:1.65;color:#505968}.detail-description{grid-column:1/-1;padding-top:18px;border-top:1px solid var(--line);font-size:11px}.detail-description p{line-height:1.7;color:#505968;white-space:pre-wrap}
@media(max-width:1250px){.bilingual-fields{grid-template-columns:1fr}.bilingual-head{display:none}.detail-body{grid-template-columns:1fr}.detail-hero{height:420px}}

/* V0.7：采用桌面系统常规字号，正文与表单以 14px 为基准。 */
body{font-size:14px}.nav-item{font-size:14px}.nav-label,.breadcrumb{font-size:12px}.privacy-card{font-size:13px}.btn{font-size:14px}.btn-small{font-size:13px}.stat label,.stat small,.panel-head p,.selected-hint,.pager,.meta{font-size:12px}.panel-head h2{font-size:17px}.section-title{font-size:16px}.field label,.text-label{font-size:13px}.control{font-size:14px;min-height:42px}th{font-size:12px}td{font-size:13px}.link-btn{font-size:13px}.tag,.status{font-size:12px}.step,.country-check,.token{font-size:13px}.ai-radio{font-size:12px}.counter{font-size:12px}.translated-box,.translated-point{font-size:14px}.settings-note,.progress,.toast{font-size:13px}.modal-head p,.detail-copy dl,.detail-variants,.detail-points,.detail-description{font-size:13px}.image-meta,.upload-card{font-size:12px}
.point-row{display:block}.translated-point{display:block}.danger-link{color:var(--red)}
.detail-option{min-height:36px;padding:7px 12px;border:1px solid #d7dde5;border-radius:8px;background:#fff;color:#4b5565;font:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:7px}.detail-option span{width:12px;height:12px;border:1px solid #cbd2dc;border-radius:50%;background:#fff}.detail-option:hover{border-color:var(--teal);color:var(--teal-dark)}.detail-option.selected{border-color:var(--teal);color:var(--teal-dark);font-weight:800}.detail-option.selected span{border:4px solid var(--teal)}
.detail-points ul{padding-left:18px;line-height:1.65;color:#505968}

/* V2.3.1：国家使用无原生勾选框的多选按钮，采购链接保持单行并省略显示。 */
.country-selector .country-check{position:relative;min-height:38px;justify-content:center;padding:8px 14px;user-select:none}
.country-selector .country-check input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.country-selector .country-check:has(input:focus-visible){outline:3px solid rgba(15,170,161,.18);outline-offset:2px}
.edit-card .form-grid .control{height:42px;min-height:42px}
.purchase-link-row{max-width:620px;align-items:stretch}
.purchase-link-input{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.purchase-link-button{flex:0 0 auto;min-width:92px;height:42px;white-space:nowrap}

/* V2.3.4：灯箱始终相对当前屏幕上下居中，初始为完整适配。 */
.image-lightbox{display:block;padding:0;height:100vh;height:100dvh;overflow:hidden}
.image-lightbox-inner{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(calc(100vw - 48px),1400px);height:min(calc(100vh - 48px),1000px);height:min(calc(100dvh - 48px),1000px)}

/* V0.8：设置项与变体工具栏对齐，图片统一使用全屏灯箱。 */
.batch-bar .field,.translator-add-grid .field{margin-bottom:0}.batch-bar>.btn,.translator-add-grid>.btn,.settings-add-line>.btn{min-height:42px;height:42px;white-space:nowrap;align-self:end}.settings-add-line>.btn{min-width:116px}
.sub-section-title{margin-top:20px}.translator-add-grid{display:grid;grid-template-columns:220px minmax(0,1fr) auto;gap:12px;align-items:end}.setting-rows{display:grid;gap:8px;margin-top:10px}.setting-row{min-height:44px;display:grid;grid-template-columns:120px minmax(120px,auto) minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:#fafbfc}.default-choice{display:flex!important;align-items:center;gap:7px;margin:0!important;color:var(--teal-dark)!important;cursor:pointer}.default-choice input{accent-color:var(--teal)}.setting-url{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}.partial-hint{color:#b45309;font-weight:800}
.image-lightbox{position:fixed;inset:0;z-index:500;display:grid;place-items:center;padding:24px;background:rgba(0,0,0,.82);cursor:zoom-out}.image-lightbox-inner{position:relative;width:min(94vw,1400px);height:min(92vh,1000px);display:grid;place-items:center;overflow:hidden;touch-action:none;cursor:zoom-in}.image-lightbox-inner.zoomed{cursor:grab}.image-lightbox-inner.dragging{cursor:grabbing}.image-lightbox-inner img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;pointer-events:none;transform-origin:center;transition:transform .08s ease-out;filter:drop-shadow(0 22px 70px rgba(0,0,0,.55))}.image-lightbox-inner.dragging img{transition:none}.image-lightbox-inner button{position:absolute;z-index:3;top:0;right:0;width:42px;height:42px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:22px;cursor:pointer}.image-lightbox-zoom{position:absolute;z-index:2;left:50%;bottom:8px;transform:translateX(-50%);padding:6px 11px;border-radius:999px;background:rgba(0,0,0,.58);color:#fff;font-size:12px;white-space:nowrap;pointer-events:none}
.variant-image-card{position:relative;width:62px;height:62px;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.variant-images .variant-image-card>img{width:100%;height:100%;border:0;border-radius:0}.variant-image-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:3px;background:rgba(7,16,29,.67);opacity:0;transition:.15s}.variant-image-card:hover .variant-image-overlay{opacity:1}.variant-image-overlay button{width:18px;height:24px;padding:0;border:0;border-radius:4px;background:rgba(255,255,255,.16);color:#fff;cursor:pointer;font-size:12px}.variant-images>.upload-card{width:62px;height:62px;min-height:62px;aspect-ratio:1}
@media(max-width:1250px){.translator-add-grid{grid-template-columns:1fr 2fr auto}.setting-row{grid-template-columns:115px minmax(110px,auto) minmax(0,1fr) auto}}

/* 多账号登录、账号切换与菜单权限 */
body.auth-active{min-width:0}.auth-root:empty{display:none}.auth-root{min-height:100vh;display:grid;place-items:center;padding:32px;background:radial-gradient(circle at 18% 12%,rgba(34,120,220,.25),transparent 30%),linear-gradient(135deg,#0b1322 0%,#14243a 52%,#eef2f8 52%,#f7f9fc 100%)}
.auth-shell{width:min(980px,calc(100vw - 48px));min-height:610px;display:grid;grid-template-columns:1fr 1.05fr;overflow:hidden;border-radius:24px;background:#fff;box-shadow:0 32px 100px rgba(4,15,30,.28)}.auth-hero{padding:58px 50px;color:#fff;background-size:cover;background-position:center;display:flex;flex-direction:column;justify-content:space-between;position:relative}.auth-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(6,18,38,.6),rgba(10,35,70,.35));pointer-events:none}.auth-brand{display:flex;align-items:center;gap:15px;position:relative;z-index:1}.auth-brand img{width:58px;height:58px;border-radius:15px;box-shadow:0 14px 34px rgba(0,0,0,.25)}.auth-brand strong{display:block;font-size:25px}.auth-brand small{display:block;margin-top:4px;letter-spacing:.14em;opacity:.75}.auth-hero-content{position:relative;z-index:1}.auth-hero h2{font-size:42px;line-height:1.2;margin:0 0 16px;font-weight:800;text-shadow:0 2px 12px rgba(0,0,0,.3)}.auth-hero p{max-width:330px;line-height:1.8;opacity:.9;font-size:15px}.auth-hero-note{display:none}.auth-card{padding:48px 52px;display:flex;flex-direction:column;justify-content:center}.auth-card h1{margin:0 0 8px;font-size:28px}.auth-subtitle{margin:0 0 25px;color:var(--muted);font-size:13px;line-height:1.6}.auth-form{display:grid;gap:14px}.auth-form .field{margin:0}.auth-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.auth-code-row .btn{height:42px;white-space:nowrap}.auth-links{display:flex;justify-content:space-between;align-items:center;margin-top:16px}.auth-link{border:0;background:transparent;color:#1d6fe0;font-size:13px;font-weight:800;cursor:pointer;padding:5px 0}.auth-hint{padding:10px 12px;border-radius:9px;background:#fff8df;color:#895b08;font-size:12px;line-height:1.55}.auth-error{padding:10px 12px;border-radius:9px;background:#fff1f0;color:#b42318;font-size:12px}.auth-success{padding:10px 12px;border-radius:9px;background:#ecfdf5;color:#047857;font-size:12px}.password-rule{color:#8a93a2;font-size:11px;margin-top:4px}
.top-actions{align-items:center;flex-wrap:wrap}.account-switch{display:flex;align-items:center;gap:7px;height:38px;padding:4px 8px 4px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#667085;font-size:12px;font-weight:800}.account-switch select{height:28px;max-width:150px;border:0;background:#f3f6f8;border-radius:6px;padding:0 8px;color:var(--ink);font-weight:800}.user-chip{display:inline-flex;align-items:center;min-height:34px;padding:5px 10px;border-radius:999px;background:var(--nav);color:#fff;font-size:12px;font-weight:800;white-space:nowrap}.privacy-card b{color:#d7fff9;overflow-wrap:anywhere}
.permission-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.permission-check{display:flex!important;align-items:center;gap:8px;margin:0!important;padding:10px 11px;border:1px solid var(--line);border-radius:9px;background:#fafbfc;color:#4b5565!important;cursor:pointer}.permission-check:has(input:checked){border-color:var(--teal);background:var(--teal-soft);color:var(--teal-dark)!important}.permission-check input{accent-color:var(--teal)}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.account-card{padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}.account-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:14px}.account-card-head h3{margin:0 0 4px;font-size:16px}.account-card-actions{display:flex;gap:6px}.account-permissions{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 14px}.account-permissions .tag.disabled{opacity:.42;text-decoration:line-through}.account-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.account-empty{padding:28px;text-align:center;color:var(--muted)}
.store-permission-list{grid-template-columns:1fr}.store-scope-card{padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff}.store-scope-whole{margin-bottom:8px!important}.marketplace-scope-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:7px}.marketplace-scope-list .permission-check{padding:8px 10px}.marketplace-scope-list input:disabled{opacity:.65}
@media(max-width:900px){.auth-shell{grid-template-columns:1fr;max-width:560px}.auth-hero{display:none}.auth-card{padding:42px}.permission-list,.account-grid{grid-template-columns:1fr 1fr}}

/* V2.3.4 最终覆盖：灯箱固定以当前屏幕中心定位。 */
.image-lightbox{display:block;padding:0;height:100vh;height:100dvh;overflow:hidden}
.image-lightbox-inner{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(calc(100vw - 48px),1400px);height:min(calc(100vh - 48px),1000px);height:min(calc(100dvh - 48px),1000px)}

/* V2.3.5：编辑页使用主区域可用宽度，去掉 1320px 居中造成的大块两侧留白。 */
.edit-shell{width:100%;max-width:none;margin:20px 0 0}

/* V2.5：工作页签与紧凑产品基本信息。 */
.workspace-tabs{display:flex;align-items:flex-end;gap:2px;min-height:42px;margin:0 -28px;padding:0 28px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;overflow-x:auto}.workspace-tab{display:flex;align-items:center;gap:7px;height:41px;padding:0 14px;border:0;border-bottom:2px solid transparent;background:transparent;color:#8a93a2;white-space:nowrap;cursor:pointer;font:inherit}.workspace-tab:hover{color:var(--ink);background:#f7fafb}.workspace-tab.active{border-bottom-color:var(--teal);color:var(--teal-dark);font-weight:800}.workspace-tab i{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;font-style:normal;color:#8a93a2}.workspace-tab i:hover{background:#e7ecef;color:#dc2626}
.status-red{background:#feeceb!important;color:#c62828!important}.status-yellow{background:#fff5d9!important;color:#9a6700!important}
.edit-page-return{display:flex;align-items:center;margin-bottom:10px}.edit-page-return+.stepper{margin-bottom:12px}.basic-info-layout{display:grid;grid-template-columns:minmax(320px,1fr) auto;gap:8px 18px;align-items:end}.basic-info-layout .purchase-link-field{margin:0}.compact-basic-grid{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.compact-basic-grid .compact-field{width:100px;min-width:100px;margin:0}.compact-basic-grid .compact-field .control{width:100px;max-width:100px}.upc-mode-field{grid-column:1/-1;margin:0}.upc-mode-field>label{margin-bottom:5px}.basic-info-layout .purchase-link-row{max-width:none}
@media(max-width:1100px){.basic-info-layout{grid-template-columns:1fr}.compact-basic-grid{grid-column:1}.workspace-tabs{margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px}}

/* V2.4：店铺授权、多站点价格与多语言编辑。 */
.side-store-switch{display:grid;gap:6px;margin:0 14px 16px;padding:10px 11px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.06);color:#9fb0c4;font-size:11px}.side-store-switch select{width:100%;height:34px;padding:0 9px;border:1px solid rgba(255,255,255,.13);border-radius:7px;background:#18283e;color:#fff;font-weight:700;overflow:hidden;text-overflow:ellipsis}
.store-toolbar,.store-card{display:flex;align-items:center;justify-content:space-between;gap:14px}.store-toolbar{margin:14px 0}.store-grid{display:grid;gap:10px}.store-card{padding:13px 14px;border:1px solid var(--line);border-radius:10px;background:#fff}.store-card.active{border-color:var(--teal);background:var(--teal-soft)}.store-card-actions{display:flex;align-items:center;gap:10px}.danger-link{color:#e34242!important}.btn-small{min-height:32px!important;height:32px!important;padding:0 11px!important}
.country-price-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-top:14px}.country-price-grid>div{display:grid;grid-template-columns:1fr;gap:4px;padding:12px 16px;border-right:1px solid var(--line);background:#fff}.country-price-grid>div:last-child{border-right:0}.country-price-grid small{color:var(--muted)}.country-price-grid strong,.country-price-grid b{font-size:15px}.country-price-grid b{color:var(--teal-dark)}
.country-content-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.country-content-tab{display:flex;align-items:center;gap:7px;min-height:38px;padding:7px 14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);cursor:pointer}.country-content-tab small{color:var(--muted)}.country-content-tab.active{border-color:var(--teal);background:var(--teal-soft);color:var(--teal-dark);font-weight:800}
.translation-confirm-modal{width:min(1080px,calc(100vw - 48px))}.translation-confirm-modal .modal-body{max-height:min(68vh,680px)}.translation-preview{display:grid;gap:11px}.translation-preview-row{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:start;gap:16px}.translation-preview-row strong{padding-top:11px;text-align:right}.translation-preview-row textarea{min-height:76px;resize:vertical}
.store-permission-list{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:900px){.translation-preview-row{grid-template-columns:1fr}.translation-preview-row strong{text-align:left;padding:0}.country-price-grid{grid-template-columns:1fr 1fr}}

/* V2.5.0：工作页签、紧凑编辑器、多国家持久化和采集任务状态。 */

/* V2.6.0：腾讯系 B 端圆角体系、顶部工作页签、统一下拉与列表分页。 */
:root{--ui-radius:8px;--ui-radius-lg:12px;--ui-green-soft:#e8f8f5}
.main{padding:0 22px 38px}.topbar{min-height:54px;justify-content:flex-end;border-bottom:1px solid var(--line)}.page-heading{display:none!important}.top-actions{justify-content:flex-end}
.workspace-tabbar{height:58px;margin:0 -22px;display:grid;grid-template-columns:38px minmax(0,1fr) 38px;align-items:center;gap:4px;padding:8px 16px;border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:80}.workspace-tabs{min-height:42px;margin:0;padding:0;gap:8px;border:0;background:transparent;overflow-x:hidden;scroll-behavior:smooth;align-items:center}.workspace-tab{height:36px;flex:0 0 auto;padding:0 13px;border:1px solid transparent;border-radius:var(--ui-radius);background:#f4f6f8;color:#667085}.workspace-tab:hover{background:#edf2f2;color:#344054}.workspace-tab.active{border-color:#b8e8df;background:var(--ui-green-soft);color:#087f79;font-weight:800}.workspace-tab i{margin-left:2px}.workspace-tab-arrow{width:34px;height:34px;border:1px solid #dce2e8;border-radius:var(--ui-radius);background:#fff;color:#667085;font-size:22px;line-height:1;cursor:pointer}.workspace-tab-arrow:hover{border-color:#9fdcd3;background:var(--ui-green-soft);color:#087f79}
.btn,.control,.panel,.edit-card,.section-title,.token-box,.batch-bar,.modal,.modal-close,.country-check,.store-tab,.store-card,.store-info-table,.image-card,.upload-card,.thumb,.thumb-fallback,.account-switch,.side-store-switch select{border-radius:var(--ui-radius)}.panel,.edit-card,.modal,.auth-shell{border-radius:var(--ui-radius-lg)}
.control{padding-left:12px;padding-right:12px}.control[type=date]{padding-right:10px}select.control{appearance:none;-webkit-appearance:none;padding-left:12px;padding-right:38px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:14px}.side-store-switch select{appearance:none;-webkit-appearance:none;padding-left:12px;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:14px}.control option{padding:9px 12px;color:#344054;background:#fff}
.password-input-wrap{position:relative}.password-input-wrap .control{padding-right:46px}.password-eye{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:34px;height:32px;border:0;border-radius:7px;background:transparent;color:#98a2b3;cursor:pointer;font-size:18px}.password-eye:hover,.password-eye.visible{background:var(--ui-green-soft);color:#087f79}.remember-login{display:flex;align-items:center;gap:8px;color:#475467;font-size:13px;cursor:pointer}.remember-login input{width:16px;height:16px;accent-color:var(--teal)}
.page-summary{display:none!important}.filter-panel{margin-top:12px}.pager{min-height:58px;justify-content:flex-start;gap:12px;flex-wrap:wrap;font-size:13px}.pager-size{appearance:none;-webkit-appearance:none;height:34px;min-width:104px;padding:0 34px 0 10px;border:1px solid #dce2e8;border-radius:var(--ui-radius);background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center}.pager-pages{display:flex;align-items:center;gap:6px}.pager-button{min-width:34px;height:34px;padding:0 9px;border:1px solid transparent;border-radius:var(--ui-radius);background:#f4f6f8;color:#475467;cursor:pointer}.pager-button:hover:not(:disabled){background:#eaf5f3;color:#087f79}.pager-button.active{background:var(--teal);color:#fff}.pager-button:disabled{opacity:.38;cursor:not-allowed}.pager-jump{display:flex;align-items:center;gap:7px}.pager-jump input{width:58px;height:34px;border:1px solid #dce2e8;border-radius:var(--ui-radius);padding:0 8px;text-align:center}
.edit-heading-row{display:flex;align-items:center;gap:10px;margin-bottom:12px}.edit-heading-row .edit-page-return{margin:0}.edit-heading-row .stepper{flex:1;margin:0}.edit-heading-actions{display:flex;gap:8px;margin-left:auto}.edit-footer{display:flex}.variant-price{font-variant-numeric:tabular-nums;font-weight:750;white-space:nowrap}.variant-price.latest{color:#087f79}.variant-price.adjust.positive{color:#047857}.variant-price.adjust.negative{color:#c62828}
@media(max-width:1100px){.workspace-tabbar{margin-left:-18px;margin-right:-18px}.edit-heading-row{align-items:flex-start;flex-wrap:wrap}.edit-heading-actions{margin-left:0}}
.side-store-switch{display:block;margin:0 0 13px;padding:0;border:0;border-radius:0;background:transparent}.side-store-switch select{height:36px;border-color:rgba(255,255,255,.18);background:#18283e;padding:0 10px}
.store-tabs{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.store-tab{min-height:34px;padding:7px 14px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer;font-size:12px;font-weight:750}.store-tab:hover{border-color:var(--teal)}.store-tab.active{border-color:var(--teal);background:var(--teal);color:#fff}.store-info-table{border:1px solid var(--line);border-radius:10px;overflow:hidden}.store-info-head,.store-info-row{display:grid;grid-template-columns:1.05fr .7fr 1.55fr 1.25fr 1fr .65fr .55fr;align-items:center;gap:0}.store-info-head{background:#f7f9fb;color:#7c8492;font-size:10px;font-weight:800}.store-info-head span,.store-info-row>span,.store-info-row>strong{min-width:0;padding:10px 12px;border-right:1px solid var(--line);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-info-head span:last-child,.store-info-row>*:last-child{border-right:0}.store-info-row{font-size:11px}.store-info-row .status{justify-self:start;margin-left:10px}
.page-summary{gap:9px;margin:12px 0 10px}.stat{min-height:78px;padding:10px 14px;border-radius:10px}.stat label{margin-bottom:3px}.stat strong{font-size:20px}.stat small{margin-top:2px}.filter-panel{margin-top:10px}.filter-panel .panel-body{padding:12px 14px}.filter-layout{display:flex;align-items:flex-end;gap:12px}.filter-layout .filter-grid{flex:1;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px 10px}.filter-layout .field{margin-bottom:0}.filter-layout .field label{margin-bottom:4px}.filter-layout .control{min-height:36px;height:36px}.filter-layout .filter-actions{flex:0 0 auto;margin:0}.panel{margin-top:10px}.toolbar{padding:9px 13px}.toolbar-tail{display:flex;align-items:center;gap:10px}.toolbar .btn{min-height:34px;padding:7px 12px}.pager{padding:8px 13px}
.country-price-table-wrap{margin-top:12px;border:1px solid var(--line);border-radius:9px;overflow:hidden}.country-price-table{min-width:0}.country-price-table th,.country-price-table td{text-align:center;border-right:1px solid var(--line)}.country-price-table th:last-child,.country-price-table td:last-child{border-right:0}.country-price-table td{padding:9px 12px}.country-price-table tbody tr:last-child td{border-bottom:0}
.list-table.density-compact th{padding-top:7px;padding-bottom:7px}.list-table.density-compact td{padding-top:6px;padding-bottom:6px}.list-table.density-compact .thumb,.list-table.density-compact .thumb-fallback{width:38px;height:38px}.list-table.density-compact .product-info{min-width:220px}.list-table.density-medium th{padding-top:9px;padding-bottom:9px}.list-table.density-medium td{padding-top:9px;padding-bottom:9px}.list-table.density-medium .thumb,.list-table.density-medium .thumb-fallback{width:44px;height:44px}.list-table.density-comfortable th{padding-top:13px;padding-bottom:13px}.list-table.density-comfortable td{padding-top:15px;padding-bottom:15px}.list-table.density-comfortable .thumb,.list-table.density-comfortable .thumb-fallback{width:56px;height:56px}
.list-collection.hide-product :is(th,td):nth-child(2),.list-collection.hide-country :is(th,td):nth-child(3),.list-collection.hide-status :is(th,td):nth-child(4),.list-collection.hide-draft :is(th,td):nth-child(5),.list-collection.hide-variants :is(th,td):nth-child(6),.list-collection.hide-time :is(th,td):nth-child(7){display:none}
.list-drafts.hide-product :is(th,td):nth-child(2),.list-drafts.hide-country :is(th,td):nth-child(3),.list-drafts.hide-status :is(th,td):nth-child(4),.list-drafts.hide-sku :is(th,td):nth-child(5),.list-drafts.hide-cost :is(th,td):nth-child(6),.list-drafts.hide-variants :is(th,td):nth-child(7),.list-drafts.hide-upc :is(th,td):nth-child(8),.list-drafts.hide-time :is(th,td):nth-child(9){display:none}
.list-products.hide-product :is(th,td):nth-child(2),.list-products.hide-country :is(th,td):nth-child(3),.list-products.hide-sku :is(th,td):nth-child(4),.list-products.hide-cost :is(th,td):nth-child(5),.list-products.hide-variants :is(th,td):nth-child(6),.list-products.hide-upc :is(th,td):nth-child(7),.list-products.hide-listing :is(th,td):nth-child(8),.list-products.hide-time :is(th,td):nth-child(9){display:none}

table[data-list-scope]{table-layout:auto;width:100%;min-width:1120px}
table[data-list-scope] :is(th,td):first-child{width:44px;min-width:44px;max-width:44px;text-align:center}
table[data-list-scope] :is(th,td):nth-child(2){width:340px;min-width:340px;max-width:340px}
table[data-list-scope] .product-info{min-width:0;width:100%}
table[data-list-scope] .product-copy{min-width:0;max-width:255px}
table[data-list-scope] .product-title{max-width:255px}
table[data-list-scope] :is(th,td):last-child{min-width:210px}

.image-lightbox{position:fixed;inset:0;z-index:500;display:grid;padding:0;place-items:center;background:rgba(8,13,22,.84);overflow:hidden;cursor:default}
.image-lightbox-inner{position:relative;left:auto;top:auto;transform:none;width:100vw;height:100vh;height:100dvh;display:grid;place-items:center;overflow:hidden;touch-action:none;cursor:grab}
.image-lightbox-inner.dragging{cursor:grabbing}
.image-lightbox-inner img{width:auto;height:auto;max-width:min(74vw,1120px);max-height:74vh;object-fit:contain;pointer-events:none;transform-origin:center center;transition:transform .08s ease-out;filter:drop-shadow(0 22px 70px rgba(0,0,0,.55))}
.image-lightbox-inner.dragging img{transition:none}
.image-lightbox-inner .image-lightbox-close{position:fixed;z-index:5;top:22px;right:24px;width:44px;height:44px;border:1px solid rgba(255,255,255,.32);border-radius:50%;background:rgba(22,30,42,.72);color:#fff;font-size:24px;cursor:pointer}
.image-lightbox-tools{position:fixed;z-index:5;left:50%;bottom:24px;transform:translateX(-50%);display:flex;align-items:center;gap:4px;padding:7px 9px;border-radius:12px;background:rgba(24,31,43,.76);box-shadow:0 10px 28px rgba(0,0,0,.28);backdrop-filter:blur(8px)}
.image-lightbox-inner .image-lightbox-tools button{position:static;width:auto;min-width:36px;height:34px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#fff;font-size:15px;cursor:pointer}
.image-lightbox-inner .image-lightbox-tools button:hover{background:rgba(255,255,255,.15)}
.image-lightbox-tools span{min-width:58px;color:#fff;text-align:center;font-size:12px}
.density-options{display:flex;gap:8px}.column-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.list-settings-modal{width:min(680px,calc(100vw - 40px))}
@media(max-width:1250px){.filter-layout{align-items:stretch;flex-direction:column}.filter-layout .filter-actions{align-self:flex-end}.store-info-head,.store-info-row{grid-template-columns:1fr 1fr 1.5fr 1fr}.store-info-head span:nth-child(4),.store-info-row>*:nth-child(4),.store-info-head span:nth-child(5),.store-info-row>*:nth-child(5),.store-info-head span:nth-child(6),.store-info-row>*:nth-child(6){display:none}}

/* V2.6.1：顶部操作区、固定编辑操作栏及统一 B 端下拉组件。 */
.topbar-hidden{display:none!important}
#exportDataBtn,#collectProductBtn{display:none!important}
.workspace-tabbar{grid-template-columns:38px minmax(180px,1fr) 38px auto;height:62px;padding-top:9px;padding-bottom:9px}
.workspace-tabbar .top-actions{min-width:max-content;display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:8px;flex-wrap:nowrap}
.workspace-tabbar .top-actions>.btn,.workspace-tabbar .user-chip,.workspace-tabbar .db-sync{height:36px;min-height:36px;white-space:nowrap}
.workspace-tabbar .top-actions>.btn{min-width:64px;padding:0 14px}
.workspace-tabbar .user-chip{min-width:132px;justify-content:center;border-radius:var(--ui-radius)}
.workspace-tabbar .db-sync{min-width:108px;justify-content:center;border-radius:var(--ui-radius)}
.workspace-tabbar .account-switch{height:36px;flex-wrap:nowrap;border-radius:var(--ui-radius)}

.edit-heading-row{position:sticky;top:62px;z-index:70;min-height:58px;margin:0 0 12px;padding:10px 0;background:var(--soft);box-shadow:0 7px 12px rgba(22,31,50,.035)}
.edit-heading-row .edit-page-return{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.edit-heading-row .edit-page-return .btn{height:38px;min-width:92px;padding:0 14px}
.edit-heading-row .stepper{min-width:300px}

.sdm-select{position:relative;width:100%;min-width:0}
.sdm-native-select{position:absolute!important;width:1px!important;height:1px!important;min-height:1px!important;margin:0!important;padding:0!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%)!important}
.sdm-select-trigger{position:relative;width:100%;height:42px;padding:0 38px 0 12px;border:1px solid #d8dee7;border-radius:var(--ui-radius);background:#fff;color:#344054;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;transition:border-color .16s,box-shadow .16s,background .16s}
.sdm-select-trigger::after{content:"";position:absolute;right:14px;top:50%;width:7px;height:7px;border-right:1.5px solid #667085;border-bottom:1.5px solid #667085;transform:translateY(-68%) rotate(45deg);transition:transform .16s}
.sdm-select-trigger:hover{border-color:#9bd8d0;background:#fbfefd}
.sdm-select.open>.sdm-select-trigger{border-color:var(--teal);box-shadow:0 0 0 3px rgba(15,170,161,.12)}
.sdm-select.open>.sdm-select-trigger::after{transform:translateY(-28%) rotate(225deg)}
.sdm-select-trigger.placeholder{color:#98a2b3}
.sdm-select-trigger:disabled{background:#f5f7fa;color:#98a2b3;cursor:not-allowed}
.sdm-select-menu{display:none;position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:520;max-height:270px;padding:5px;overflow:auto;border:1px solid #e1e6ed;border-radius:10px;background:#fff;box-shadow:0 12px 32px rgba(16,24,40,.16)}
.sdm-select.open>.sdm-select-menu{display:grid;gap:2px}
.sdm-select-option{width:100%;min-height:36px;padding:7px 10px;border:0;border-radius:7px;background:transparent;color:#475467;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;cursor:pointer}
.sdm-select-option:hover{background:#f0f8f6;color:#087f79}
.sdm-select-option.selected{background:var(--ui-green-soft);color:#087f79;font-weight:800}
.sdm-select-option i{color:var(--teal);font-style:normal}
.sdm-select-option:disabled{color:#b2b8c2;cursor:not-allowed}
.sdm-select-dark .sdm-select-trigger{height:36px;border-color:rgba(255,255,255,.18);background:#18283e;color:#fff}
.sdm-select-dark .sdm-select-trigger::after{border-color:#d7e1ee}
.sdm-select-dark .sdm-select-menu{border-color:#34445a;background:#18283e;box-shadow:0 12px 30px rgba(0,0,0,.34)}
.sdm-select-dark .sdm-select-option{color:#d6dfeb}
.sdm-select-dark .sdm-select-option:hover,.sdm-select-dark .sdm-select-option.selected{background:#23425a;color:#58e1d4}
.filter-layout .sdm-select-trigger{height:36px}
.panel:has(.pager){overflow:visible}.panel:has(.pager) .table-wrap{overflow-x:auto;overflow-y:hidden}
.pager{position:relative;z-index:40;overflow:visible}.pager>.sdm-select{width:auto;min-width:104px;z-index:560}.pager>.sdm-select .sdm-select-trigger{height:34px}.pager>.sdm-select .sdm-select-menu{top:auto;bottom:calc(100% + 6px)}
.account-switch>.sdm-select{width:150px}.account-switch>.sdm-select .sdm-select-trigger{height:28px;border:0;background:#f3f6f8;padding-left:9px}
.filter-panel,.edit-card{overflow:visible}
.btn,.control,.sdm-select-trigger,.sdm-select-option,.workspace-tab,.workspace-tab-arrow,.pager-button,.pager-jump input,.account-switch,.user-chip,.db-sync{border-radius:var(--ui-radius)}
@media(max-width:1280px){.workspace-tabbar .account-switch{display:none}.workspace-tabbar .user-chip{min-width:118px}.workspace-tabbar{grid-template-columns:36px minmax(140px,1fr) 36px auto;padding-left:10px;padding-right:10px}}

/* V2.8.1：沙盒试传状态和失败原因。 */
.link-btn:disabled{opacity:.38;cursor:not-allowed;text-decoration:none}.upload-failure-box{margin-bottom:12px;padding:13px 14px;border:1px solid #f0c4c0;border-radius:var(--ui-radius);background:#fff7f6;color:#b42318;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.upload-result-list{display:grid;gap:6px;margin-top:13px}.upload-result-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fafbfc;font-size:12px}.list-products :is(th,td):last-child{min-width:330px}

/* V2.8.0：Amazon SP-API 沙盒设置。 */
.api-settings-shell{width:100%;max-width:none}.api-settings-card{padding:22px}.api-environment-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 22px;padding:15px 16px;border:1px solid #d7ebe8;border-radius:var(--ui-radius);background:#f6fcfb}.api-environment-row>div{display:flex;align-items:center;gap:10px;min-width:0}.api-environment-row strong{font-size:14px}.api-environment-row small{color:#667085}.api-env-badge{padding:5px 9px;border-radius:6px;background:#dff7f3;color:#087f79;font-size:11px;font-weight:900;letter-spacing:.06em}.api-loading{color:#087f79;font-size:12px;font-weight:700}.api-settings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.api-secret-wrap{position:relative}.api-secret-wrap .control{padding-right:48px}.api-secret-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:34px;height:32px;border:0;border-radius:7px;background:transparent;color:#98a2b3;cursor:pointer;font-size:17px}.api-secret-eye:hover,.api-secret-eye.visible{background:var(--ui-green-soft);color:#087f79}.field-help{display:block;margin-top:6px;color:#7a8493;font-size:11px;line-height:1.55}.api-connection{display:flex;align-items:flex-start;gap:11px;margin-top:4px;padding:14px 15px;border:1px solid #dce3ea;border-radius:var(--ui-radius);background:#f8fafc}.api-connection-dot{width:10px;height:10px;flex:0 0 auto;margin-top:5px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.14)}.api-connection strong{font-size:13px}.api-connection p{margin:5px 0 0;color:#667085;font-size:12px;line-height:1.6}.api-connection small{display:block;margin-top:5px;color:#98a2b3;font-size:11px}.api-connection.success{border-color:#b9e7d8;background:#f1fbf7}.api-connection.success .api-connection-dot{background:#10a36f;box-shadow:0 0 0 4px rgba(16,163,111,.14)}.api-connection.failed{border-color:#f0c4c0;background:#fff7f6}.api-connection.failed .api-connection-dot{background:#d92d20;box-shadow:0 0 0 4px rgba(217,45,32,.12)}.api-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.api-guide-card ol{margin:0;padding-left:22px;color:#596273;font-size:13px;line-height:1.9}.api-guide-card li+li{margin-top:5px}@media(max-width:1180px){.api-settings-grid{grid-template-columns:1fr}.api-settings-grid .span-2,.api-settings-grid .span-3{grid-column:1}.api-environment-row>div{align-items:flex-start;flex-wrap:wrap}.api-environment-row small{width:100%}}

/* V2.8.1：采集分类路径与 Amazon Product Type Definitions 下拉。 */
.category-select-wrap{position:relative;min-width:0}.category-select-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.category-select-row .btn{white-space:nowrap}.category-source-meta{margin-top:7px;color:#7a8798;font-size:12px;line-height:1.5}.category-source-meta .error-text{color:#dc5454}.category-path-results:not(:empty){position:absolute;z-index:30;top:46px;left:0;right:0;max-height:310px;overflow:auto;padding:6px;border:1px solid #dce1e8;border-radius:9px;background:#fff;box-shadow:0 12px 30px rgba(25,40,60,.16)}.category-path-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border:0;border-radius:7px;background:#fff;color:#344054;text-align:left;cursor:pointer}.category-path-option:hover{background:var(--teal-soft);color:var(--teal-dark)}.category-path-option span{overflow-wrap:anywhere}.category-path-option small{flex:0 0 auto;color:#8a93a2}.category-search-message{padding:12px;color:#7a8798;font-size:12px}.category-search-message.error-text{color:#dc5454}@media(max-width:900px){.category-select-row{grid-template-columns:1fr}.category-path-results:not(:empty){top:90px}}
.product-type-chip{margin:3px 6px 3px 0;padding:4px 8px;border:1px solid #d9e1e8;border-radius:7px;background:#fff;color:#475467;cursor:pointer;font:inherit;font-size:11px}.product-type-chip:hover,.product-type-chip.recommended{border-color:#91d8cf;background:var(--teal-soft);color:var(--teal-dark)}.category-source-meta.error-text{color:#dc5454}
.product-type-combobox{position:relative}.product-type-search-box{display:flex;align-items:stretch}.product-type-search-box .control{padding-right:46px;border-radius:8px}.product-type-search-button{width:42px;margin-left:-42px;border:0;border-left:1px solid var(--line);border-radius:0 8px 8px 0;background:#fff;color:#344054;cursor:pointer;font-size:20px;line-height:1}.product-type-search-button:hover{background:var(--teal-soft);color:var(--teal-dark)}.product-type-dropdown.open{position:absolute;z-index:45;top:42px;left:0;right:0;max-height:340px;overflow:auto;border:1px solid #d8e0e8;border-radius:9px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.16)}.product-type-result-count,.product-type-message{padding:10px 13px;color:#667085;font-size:11px;background:#f8fafc}.product-type-message.error-text{color:#dc5454}.product-type-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:14px;padding:10px 13px;border:0;border-top:1px solid #edf0f3;background:#fff;text-align:left;cursor:pointer}.product-type-option:hover{background:var(--teal-soft)}.product-type-option span{display:flex;min-width:0;flex-direction:column;gap:3px}.product-type-option strong{color:#243247;font-size:12px}.product-type-option small{overflow:hidden;color:#7a8798;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.product-type-option em{flex:0 0 auto;padding:4px 8px;border-radius:6px;background:#eef2f6;color:#344054;font-size:10px;font-style:normal}.product-type-option:hover em{background:var(--teal);color:#fff}
.schema-default-panel{padding:14px;border:1px solid var(--line);border-radius:10px;background:#fbfcfd}.schema-default-toolbar{display:grid;grid-template-columns:180px minmax(260px,1fr) auto;gap:10px;align-items:end;margin-bottom:12px}.schema-default-toolbar .field{margin:0}.schema-default-toolbar .btn{height:38px;white-space:nowrap}.schema-default-grid{margin-top:12px}.schema-default-grid .field small{display:block;max-height:34px;margin-top:5px;overflow:hidden;color:#8a93a2;font-size:9px;line-height:1.5}.schema-default-grid .field label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:900px){.schema-default-toolbar{grid-template-columns:1fr}.schema-default-toolbar .btn{justify-self:start}}

/* V2.9.2：按国家隔离产品类型，并压缩产品编辑信息布局。 */
.country-upc-line{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}.country-upc-line .field{margin:0}.country-select-field{min-width:0;flex:1}.country-upc-line .upc-mode-field{flex:0 0 auto;grid-column:auto}.basic-info-layout{grid-template-columns:minmax(300px,33.333%) minmax(0,1fr)}.purchase-link-field{max-width:100%}.foreign-price-editor{display:flex;align-items:center;justify-content:center;gap:5px;max-width:170px;margin:0 auto}.foreign-price-editor span{flex:0 0 auto;color:#667085;font-weight:700}.foreign-price-editor .control{min-height:34px;height:34px;padding:5px 8px;text-align:right;font-variant-numeric:tabular-nums}.country-content-tab{justify-content:center;min-width:66px}.compact-variant-builder{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.compact-variant-builder .token-box{min-width:0}.compact-variant-builder .add-line{flex-wrap:nowrap}.compact-variant-builder .add-line .control{min-width:0}.compact-variant-builder .add-line .btn{flex:0 0 auto;white-space:nowrap}@media(max-width:1100px){.country-upc-line{align-items:flex-start;flex-direction:column}.basic-info-layout{grid-template-columns:1fr}.compact-variant-builder{grid-template-columns:1fr 1fr}}

/* V2.9.0：生产环境凭证与正式上传安全提示。 */
.api-environment-tabs{display:flex;gap:8px;margin:0 0 14px}.api-production-warning{border-color:#f3c5c0!important;background:#fff7f6!important;color:#9f2d25!important}.api-environment-tabs .btn{min-width:108px}

/* V2.10：AI 与翻译服务商配置、后端用量统计。 */
.service-settings-shell{display:grid;width:100%;max-width:none;gap:14px}.service-provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.provider-header{display:flex;align-items:flex-end;gap:10px;margin:0 0 16px}.provider-header .field{width:min(260px,100%);margin:0}.service-status{margin-bottom:3px;padding:7px 9px;border-radius:8px;font-size:10px;font-weight:800;white-space:nowrap}.service-status.ready{color:#087f79;background:#dff7f3}.service-status.missing{color:#b54708;background:#fff3e0}.provider-header>.btn{margin:0 0 1px auto;white-space:nowrap}.provider-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.provider-config-grid .span-2{grid-column:span 2}.service-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.service-toggle{display:flex;align-items:center;gap:8px;color:#667085;font-size:11px;cursor:pointer}.service-toggle input{position:absolute;opacity:0;pointer-events:none}.service-toggle span{position:relative;width:38px;height:22px;border-radius:999px;background:#cbd5e1;transition:.2s}.service-toggle span:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.2s}.service-toggle input:checked+span{background:var(--teal)}.service-toggle input:checked+span:after{transform:translateX(16px)}.service-toggle b{font-weight:700;white-space:nowrap}.service-save-row{display:flex;align-items:center;justify-content:flex-end;gap:18px}.service-save-row span{color:var(--muted);font-size:11px}.usage-toolbar{display:flex;align-items:flex-end;gap:10px;margin-bottom:14px}.usage-toolbar .field{width:190px;margin:0}.usage-toolbar small{margin:0 0 10px;color:var(--muted)}.usage-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:15px}.usage-summary>div{padding:13px;border:1px solid var(--line);border-radius:var(--ui-radius);background:#fbfcfd}.usage-summary span{display:block;color:var(--muted);font-size:11px}.usage-summary strong{display:block;margin-top:5px;font-size:18px}.usage-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:var(--ui-radius)}.usage-table{width:100%;border-collapse:collapse;white-space:nowrap}.usage-table th,.usage-table td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;font-size:11px}.usage-table th{background:#f7f9fb;color:#667085}.usage-table td:last-child{white-space:normal;min-width:220px}.usage-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;color:var(--muted);font-size:11px}.usage-pagination>div{display:flex;gap:8px}.active-service-pills{display:flex;gap:6px;margin-left:auto}.active-service-pills span{padding:6px 9px;border-radius:8px;background:var(--ui-green-soft);color:#087f79;font-size:11px;font-weight:700}@media(max-width:1250px){.service-provider-grid{grid-template-columns:1fr}.provider-config-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.usage-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.provider-header,.usage-toolbar{align-items:stretch;flex-direction:column}.provider-header>.btn{margin:0}.provider-config-grid{grid-template-columns:1fr}.provider-config-grid .span-2{grid-column:1}.usage-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.active-service-pills{display:none}.usage-pagination{align-items:flex-start;flex-direction:column}}
.service-load-error{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#475569;text-align:center}.service-load-error strong{color:#b42318;font-size:16px}

/* V2.10.6：产品编辑页控件高度统一、内容垂直居中与水平对齐 */
.country-selector .country-check{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:38px!important;min-height:38px!important;padding:0 14px!important}
.compact-upc-row{height:38px!important;display:flex!important;align-items:stretch!important;gap:8px!important;flex-wrap:nowrap!important}
.compact-upc-row .country-check{height:38px!important;padding:0 12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.country-link-line .control{height:38px!important;min-height:38px!important}
.purchase-link-row{align-items:stretch!important}
.purchase-link-button{height:38px!important;min-height:38px!important}
/* 品牌行：强制 grid 等宽布局，固定间距 */
.compact-basic-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:0 12px!important}
.compact-basic-grid .compact-field{width:100%!important;min-width:0!important;margin:0!important}
.compact-basic-grid .compact-field .control{width:100%!important;max-width:none!important;height:38px!important;min-height:38px!important}
/* 售价计算：4列等宽，输入框与按钮统一42px */
.edit-card .form-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0 12px!important;align-items:end!important}
.edit-card .form-grid .control{height:42px!important;min-height:42px!important}
.edit-card .form-grid .btn{height:42px!important;min-height:42px!important;width:100%!important}

/* V2.10.7：登录页蓝色抽象背景 + 标题字体风格调整 */
.auth-root{background:linear-gradient(135deg,rgba(6,16,36,.6),rgba(12,36,72,.35)),url("assets/page-bg.png") center/cover no-repeat,#0a1628!important}
.auth-hero h2{font-style:italic;font-weight:900;font-size:46px;line-height:1.15;letter-spacing:1px;text-shadow:0 4px 20px rgba(0,0,0,.45)}
.auth-hero-content{margin-top:auto}
.auth-brand{margin-bottom:auto}

/* V2.10.8：下拉框层级、图片尺寸、弹窗、页签等批量修复 */
.sdm-select-menu{z-index:9999!important}
.product-thumb-button{width:52px!important;height:52px!important}
.product-thumb-button img{width:100%!important;height:100%!important;object-fit:contain!important}
.modal.detail-modal{width:min(1100px,calc(100vw - 60px))!important}
.detail-body{grid-template-columns:minmax(380px,42%) minmax(0,1fr)!important}
.detail-hero{height:420px!important}
.modal.performance-modal{width:min(820px,calc(100vw - 60px))!important}
.workspace-tab{display:inline-flex!important;align-items:center!important;gap:6px!important}
.brand-logo{width:100%!important;max-width:180px;height:auto!important;object-fit:contain}
.image-card[draggable="true"]{cursor:grab;transition:border-color .15s,box-shadow .15s,transform .15s}
.image-card[draggable="true"]:active,.image-card.dragging{cursor:grabbing}
.image-card.dragging{opacity:.45;transform:scale(.98)}
.image-card.drag-over{border-color:var(--teal)!important;box-shadow:0 0 0 3px rgba(19,180,170,.18)}

/* V2.10.9：下拉框遮挡、页签、列宽、权限标签等修复 */
.panel.filter-panel, .panel.filter-panel .panel-body, .filter-layout, .filter-grid{overflow:visible!important}
.filter-panel .sdm-select{position:relative;z-index:20}
.workspace-tab i{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:18px;height:18px;margin-left:4px;font-style:normal;font-size:14px;line-height:1;border-radius:50%;background:transparent;color:inherit;opacity:.6;cursor:pointer}
.workspace-tab i:hover{opacity:1;background:rgba(0,0,0,.08)}
.orders-table th:nth-child(2){width:280px!important}
.orders-table th:nth-child(3){width:90px!important}
.store-info-head,.store-info-row{grid-template-columns:1.1fr 0.7fr 1.6fr 0.8fr 1.1fr 0.8fr 1.3fr!important;gap:0 12px!important}
.account-table td:nth-child(5){display:flex!important;flex-wrap:wrap!important;gap:4px 6px!important;align-content:flex-start!important;max-width:none!important}
.account-table :is(th,td):nth-child(5){width:220px!important;max-width:none!important}

/* V2.10.10：订单列宽、列表设置对齐、筛选区域修复 */
.orders-table{min-width:1400px;table-layout:fixed}
.orders-table th:nth-child(1){width:40px!important}
.orders-table th:nth-child(2){width:100px!important}
.orders-table th:nth-child(3){width:70px!important}
.orders-table th:nth-child(4){width:200px!important}
.orders-table th:nth-child(5){width:80px!important}
.orders-table th:nth-child(6){width:100px!important}
.orders-table th:nth-child(7){width:100px!important}
.orders-table th:nth-child(8){width:100px!important}
.orders-table th:nth-child(9){width:90px!important}
.orders-table th:nth-child(10){width:100px!important}
.orders-table th:nth-child(11){width:100px!important}
.orders-table th:nth-child(12){width:120px!important}
.orders-table th:nth-child(13){width:90px!important}
.orders-table th:nth-child(14){width:100px!important}
.orders-table td{padding:10px 8px!important}
/* 订单表格列对齐 */
.orders-table th:nth-child(2),.orders-table td:nth-child(2),
.orders-table th:nth-child(3),.orders-table td:nth-child(3),
.orders-table th:nth-child(4),.orders-table td:nth-child(4),
.orders-table th:nth-child(14),.orders-table td:nth-child(14){text-align:left!important}
.orders-table th:nth-child(5),.orders-table td:nth-child(5),
.orders-table th:nth-child(13),.orders-table td:nth-child(13){text-align:center!important}
.orders-table th:nth-child(6),.orders-table td:nth-child(6),
.orders-table th:nth-child(7),.orders-table td:nth-child(7),
.orders-table th:nth-child(8),.orders-table td:nth-child(8),
.orders-table th:nth-child(9),.orders-table td:nth-child(9),
.orders-table th:nth-child(10),.orders-table td:nth-child(10),
.orders-table th:nth-child(11),.orders-table td:nth-child(11),
.orders-table th:nth-child(12),.orders-table td:nth-child(12){text-align:right!important}
.density-options .country-check{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:8px 14px!important}
.density-options .country-check input{margin:0!important;width:14px!important;height:14px!important}
.filter-layout .control{height:36px!important;min-height:36px!important;box-sizing:border-box}
.filter-layout input[type=date].control{height:36px!important;min-height:36px!important;padding:0 10px!important}
.filter-panel .panel-body{padding-bottom:10px!important}
.filter-panel{margin-bottom:0!important}
.product-info>.product-thumb-button{width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;min-height:52px!important;max-height:52px!important;aspect-ratio:1/1;display:grid!important;place-items:center;box-sizing:border-box;padding:3px!important;border:1px solid var(--line)!important;border-radius:8px;background:#fff!important}
.product-info>.product-thumb-button>img.thumb{display:block;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;aspect-ratio:1/1;box-sizing:border-box;border:0!important;border-radius:5px;object-fit:contain!important;object-position:center;background:#fff}
.service-provider-column{display:grid;gap:14px;align-content:start;min-width:0}.service-save-card{min-height:72px}.account-table{width:100%;min-width:1380px;table-layout:fixed}.account-table :is(th,td):nth-child(n){width:11.11%!important;min-width:0!important;max-width:none!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.account-table td:nth-child(5){display:table-cell!important}.account-table .row-actions{flex-wrap:nowrap;white-space:nowrap}.account-table .account-perm-cell{white-space:nowrap}
.tenant-access-banner{margin:10px 16px 0;padding:10px 14px;border:1px solid #ffb65f;border-radius:6px;background:#fff7e8;color:#873800;font-size:13px;line-height:20px}.tenant-readonly [data-readonly-disabled="1"]{opacity:.55;cursor:not-allowed}

/* Product and variant image actions */
.variant-price.adjust.positive{color:#c62828}
.variant-price.adjust.negative{color:#047857}
.variant-image-card[draggable="true"]{cursor:grab}
.variant-image-card.dragging{cursor:grabbing;opacity:.45;transform:scale(.96)}
.variant-image-card.drag-over{border-color:var(--teal)!important;box-shadow:0 0 0 3px rgba(19,180,170,.18)}

/* Draft AI actions, editor field recovery, and compact variant pricing */
.draft-optimization-options{display:grid;gap:10px;margin-bottom:14px}.draft-optimization-options label{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;cursor:pointer}.draft-optimization-options label:has(input:checked){border-color:var(--color-primary-6,#165dff);background:var(--color-primary-1,#e8f3ff)}.draft-optimization-options label.disabled{cursor:not-allowed;opacity:.55;background:#f7f8fa}.draft-optimization-options input{width:16px;height:16px;accent-color:var(--color-primary-6,#165dff)}.draft-optimization-options span{display:grid;gap:3px}.draft-optimization-options strong{font-size:13px}.draft-optimization-options small{color:var(--muted);font-size:11px}.draft-price-adjustment{margin:0 0 14px}.draft-ai-ready{margin:0}
.text-label{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.field-optimize-button{height:28px;padding:0 9px;border:1px solid var(--color-primary-5,#3491fa);border-radius:6px;background:var(--color-primary-1,#e8f3ff);color:var(--color-primary-6,#165dff);font-size:11px;cursor:pointer}.field-optimize-button:hover:not(:disabled){background:var(--color-primary-2,#bedaff)}.field-optimize-button:disabled{opacity:.5;cursor:not-allowed}.text-field-actions{gap:5px}
.variant-price.latest{color:var(--color-primary-6,#165dff)!important}.variant-table tbody tr{height:100px}.variant-table tbody td{height:100px;padding:8px 10px;box-sizing:border-box}.variant-table :is(th,td):nth-child(4){width:150px;max-width:150px}.variant-table [data-variant-price-delta]{width:128px;min-width:0}.variant-images{min-width:360px;max-width:min(760px,52vw);height:84px;flex-wrap:nowrap;align-items:center;overflow-x:auto;overflow-y:hidden;padding:1px 0}.variant-images>.variant-image-card{display:grid;place-items:center;flex:0 0 82px!important;width:82px!important;height:82px!important;min-width:82px;min-height:82px;max-width:82px;max-height:82px;aspect-ratio:1/1}.variant-images>.upload-card{flex:0 0 82px;width:82px;height:82px;min-height:82px;aspect-ratio:1/1}.variant-images .variant-image-card>img{display:block;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center;background:#fff}
.product-thumb-popover{position:fixed!important;left:0;top:0;transform:none!important;z-index:1000!important}

/* Amazon upload failure details */
.upload-failure-modal-body{display:grid;gap:12px;background:#f7f8fa}
.upload-failure-modal-body .upload-failure-box{margin:0;background:#fff;border-left:3px solid #f53f3f}
.upload-failure-time{margin-top:-4px;color:var(--muted);font-size:12px}
.upload-required-panel{overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#fff}
.upload-required-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);background:#f7f8fa}
.upload-required-title>div{display:grid;gap:3px}.upload-required-title strong{font-size:14px}.upload-required-title span{color:var(--muted);font-size:12px;font-weight:400}
.upload-required-title em{padding:3px 9px;border-radius:999px;background:#e8f3ff;color:#165dff;font-size:12px;font-style:normal}
.upload-required-country{padding:0 16px}.upload-required-country+.upload-required-country{border-top:1px solid var(--line)}
.upload-required-country-head{display:flex;align-items:center;justify-content:space-between;padding:14px 0 10px}.upload-required-country-head strong{font-size:14px}.upload-required-country-head span{color:var(--muted);font-size:12px}
.upload-required-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-bottom:16px}
.upload-required-field{margin:0!important;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fafbfc}.upload-required-field label{display:block;margin-bottom:7px;color:var(--ink);font-size:13px;font-weight:600}.upload-required-field .control{width:100%;height:36px;min-height:36px}.upload-required-variant{display:block;margin:-2px 0 7px;color:#4e5969;font-size:12px}
@media(max-width:760px){.upload-required-grid{grid-template-columns:1fr}}
/* Performance containment: off-screen rows/cards skip layout and paint work. */
.product-card,
.image-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 56px;
}

#viewRoot {
  contain: style;
}

/* Billing filters and rows follow the available workspace-tab width. */
.billing-shell{width:100%;max-width:none;padding-left:10px;padding-right:10px}
.billing-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));flex:1;gap:10px 14px;min-width:0}
.billing-filter-grid .field,.billing-filter-grid .control,.billing-filter-grid .sdm-select-wrap{width:100%;min-width:0}
.billing-table{min-width:1060px;table-layout:fixed}
.billing-table :is(th,td):nth-child(1){width:14%}.billing-table :is(th,td):nth-child(2){width:17%}.billing-table :is(th,td):nth-child(3){width:16%}.billing-table :is(th,td):nth-child(4){width:10%}.billing-table :is(th,td):nth-child(5),.billing-table :is(th,td):nth-child(6),.billing-table :is(th,td):nth-child(7){width:11%}.billing-table :is(th,td):nth-child(8){width:18%}
@media(max-width:760px){.billing-filter-grid{grid-template-columns:1fr;width:100%}.billing-filter-layout .filter-actions{align-self:stretch}.billing-filter-layout .filter-actions .btn{flex:1}}
