/* Product editing follows the restrained operations workspace palette. */
.product-editor .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.catalog-actions{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 20px}.catalog-actions h2{font-size:19px;font-weight:500}.catalog-actions p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:8px}.catalog-actions-buttons{display:flex;gap:10px;flex-shrink:0}.product-inline-edit{display:inline-flex;align-items:center;gap:5px;border:0;border-bottom:1px solid #b8c7b8;background:none;padding:5px 0;margin-top:7px;min-height:32px;color:var(--teal);font-size:12px;font-weight:600}.product-management-label{font-size:10px;color:#6b766b;margin-left:8px}.product-editor{width:min(1120px,96vw);height:min(920px,94dvh);max-height:94dvh;border:1px solid var(--line);border-radius:3px;padding:0;color:var(--ink);box-shadow:0 30px 100px #152c2b40;overflow:hidden}.product-editor::backdrop{background:#172d2670;backdrop-filter:blur(3px)}.product-editor[open]{display:flex;flex-direction:column}.product-editor .dialog-head{position:static;flex-shrink:0;padding:22px 30px;align-items:center}.product-editor .dialog-head h2{font-size:21px}.product-editor .dialog-head .eyebrow{margin-bottom:7px}.product-editor .icon-button{width:42px;height:42px;font-size:24px;border-radius:2px}.product-editor-form{min-height:0;display:flex;flex-direction:column;flex:1}.product-editor-scroll{padding:25px 30px 32px;overflow:auto;overscroll-behavior:contain;min-height:0;flex:1}.product-editor-nav{display:flex;gap:22px;flex-wrap:wrap;padding-bottom:19px;margin-bottom:24px;border-bottom:1px solid var(--line);font-size:12px;color:var(--teal)}.product-editor-nav a{min-height:26px;display:flex;align-items:center}.product-edit-section{scroll-margin-top:15px;margin-bottom:30px}.product-edit-section>h3{font-size:16px;font-weight:500;margin:0 0 17px;display:flex;align-items:center;gap:11px}.product-edit-section>h3>span{font-family:Georgia,serif;font-size:14px;color:#8a9689}.product-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}.product-edit-grid .span-two{grid-column:1/-1}.product-editor label{font-size:12px;margin-bottom:0;line-height:1.6;display:flex;flex-direction:column;gap:8px}.product-editor input:not([type=checkbox]):not([type=file]),.product-editor select,.product-editor textarea{width:100%;min-height:43px;border-radius:2px;font-size:14px;padding:11px 12px;font-family:inherit;line-height:1.6;background:#fff}.product-editor textarea{min-height:130px;resize:vertical}.product-editor small,.editor-hint{font-size:11px;color:#6b7e6b;line-height:1.9;font-weight:400}.editor-hint{margin-bottom:15px}.editor-notice{background:#f1f4ed;border:1px solid #dde5d8;padding:15px 17px;line-height:1.9;font-size:12px;margin-bottom:22px}.editor-notice strong{display:block;font-weight:600}.editor-notice p{margin-top:5px;color:#63735f;font-size:11px}.product-editor .editor-check{display:flex;flex-direction:row;align-items:flex-start;gap:10px;line-height:1.8;padding:13px 0}.editor-check input{margin:4px 0 0;accent-color:var(--teal);flex:none;width:16px;height:16px}.editor-check span{display:block}.editor-check small{display:block;margin-top:3px}.editor-status-label{padding:13px 16px!important;background:#f6f7f2;border:1px solid var(--line)}.editor-stock-confirm{margin-top:20px;padding:15px 17px!important;border:1px solid #dce3d3;background:#f6f8f1}.editor-stock-confirm.required{border-color:#b19a64;background:#fcf9ef}.product-editor-footer{border-top:1px solid var(--line);background:#fff;flex-shrink:0;padding:17px 30px;display:flex;align-items:center;justify-content:space-between;gap:16px}.editor-save-status{font-size:12px;line-height:1.8;color:#61745f;max-width:70ch}.editor-footer-buttons{display:flex;gap:10px;flex-shrink:0}.product-editor [aria-busy=true]{cursor:progress}.editor-error{background:#fff3ef;border:1px solid #e9cbbf;color:#994338;padding:13px 16px;font-size:12px;line-height:1.9;margin-bottom:19px;white-space:pre-wrap;scroll-margin-top:12px}.editor-conflict{border:1px solid #dbc993;background:#fffbef;padding:17px;margin-bottom:20px;font-size:12px;line-height:1.9}.editor-conflict p{margin:7px 0 12px}.editor-conflict ul{max-height:230px;overflow:auto;padding-left:21px}.editor-conflict li{margin:7px 0;overflow-wrap:anywhere}.editor-conflict-buttons{display:flex;flex-wrap:wrap;gap:10px}.editor-upload-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:15px}.product-editor .editor-upload-label{display:inline-flex;flex-direction:row;cursor:pointer;position:relative;gap:8px;overflow:hidden}.editor-upload-label input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.editor-upload-label:focus-within{outline:2px solid var(--teal);outline-offset:3px}.editor-images{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin-bottom:17px}.editor-image{border:1px solid var(--line);background:#fff;min-width:0;padding:7px}.editor-image-preview{position:relative;aspect-ratio:1;display:flex;align-items:center;justify-content:center;background:#f3f4ee;overflow:hidden}.editor-image img{width:100%;height:100%;object-fit:contain}.editor-image-label{position:absolute;bottom:0;left:0;right:0;background:#233d32dd;color:white;font-size:10px;padding:4px 6px;line-height:1.5}.editor-image-actions{display:flex;justify-content:space-between;gap:5px;margin-top:6px}.editor-image-actions button{border:1px solid var(--line);border-radius:2px;background:white;color:var(--teal);font-size:11px;min-height:33px;min-width:30px;padding:4px 6px}.editor-image-actions .remove-image{color:#8d4c3d}.editor-image-empty{font-size:12px;color:#7c8979;border:1px dashed #d4ddce;background:#fafbf7;padding:24px;grid-column:1/-1;line-height:1.8}.editor-image-url{display:flex;gap:10px;align-items:flex-end}.editor-image-url label{flex:1}.editor-image-url .button{flex-shrink:0}.editor-subtitle{font-size:13px;font-weight:500;margin:22px 0 12px}.editor-variants{display:grid;gap:16px}.editor-variant{border:1px solid #dce3d5;background:#fbfcf8;padding:19px 20px}.editor-variant.inactive{background:#f7f7f4;border-style:dashed}.editor-variant-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}.editor-variant-head h4{font-size:13px;font-weight:600;margin:0}.editor-variant-head .editor-check{padding:0;align-items:center;font-size:12px}.editor-variant-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.editor-variant-grid .variant-wide{grid-column:span 2}.variant-price-auto{display:block!important;font-size:11px!important;font-weight:400;line-height:1.7;margin-top:5px}.variant-price-auto input{width:13px;height:13px;vertical-align:middle;margin:0 5px 0 0;accent-color:var(--teal)}.variant-stock-info{padding-top:12px;margin-top:15px;border-top:1px solid var(--line);display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:11px;color:#72836c;line-height:1.8}.variant-stock-info b{font-weight:500;color:#3d5b3a}.editor-add-variant{margin-top:15px}.editor-specs{display:grid;gap:10px}.editor-spec-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(130px,2fr) auto;gap:10px;align-items:center}.editor-spec-row button{height:43px}.editor-add-spec{margin-top:12px}.product-detail-edit{display:flex;justify-content:flex-end;padding:18px 28px;border-bottom:1px solid var(--line)}
@media(max-width:900px){.editor-variant-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-images{grid-template-columns:repeat(4,minmax(0,1fr))}.product-editor{width:97vw;max-height:96dvh;height:96dvh}.product-editor-scroll{padding:22px}.product-editor .dialog-head,.product-editor-footer{padding:18px 22px}}
@media(max-width:700px){.catalog-actions{align-items:flex-start;flex-wrap:wrap}.catalog-actions h2{font-size:18px}.catalog-actions-buttons{width:100%}.catalog-actions-buttons>.button:first-child{flex:1}.product-editor{width:100vw;height:100dvh;max-height:100dvh;max-width:100vw;margin:0;border:0;border-radius:0}.product-editor .dialog-head{padding:17px}.product-editor .dialog-head h2{font-size:18px}.product-editor-scroll{padding:20px 17px}.product-editor-nav{gap:16px;font-size:11px}.product-edit-grid{grid-template-columns:1fr;gap:16px}.product-edit-grid .span-two{grid-column:auto}.product-editor input:not([type=checkbox]):not([type=file]),.product-editor select,.product-editor textarea{font-size:16px;min-height:46px}.editor-variant{padding:16px 13px}.editor-variant-grid{gap:15px 10px}.editor-variant-grid label{font-size:11px}.editor-variant-head{align-items:flex-start;flex-wrap:wrap}.editor-variant-grid .variant-wide{grid-column:1/-1}.editor-images{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.editor-image-actions{flex-wrap:wrap;gap:3px}.editor-image-actions button{flex:1;min-height:36px}.editor-image-actions .remove-image{flex:2}.editor-image-url{flex-wrap:wrap}.editor-image-url label{flex-basis:100%}.editor-image-url .button{width:100%}.editor-spec-row{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto;gap:6px}.editor-spec-row button{padding:6px 9px}.product-editor-footer{padding:13px 17px max(13px,env(safe-area-inset-bottom));flex-direction:column;gap:10px;align-items:stretch}.editor-save-status{font-size:11px;line-height:1.6}.editor-footer-buttons{width:100%;justify-content:flex-end}.editor-footer-buttons .primary{flex:1}.editor-footer-buttons .button{min-height:45px}.product-table{display:block;min-width:0!important;width:100%}.product-table thead{display:none}.product-table tbody{display:grid;gap:0}.product-table tr{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);padding:16px 17px;gap:12px}.product-table .data-table td,.product-table td{display:block;padding:0!important;border:0!important;min-width:0;white-space:normal;font-size:12px}.product-table td:first-child{grid-column:1/-1}.product-table td::before{display:block;font-size:10px;color:#839078;margin:0 0 5px}.product-table td:nth-child(2)::before{content:'成本'}.product-table td:nth-child(3)::before{content:'实际售价'}.product-table td:nth-child(4)::before{content:'总库存 / 预留 / 可售'}.product-table td:nth-child(5)::before{content:'库存核实时间'}.product-table td:nth-child(6){align-self:center}.product-table td:last-child{text-align:right}.product-table .product-cell{max-width:100%}.product-table .product-title{font-size:13px}.product-inline-edit{min-height:37px}.product-table .product-thumb,.product-table .thumb-placeholder{width:65px;height:65px}.product-table .row-action{min-height:36px}.product-management-label{display:block;margin:5px 0 0}.catalog-actions-buttons .button{min-height:44px}.editor-notice{padding:12px 13px}.editor-stock-confirm{padding:12px!important}}
