#detail:has(.pe-form){width:calc(100% - 48px);max-width:1360px;max-height:94vh;padding:24px;background:#f5f6f8;border-radius:12px}#detail:has(#pe-order-price){max-width:960px}#detail:has(.pe-form) .dialog-head{padding:0 4px 8px}.pe-form{min-width:0}.pe-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}.pe-card{background:white;padding:24px;border:1px solid #e3e7eb;border-radius:8px;margin-bottom:20px;min-width:0}.pe-card-heading h3{font-size:18px;margin:0 0 18px}.pe-card-heading p{color:#7c858b;font-size:13px;line-height:1.7;margin:-8px 0 18px}.pe-card .mg-field{margin-bottom:18px}.pe-card .ce-rich-editor{margin:8px 0 24px}.pe-card [data-pe-rich=summary] .ce-rich{min-height:100px;max-height:220px}.pe-mobile-description summary{cursor:pointer;font-size:14px;padding:10px 0}.pe-hint{font-size:12px;color:#7c858b;margin:0;line-height:1.7}.pe-sku-scroll{overflow-x:auto;margin:20px -8px}.pe-sku-table{min-width:1000px}.pe-sku-table th{background:#f6f8fa;padding:12px 10px;color:#57636e}.pe-sku-table td{vertical-align:top;padding:14px 8px;min-width:135px}.pe-sku-table td:first-child{min-width:180px}.pe-sku-table .mg-field{font-size:12px;margin-bottom:14px}.pe-sku-table .mg-field input,.pe-sku-table .mg-field select{padding:9px 8px;min-width:0;font-size:13px}.pe-sku-table small{font-size:11px}.pe-remove{font-size:12px;color:#a15c37;padding:8px 0}.pe-mode{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pe-mode label{border:1px solid #e2e6ea;border-radius:7px;padding:16px;font-size:14px;cursor:pointer}.pe-mode label:has(input:checked){border-color:#ef8537;background:#fff8f2;color:#b75515}.pe-mode input{accent-color:var(--orange)}.pe-mode small{display:block;margin:8px 0 0 22px;color:#8a9299;font-size:12px}.pe-variant-actions{margin:12px 0 24px}.pe-variant-actions p{margin-top:12px}.pe-seo-preview{border-bottom:1px solid #e9ecef;margin-bottom:18px;padding-bottom:16px;overflow-wrap:anywhere}.pe-seo-preview strong{font-size:14px;color:#2464a7;line-height:1.7;display:block}.pe-seo-preview small{font-size:11px;color:#41956d;display:block;margin:6px 0}.pe-seo-preview p{font-size:12px;color:#808891;margin:0;line-height:1.6}.pe-save-bar{position:sticky;bottom:-24px;background:#fff;border-top:1px solid #e0e5e9;margin:4px -24px -24px;padding:16px 24px;display:flex;align-items:center;gap:18px;z-index:5;box-shadow:0 -4px 18px #26313508;flex-wrap:wrap}.pe-save-bar>span{color:#84909a;font-size:12px;flex:1}.pe-save-bar>div{display:flex;gap:12px}.pe-save-bar .form-error:not([hidden]){flex-basis:100%;margin:0}.pe-price-total{background:#fff7f0;border:1px solid #f8d7bd;padding:16px;margin:18px 0;display:flex;gap:12px;flex-wrap:wrap;align-items:center;color:#8d664b;font-size:14px}.pe-price-total span{margin-left:auto}.pe-price-total strong{font-size:24px;color:#d25f13;margin-left:12px}.pe-pending{color:#b57723!important}.pe-order-notice{padding:14px 20px;background:#fff8ee;border:1px solid #f5ddbb;color:#93652d;font-size:13px;margin:0 0 20px;border-radius:7px}.pe-price-history{background:#fff;border:1px solid #e4e8ec;border-radius:8px;padding:22px;margin-top:20px}.pe-price-history p{font-size:13px;margin:8px 0;color:#75808b}.pe-product-video{width:100%;max-height:480px;background:#f5f7fa;margin:20px 0}.pe-summary{font-size:14px;color:#75808b;line-height:1.8;margin:14px 0}.pe-summary p{margin:0 0 6px}.pe-tag{display:inline-block;background:#f4f6f8;color:#6b7782;font-size:12px;padding:4px 9px;border-radius:4px;margin-right:6px}
@media(max-width:900px){.pe-editor-layout{grid-template-columns:minmax(0,1fr) 260px;gap:12px}.pe-card{padding:18px}}@media(max-width:700px){#detail:has(.pe-form){width:100%;max-height:100dvh;height:100dvh;margin:0;max-width:100%;border-radius:0;padding:16px}.pe-editor-layout{grid-template-columns:1fr}.pe-save-bar{margin:0 -16px -16px;padding:14px 16px;bottom:-16px}.pe-save-bar>span{display:none}.pe-save-bar>div{width:100%;justify-content:flex-end}.pe-mode{grid-template-columns:1fr}.pe-price-total span{margin-left:0}.pe-sku-table{min-width:1000px}.pe-price-total strong{font-size:20px}.pe-card{padding:16px}.pe-order-notice{padding:12px}}
/* A SKU stays one compact row; secondary fields remain in that row for saving. */
.pe-sku-table{width:100%;min-width:980px;border-collapse:collapse}.pe-sku-table th{font-size:12px;text-align:left;white-space:nowrap}.pe-sku-table td{min-width:95px;padding:10px 8px;vertical-align:top}.pe-sku-table td:first-child{min-width:170px}.pe-sku-table td:nth-child(2){min-width:160px}.pe-sku-table td:nth-child(5){min-width:80px}.pe-sku-table .mg-field{margin:0;font-size:0;gap:0}.pe-sku-table .mg-field input,.pe-sku-table .mg-field select{height:43.5px;margin:0;font-size:13px;width:100%;box-sizing:border-box}.pe-sku-table td.pe-sku-settings{min-width:145px;white-space:nowrap}.pe-sku-extra{display:inline-block;vertical-align:top;white-space:normal}.pe-sku-extra summary{cursor:pointer;font-size:12px;color:#b66a36;padding:10px 6px;min-height:38px}.pe-sku-extra>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:340px;padding:14px;background:#fafbfd;border:1px solid #e5e9ee;border-radius:6px}.pe-sku-extra .mg-field{font-size:11px;gap:7px}.pe-sku-extra .mg-field:first-child{grid-column:1/-1}.pe-sku-settings .pe-remove{padding:10px 6px;min-height:38px}.pe-remove:disabled{color:#b9c0c8;cursor:default}
@media(max-width:700px){.pe-sku-scroll{overflow:visible;margin:16px 0}.pe-sku-table,.pe-sku-table tbody{display:block;min-width:0;width:100%}.pe-sku-table thead{display:none}.pe-sku-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;border:1px solid #e2e7ed;background:#fff;border-radius:8px;padding:14px;margin-bottom:14px}.pe-sku-table td,.pe-sku-table td:first-child,.pe-sku-table td:nth-child(2),.pe-sku-table td:nth-child(5),.pe-sku-table td.pe-sku-settings{display:block;min-width:0;padding:0;border:0}.pe-sku-table .mg-field{font-size:12px;gap:7px;line-height:1.5}.pe-sku-table .mg-field input,.pe-sku-table .mg-field select{height:44px;font-size:16px}.pe-sku-table .pe-sku-settings{grid-column:1/-1;border-top:1px solid #edf0f4!important;padding-top:6px!important}.pe-sku-extra{display:block}.pe-sku-extra>div{width:auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px}.pe-sku-extra summary{min-height:44px;padding:12px 0}.pe-sku-settings .pe-remove{min-height:40px}.pe-save-bar{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}.pe-save-bar>div>button{flex:1;min-height:44px}.pe-card .mg-form-grid{grid-template-columns:1fr}.pe-card .ce-rich-toolbar{flex-wrap:wrap}.pe-card .ce-rich img{max-width:100%;height:auto}}
@media(min-width:701px){.pe-sku-table>tbody>tr>td>.mg-field>b{display:none}.pe-sku-table>tbody>tr>td>.mg-field{line-height:0}}

/* V102 SKU 行内「前台可见 / 价格展示」双开关 */
.pe-sku-table th:nth-child(7),.pe-sku-table td:nth-child(7){width:86px;min-width:86px}
.pe-sku-table th:nth-child(4),.pe-sku-table td:nth-child(4){width:76px;min-width:76px}
.pe-sku-table th:nth-child(5),.pe-sku-table td:nth-child(5){width:100px;min-width:100px}
.pe-extax{display:block;font-size:12.5px;color:#b45309;font-variant-numeric:tabular-nums;white-space:nowrap}
.pe-flags{display:flex;flex-direction:column;gap:4px}
.pe-flags .mg-field,.pe-flags>label{width:100%;margin:0}
.pe-flags select{width:100%;min-width:0;height:30px;font-size:11.5px;padding:0 16px 0 2px;background-position:right 3px center;background-size:8px 5px}
@media (max-width:600px){.pe-flags{gap:3px}.pe-flags select{height:28px;font-size:11px}}
.pe-sku-table th:last-child,.pe-sku-table td:last-child{min-width:140px;white-space:nowrap}
