/* Added controls only. Original workspace/editor styles remain authoritative. */
#product-dialog{padding:0;background:var(--page);width:min(1240px,calc(100% - 32px));max-height:92vh;border-radius:20px;border:1px solid var(--line);color:var(--text)}
#product-dialog::backdrop,#shop-dialog::backdrop,#row-dialog::backdrop,#shops-dialog::backdrop{background:#10182070}
.store-target{display:grid;gap:7px;color:var(--muted);font-size:12px;margin:12px 0}
.store-target select{width:100%;padding:10px;border-radius:10px}
#fact-fields .editor-section>label{display:block;font-size:18px;margin-bottom:14px}
#fact-fields input,#fact-fields select,#fact-fields textarea{width:100%;padding:11px;border:1px solid var(--line);background:var(--input);border-radius:10px;color:var(--text)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.form-grid label{display:grid;gap:8px;align-content:start;font-size:13px}.form-grid input,.form-grid select,.form-grid textarea{width:100%;padding:11px;border-radius:10px}.wide{grid-column:1/-1}
#shop-dialog,#row-dialog,#shops-dialog{width:min(1040px,94vw);max-height:90vh;padding:26px;background:var(--page);color:var(--text);border:1px solid var(--line);border-radius:20px;overflow:auto}
.dialog-heading,.flow-footer{display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-heading{margin-bottom:20px}.flow-footer{margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.flow-footer .primary{width:auto;min-width:160px}
.field-note,.fixed-badge{font-size:11px;color:var(--muted);white-space:pre-wrap;line-height:1.7}.required{color:var(--danger)}
.introduction-editor{min-height:240px;max-height:500px;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--input);padding:20px;line-height:1.8;overflow-wrap:anywhere}.rich-toolbar{margin-bottom:8px}.rich-toolbar button{border:0;padding:6px 12px}
.image-strip{display:flex;gap:10px;flex-wrap:wrap}.image-strip img{width:90px;height:90px;object-fit:contain}.inline-actions{display:flex;gap:10px;margin:12px 0}.image-addresses{margin-top:12px;color:var(--muted);font-size:12px}
.conflict-box{border:1px solid var(--line);border-radius:10px;padding:12px;margin-top:12px}.conflict-box button{display:block;max-width:100%;padding:12px;margin:8px 0;text-align:left}.conflict-box pre{white-space:pre-wrap;max-height:150px;overflow:auto}.conflict-box small{display:block}
.shop-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border:1px solid var(--line);border-radius:14px;margin:12px 0;background:var(--row)}.shop-card p{font-size:12px;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}
.fact-preview{padding:12px;border:1px solid var(--line);border-radius:10px;color:var(--muted)}
#batch-dialog{width:min(1060px,94vw)}.batch-bar{display:flex;gap:12px;flex-wrap:wrap;align-items:end;padding:16px;border:1px solid var(--line);border-radius:12px;margin-bottom:18px}.batch-bar label{display:grid;gap:6px;font-size:12px}.batch-bar input,.batch-bar select{padding:10px;border-radius:10px}.table-wrap{overflow:auto}.listing-table{border-collapse:collapse;width:100%;font-size:12px}.listing-table th,.listing-table td{border-bottom:1px solid var(--line);padding:12px;text-align:left}.listing-table input,.listing-table select{max-width:220px;padding:10px;border-radius:9px}.listing-table td:last-child{white-space:nowrap}.row-select{display:flex;gap:10px;align-items:center;min-width:180px}.row-thumb{width:45px;height:45px;object-fit:contain;border-radius:7px}
.issue-row{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line)}.issue-row p{font-size:12px;color:var(--danger);margin:6px 0}.ok-box{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--selected)}
#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:12px 22px;border-radius:30px;background:var(--active);color:var(--on-active);z-index:1000;font-size:12px;max-width:90vw}
@media(max-width:650px){.form-grid{grid-template-columns:1fr}.issue-row{flex-direction:column}.flow-footer{flex-wrap:wrap}.batch-bar{align-items:stretch;flex-direction:column}}

/* Product facts on the left, the unchanged product preview on the right. */
#product-dialog .editor-layout{grid-template-columns:minmax(0,1fr) 280px;align-items:start}
#product-dialog .editor-main{min-width:0}
#product-dialog .editor-preview{top:104px}
#product-dialog .editor-preview .editor-description-preview{max-height:320px}
.image-manager-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px;font-size:12px;color:var(--muted)}
.image-manager-heading #image-count{margin-left:auto;font-variant-numeric:tabular-nums}
#image-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:4px;border:2px dashed transparent;border-radius:14px;transition:border-color .15s}
#image-preview.files-over{border-color:var(--focus);background:var(--selected)}
#image-preview .image-tile{position:relative;min-width:0;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--input);cursor:grab}
#image-preview .image-tile:active{cursor:grabbing}
#image-preview .image-tile img{display:block;width:100%;height:136px;object-fit:contain;margin:20px 0 10px;background:transparent}
#image-preview .primary-image{border-color:var(--focus)}
.image-order{position:absolute;top:9px;left:10px;font-size:11px;color:var(--muted)}
.primary-image .image-order{font-weight:650;color:var(--text)}
#image-preview .image-controls{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
#image-preview .image-controls button{font-size:11px;padding:5px 8px;cursor:pointer}
#image-preview .image-controls .image-position{display:flex;align-items:center;gap:6px;width:100%;font-size:11px;color:var(--muted);margin:0}
#image-preview .image-position select{width:auto;flex:1;min-width:0;padding:5px 7px;border-radius:7px;font-size:11px;cursor:pointer}
#image-preview .insert-before{box-shadow:-5px 0 0 var(--focus)}
#image-preview .insert-after{box-shadow:5px 0 0 var(--focus)}
#image-preview .image-dragged{opacity:.4}
.image-upload-tile{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:230px;border:1px dashed var(--muted);border-radius:12px;background:transparent;color:var(--muted);padding:16px;cursor:pointer}
.image-upload-tile:hover{background:var(--selected);color:var(--text)}
.image-upload-tile>span{font-size:30px;font-weight:300}
.image-upload-tile strong{font-size:13px;font-weight:500}
.image-upload-tile small{font-size:10px}
#shop-dialog{width:min(880px,94vw);padding:26px}
#shop-dialog .dialog-heading{margin-bottom:22px}
.shop-subtitle{font-size:12px;color:var(--muted);margin-top:6px}
.shop-section{padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--row);margin-bottom:16px}
.shop-section>header{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.shop-section h3{font-size:15px;font-weight:600;margin:0}
.shop-section .form-grid{gap:18px 24px}
.shop-section .fact-preview{font-size:13px;padding:11px}
.template-details{font-size:11px;color:var(--muted);margin-top:16px}
.template-details summary{cursor:pointer}
#shop-template-name{overflow-wrap:anywhere;margin-top:8px;line-height:1.7}
#shop-dialog .flow-footer{margin-top:20px}
.fact-coverage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
.coverage-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}
.coverage-status{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}
.coverage-status.complete{color:var(--muted)}
.coverage-status.incomplete{color:var(--danger)}
.shop-country-badge{display:inline-block;margin-left:8px;font-size:11px;font-weight:400;border:1px solid var(--line);border-radius:20px;padding:3px 9px;color:var(--muted);vertical-align:middle}
.shop-card .shop-completeness{font-size:11px}
@media(max-width:1000px){#product-dialog .editor-layout{grid-template-columns:minmax(0,1fr) 235px;padding:18px;gap:16px}#image-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.fact-coverage{grid-template-columns:1fr}}
@media(max-width:650px){#product-dialog .editor-layout{display:flex;flex-direction:column;padding:12px}#product-dialog .editor-main,#product-dialog .editor-preview{width:100%}#product-dialog .editor-preview{position:static;max-height:none}#image-preview .image-tile img{height:120px}.shop-section{padding:16px}.coverage-row{flex-wrap:wrap;gap:5px}.coverage-status{white-space:normal}}

.shops-page{padding:22px 18px}
.shops-page .catalog-heading h1{font-size:29px}
.shops-page .catalog-heading p{margin-top:8px}
.shops-page #shop-cards{display:flex;flex-direction:column;gap:8px}
.shops-page .shop-card{margin:0;display:flex;align-items:center;justify-content:space-between;padding:16px 18px;min-height:88px;border-radius:14px;gap:16px;background:var(--row)}
.shops-page .shop-card .detail-button{flex-shrink:0}.shop-row-name{display:flex;align-items:center;gap:12px;min-width:0}.shop-row-name h3{font-size:14px;overflow-wrap:anywhere}.shop-row-name .shop-country-badge{margin:0}
.fixed-setting{display:flex;align-items:center;justify-content:space-between;gap:12px}
.fixed-setting>span{color:var(--muted);font-size:10px}
.fixed-country{font-size:13px;padding:11px}
.bound-template{border-left:3px solid var(--focus)}
.bound-template #shop-template-name{font-size:13px;color:var(--text);line-height:1.8}
.template-bound-badge{border:1px solid var(--line);border-radius:20px;font-size:10px;padding:3px 9px;color:var(--muted)}
.requirement-status{font-size:11px;color:var(--muted);font-weight:400}
.image-selection-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.image-selection-tools label,.image-pick-label{display:flex;align-items:center;gap:7px!important;font-size:12px!important;margin:0!important;color:var(--muted)!important}
#fact-fields input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:var(--accent);padding:0;cursor:pointer}
.image-selection-tools .outline{padding:7px 13px;font-size:11px}
#image-preview .image-controls{justify-content:space-between;flex-wrap:nowrap}
#product-dialog .editor-preview{padding:18px;max-height:none;overflow:visible}
#product-dialog .editor-preview .eyebrow{margin-bottom:14px}
#product-dialog .editor-preview img{height:auto;aspect-ratio:1;object-fit:contain;border-radius:12px;width:100%;background:var(--input)}
#product-dialog .editor-preview h3{font-size:15px;line-height:1.6;margin:16px 0 0}
@media(max-width:780px){.shops-page{padding:20px}.shops-page #shop-cards{grid-template-columns:1fr}}

/* Preview belongs to the image section, leaving other product facts full width. */
#product-dialog .editor-layout{display:block;padding:24px}
#product-dialog .product-image-layout{display:grid;grid-template-columns:195px minmax(0,1fr);gap:20px;align-items:start}
#product-dialog .product-image-layout>.detail-fields{display:block;min-width:0}
#product-dialog .product-image-layout>.editor-preview{position:sticky;top:112px;margin:0;background:var(--input);box-shadow:none;max-height:none;overflow:visible;order:0}
#product-dialog .product-image-layout>.editor-preview img{aspect-ratio:1;height:auto;max-height:200px;object-fit:contain}
#product-dialog .product-image-layout>.editor-preview h3{font-size:14px;line-height:1.7}
#product-dialog .product-images-section>.detail-fields{display:none}
#product-dialog .product-image-layout>.detail-fields .edit-field>label{display:none}
#image-preview{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:3px}
#image-preview .image-tile{padding:10px}
#image-preview .image-tile img{height:165px;aspect-ratio:auto;max-height:165px;margin:20px 0 10px;object-fit:contain}
#image-preview .image-controls{flex-wrap:wrap;justify-content:flex-end;gap:8px}
#image-preview .image-controls .image-pick-label{margin-right:auto!important}
#image-preview .image-controls button{padding:6px 9px;font-size:11px}
.image-selection-tools{flex-wrap:wrap;justify-content:flex-start;gap:12px}
.image-selection-tools #image-delete-selected{margin-left:auto}
.image-upload-tile{min-height:245px}
#product-dialog .image-manager-heading{margin-bottom:12px}
@media(max-width:1000px){#product-dialog .editor-layout{padding:18px}#product-dialog .product-image-layout{grid-template-columns:170px minmax(0,1fr);gap:16px}#image-preview{gap:12px}}
@media(max-width:760px){#image-preview{grid-template-columns:repeat(2,minmax(0,1fr))}#product-dialog .product-image-layout{grid-template-columns:1fr}#product-dialog .product-image-layout>.editor-preview{position:static;display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;padding:12px;align-items:center}#product-dialog .product-image-layout>.editor-preview .eyebrow{grid-column:1/-1;margin:0}#product-dialog .product-image-layout>.editor-preview img{grid-row:2;width:110px}#product-dialog .product-image-layout>.editor-preview h3{grid-column:2;grid-row:2;margin:0}#image-preview .image-controls{gap:6px}.image-selection-tools{gap:9px}}
@media(max-width:420px){#image-preview{grid-template-columns:1fr}.shop-row-name{flex-wrap:wrap;gap:6px}}

/* Final editor rhythm and compact sidebar actions. */
#product-dialog .editor-top{position:sticky;top:0;z-index:12;padding:20px 24px;align-items:center;gap:20px}
#product-dialog .editor-top>div:first-child{min-width:0;flex:1}
#product-dialog .editor-top h2{font-size:20px;line-height:1.45;max-width:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#product-dialog .editor-top .eyebrow{margin-bottom:5px}
#product-dialog .editor-top-actions{flex-shrink:0;gap:10px}
#product-dialog .editor-top-actions .primary{width:auto;padding:10px 20px}
#product-dialog .editor-layout{padding:22px}
#product-dialog .editor-section{padding:22px;margin-bottom:18px}
#product-dialog .editor-section h3{font-size:17px;margin-bottom:18px}
#product-dialog .detail-fields{gap:18px 22px}
#product-dialog .product-image-layout>.editor-preview{top:110px;padding:14px;border-radius:12px}
#product-dialog .product-image-layout>.editor-preview .eyebrow{font-size:10px;margin-bottom:10px}
#product-dialog .product-image-layout>.editor-preview h3{font-size:12px;line-height:1.65;margin:12px 0 0}
.image-selection-tools{margin-bottom:12px;justify-content:flex-start}
#image-preview .image-controls{justify-content:flex-end;gap:7px}
#image-preview .image-tile img{height:158px;max-height:158px}
.history-review{border:1px solid var(--line);border-radius:14px;padding:18px 20px;background:var(--row);margin-bottom:18px}
.history-review>summary{font-size:14px;font-weight:600;cursor:pointer;line-height:1.6}
.history-review>summary>span{font-size:11px;font-weight:400;color:var(--muted);margin-left:12px}
.history-review>.field-note{margin:14px 0}
.history-review .conflict-box{background:var(--input);margin-top:12px}
.history-review .conflict-box>summary{font-size:12px;cursor:pointer}
.history-review .conflict-box button{width:100%;border-radius:10px;border:1px solid var(--line);background:var(--row);padding:14px;font-size:12px;line-height:1.65}
.history-review .conflict-box button strong{display:block;margin-bottom:10px}
.history-review .conflict-box .image-strip{gap:8px}
.history-review .conflict-box .image-strip img{width:76px;height:76px;object-fit:contain;border-radius:7px}
.history-review .conflict-box button>span{display:block;margin-top:10px;font-weight:600}
.history-review .conflict-box button small{color:var(--muted);font-size:10px}
.right-column .selection{padding:20px 18px}
.selection-title{justify-content:space-between}
.selection .selection-intro{margin:8px 0 16px;line-height:1.6}
.selection #selected-products{max-height:310px;gap:8px}
.selection .selection-empty{min-height:88px;display:grid;place-items:center;padding:20px 12px;border:1px dashed var(--line);border-radius:12px;font-size:12px;line-height:1.7;color:var(--muted)}
.selection .export-area{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.selection .store-target{display:block;margin:0 0 16px}
.store-target-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.store-target-heading>label{font-size:12px;color:var(--muted)}
.selection .store-settings-button{width:auto;margin:0;padding:3px 0;font-size:11px;text-decoration:underline;text-underline-offset:3px}
.selection .store-target select{width:100%;padding:11px 12px;border-radius:10px;font-size:12px}
.selection #export{width:100%;margin:0;padding:13px 16px;border-radius:25px;font-size:12px}
.selection #export-status:empty{display:none}
.selection #export-status{font-size:11px;line-height:1.7;margin-top:10px;white-space:pre-wrap}
.shops-page>.catalog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
#add-shop-placeholder{display:inline-flex;align-items:center;gap:10px}
.coming-later{font-size:10px;color:var(--muted);font-weight:400}
@media(max-width:760px){#product-dialog .editor-top{padding:16px;gap:12px}#product-dialog .editor-top h2{font-size:17px}#product-dialog .editor-top-actions{gap:7px;flex-wrap:wrap}#product-dialog .editor-layout{padding:14px}#product-dialog .editor-section{padding:16px}#product-dialog .product-image-layout>.editor-preview{padding:12px}#product-dialog .product-image-layout>.editor-preview h3{margin:0}.history-review{padding:16px}}

/* Reference layout: fixed heading/navigation with independent preview and editor. */
#product-dialog{width:min(1480px,calc(100% - 32px));height:94vh;max-height:960px;padding:0;overflow:hidden}
#product-dialog #detail-content{height:100%;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr)}
#product-dialog .editor-top{position:static;padding:20px 28px;border-bottom:1px solid var(--line)}
#product-dialog .editor-top h2{font-size:20px;-webkit-line-clamp:1}
#product-dialog .editor-top-actions{max-width:45%}
#product-dialog #product-status{font-size:11px;max-width:260px;line-height:1.5}
.editor-section-nav{display:flex;align-items:center;gap:10px;padding:10px 26px;border-bottom:1px solid var(--line);background:var(--panel);overflow-x:auto;scrollbar-width:thin}
.editor-section-nav button{padding:11px 20px;background:transparent;border:1px solid transparent;border-radius:28px;font-size:13px;color:var(--muted);white-space:nowrap}
.editor-section-nav button:hover{color:var(--text);background:var(--selected)}
.editor-section-nav button.active{background:var(--active);color:var(--on-active);border-color:var(--active)}
#product-dialog .editor-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:0;padding:0;min-height:0;height:100%;align-items:stretch}
#product-dialog .editor-layout>.editor-preview{position:static;align-self:stretch;min-height:0;max-height:none;overflow-y:auto;margin:20px 16px 20px 20px;padding:18px;scrollbar-width:thin;background:var(--row);border-radius:16px;order:0}
#product-dialog .editor-preview img{width:100%;height:auto;aspect-ratio:1;max-height:none;object-fit:contain;border-radius:15px;background:var(--input)}
#product-dialog .editor-preview h3{font-size:15px;line-height:1.7;margin:18px 0 0}
#product-dialog .editor-preview .editor-description-preview{max-height:none;overflow:visible;padding:16px 0 0;margin:18px 0 0;border-top:1px solid var(--line);border-radius:0;background:transparent;font-size:12px;color:var(--text);line-height:1.8;overflow-wrap:anywhere}
#product-dialog .editor-description-preview>*{max-width:100%}
#product-dialog .editor-description-preview h1,#product-dialog .editor-description-preview h2,#product-dialog .editor-description-preview h3{font-size:17px;line-height:1.6;margin:10px 0}
#product-dialog .editor-description-preview:empty{display:none}
#product-dialog .editor-layout>.editor-main{min-width:0;min-height:0;overflow-y:auto;padding:20px 24px 26px 22px;border-left:1px solid var(--line);scrollbar-width:thin}
#product-dialog .editor-section{padding:22px;margin:0 0 18px;border-radius:16px;scroll-margin-top:20px}
#product-section-images{border:0;background:transparent;box-shadow:none;padding:0!important}
#product-section-images>h3,#product-section-images>.detail-fields>.edit-field>label{display:none}
#product-dialog #image-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:2px}
#product-dialog #image-preview .image-tile{padding:9px;border-radius:14px;background:var(--row);border:1px solid var(--line);overflow:visible}
#product-dialog #image-preview .primary-image{border-color:var(--focus)}
#product-dialog #image-preview .image-tile img{display:block;width:100%;height:auto;aspect-ratio:1;max-height:230px;object-fit:contain;border-radius:11px;margin:0 0 12px;background:var(--input)}
.image-card-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px;font-size:12px;color:var(--muted)}
.primary-image .image-card-caption{color:var(--text)}
.image-drag-handle{font-size:16px;line-height:1;cursor:grab;color:var(--muted)}
#product-dialog #image-preview .image-controls{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px}
#product-dialog #image-preview .image-controls button{border-radius:8px;padding:5px 8px;font-size:11px}
#product-dialog .image-upload-tile{min-height:210px;border-radius:14px}
#product-dialog .image-manager-heading{margin-bottom:10px}
#product-dialog .image-selection-tools{margin-bottom:14px}
@media(min-width:1400px){#product-dialog .editor-layout{grid-template-columns:340px minmax(0,1fr)}#product-dialog #image-preview{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1050px){#product-dialog .editor-layout{grid-template-columns:235px minmax(0,1fr)}#product-dialog .editor-layout>.editor-preview{margin:16px 12px 16px 14px;padding:14px}#product-dialog .editor-layout>.editor-main{padding:16px}#product-dialog #image-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-section-nav{padding:9px 16px;gap:5px}.editor-section-nav button{padding:10px 15px}}
@media(max-width:650px){#product-dialog{width:calc(100% - 12px);height:96vh;max-height:96vh}#product-dialog .editor-top{padding:14px;align-items:flex-start}#product-dialog .editor-top h2{font-size:15px;-webkit-line-clamp:2}#product-dialog .editor-top-actions{max-width:50%;gap:6px}#product-dialog .editor-top-actions .primary,#product-dialog .editor-top-actions .subtle{padding:8px 11px;font-size:11px}#product-dialog #product-status{flex-basis:100%;order:3}.editor-section-nav{padding:8px 10px}.editor-section-nav button{padding:8px 12px;font-size:12px}#product-dialog .editor-layout{grid-template-columns:1fr;grid-template-rows:170px minmax(0,1fr)}#product-dialog .editor-layout>.editor-preview{margin:10px 12px;display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;padding:10px;align-content:start}#product-dialog .editor-preview>.eyebrow{display:none}#product-dialog .editor-preview img{width:100px;grid-row:1/3;grid-column:1}#product-dialog .editor-preview h3{margin:0;font-size:12px;grid-column:2;grid-row:1}#product-dialog .editor-preview .editor-description-preview{margin:0;padding:0;border:0;font-size:11px;grid-column:2;grid-row:2}#product-dialog .editor-layout>.editor-main{padding:12px;border-left:0;border-top:1px solid var(--line)}#product-dialog .editor-section{padding:16px}#product-dialog .image-upload-tile{min-height:180px}}
#product-dialog .image-upload-actions{grid-column:1/-1;display:flex;align-items:center;gap:20px;padding-top:2px}
#product-dialog .image-upload-actions .image-upload-tile{width:calc((100% - 28px)/3);flex-shrink:0;min-height:210px}
#product-dialog #copy-all-images{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 24px;border:1px solid #00a849;border-radius:24px;background:#00a849;color:#fff;font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer}
#product-dialog #copy-all-images:hover:not(:disabled){background:#008e3e;border-color:#008e3e}
#product-dialog #copy-all-images:disabled{opacity:.45;cursor:not-allowed}
@media(min-width:1400px){#product-dialog .image-upload-actions .image-upload-tile{width:calc((100% - 42px)/4)}}
@media(max-width:1050px){#product-dialog .image-upload-actions .image-upload-tile{width:calc((100% - 14px)/2)}}
@media(max-width:650px){#product-dialog .image-upload-actions{gap:12px}#product-dialog .image-upload-actions .image-upload-tile{min-height:180px}#product-dialog #copy-all-images{min-height:44px;padding:10px 14px;font-size:12px}}
#product-dialog #image-preview>.image-upload-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px;padding:6px 0 0;margin:0;min-height:0}
#product-dialog .image-upload-actions .image-upload-button,#product-dialog .image-upload-actions #copy-all-images{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:0;min-height:40px;height:40px;padding:0 20px;border-radius:22px;font-size:13px;line-height:1;white-space:nowrap}
#product-dialog .image-upload-actions .image-upload-button{background:var(--input);border:1px solid var(--line);color:var(--text);font-weight:500}
#product-dialog .image-upload-actions .image-upload-button:hover:not(:disabled){background:var(--selected);border-color:var(--muted)}

.stock-type-switch{display:inline-flex;gap:6px;padding:5px;border:1px solid var(--line);border-radius:28px;background:var(--input)}
.stock-type-switch button{padding:9px 25px;border:0;background:transparent;border-radius:24px;color:var(--muted);font-size:13px}
.stock-type-switch button.active{background:var(--active);color:var(--on-active)}
.classification-pending{color:var(--danger)!important}
#library-workspace .tabs{flex-wrap:wrap}
.library-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}
#open-product-trash{font-size:11px;padding:9px 14px}
#trash-count{margin-left:4px;font-variant-numeric:tabular-nums;color:var(--muted)}
#product-dialog .editor-top-actions{flex-wrap:wrap;justify-content:flex-end}
.delete-product-button{border:1px solid var(--danger);color:var(--danger);background:transparent;padding:10px 16px;border-radius:24px;font-size:12px;white-space:nowrap;cursor:pointer}
.delete-product-button:hover:not(:disabled){background:color-mix(in srgb,var(--danger) 10%,transparent)}
.editor-action-separator{height:24px;width:1px;background:var(--line);margin:0 6px;flex-shrink:0}
.product-action-dialog{width:min(580px,calc(100% - 28px));max-height:85vh;overflow:auto;padding:26px;background:var(--page);color:var(--text);border:1px solid var(--line);border-radius:18px}
.product-action-dialog::backdrop{background:#080d14a6}
.product-action-dialog h2{font-size:21px;margin:0 0 18px}
.product-action-dialog p{font-size:12px;color:var(--muted);line-height:1.8;margin:12px 0}
.delete-product-preview{display:flex;align-items:center;gap:16px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--row)}
.delete-product-preview>img{width:80px;height:80px;object-fit:contain;border-radius:10px;background:var(--input)}
.delete-product-preview strong{font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.delete-product-preview p{margin:5px 0 0;font-size:11px}
.product-action-dialog .delete-unsaved-note{border-left:3px solid var(--danger);padding-left:12px;color:var(--danger)}
.product-action-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.confirm-delete-button{border:1px solid #b63d35;background:#b63d35;color:#fff;border-radius:24px;padding:10px 18px;font-size:12px;font-weight:600}
.confirm-delete-button:hover:not(:disabled){background:#9a302a}
#delete-product-status,#product-trash-status{color:var(--danger);white-space:pre-wrap}
#product-trash-dialog{width:min(800px,calc(100% - 28px))}
#product-trash-dialog h2{margin-bottom:6px}
#product-trash-dialog .dialog-heading{align-items:flex-start}
.trash-product-row{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}
.trash-product-row>img,.trash-image-empty{width:56px;height:56px;object-fit:contain;border-radius:9px;background:var(--input)}
.trash-product-row strong{display:block;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.trash-product-row p{font-size:10px;margin:4px 0 0}
.trash-empty{text-align:center;padding:35px 0}
@media(max-width:650px){.library-actions{flex-wrap:wrap;gap:6px}.editor-action-separator{display:none}#product-dialog .delete-product-button{padding:8px 11px;font-size:11px}.product-action-dialog{padding:20px}.trash-product-row{grid-template-columns:45px minmax(0,1fr);gap:12px}.trash-product-row>img,.trash-image-empty{width:45px;height:45px}.trash-product-row>.outline{grid-column:2;justify-self:start}.product-action-footer{flex-wrap:wrap}}
.category-cascade{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#product-dialog .category-cascade>div{min-width:0}
#product-dialog .category-cascade label{font-size:11px;color:var(--muted);margin-bottom:7px}
#product-dialog .category-cascade select{width:100%}
.selection .target-country-label{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}
.selection #target-country{margin-bottom:16px}
.selection .store-settings-button:disabled{opacity:.4;cursor:not-allowed;text-decoration:none}
.selection #export{white-space:normal;line-height:1.5}
@media(max-width:650px){.category-cascade{grid-template-columns:1fr;gap:12px}}
