/* Reuses the prototype's cards, proportions, chips, photo cells and checklist. */
#edGrid.editor-grid{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(330px,1.3fr) minmax(230px,.85fr)!important;gap:14px;align-items:start}
.editor-col{display:flex;flex-direction:column;gap:14px;min-width:0}
.editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.editor-fields.thirds{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.editor-col .field{min-width:0}.editor-col .inp{width:100%;min-width:0}
.editor-col .card-h{gap:8px}.editor-col .card-h .src{margin-left:auto}
.editor-col .card-b{display:flex;flex-direction:column;gap:13px}
.editor-col .ro-row{min-height:27px}.editor-col .hint{margin:0;overflow-wrap:anywhere}
.editor-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.editor-photo-grid .imgcell{width:100%;padding:0;position:relative;overflow:hidden;min-height:96px;cursor:pointer}
.editor-photo-grid .imgcell img{width:100%;height:100%;object-fit:contain;background:rgba(0,0,0,.12)}
.editor-photo-grid .imgcell .tag{z-index:2;max-width:calc(100% - 14px)}
.editor-photo-grid .imgcell .ed-image-caption{position:absolute;bottom:0;left:0;right:0;background:rgba(1,18,31,.9);font-size:10px;padding:7px;color:var(--txt-2);line-height:1.4}
.editor-photo-grid .imgcell .tag{background:rgba(1,18,31,.9)}
.ed-placeholder{display:flex;flex-direction:column;align-items:center;gap:9px;color:var(--txt-3)}
.editor-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.editor-bar .eyebrow{white-space:nowrap}.editor-bar .prodbar{flex:1}
.ed-sync{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:var(--glass)}
.ed-sync b{font-size:12px;flex:1}.ed-sync .chip{height:auto;min-height:22px}
#edD{min-height:165px;resize:vertical;line-height:1.8}
.ed-state{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:var(--txt-3);font-size:11px}
.ed-search-result{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}
.ed-search-result .tx{flex:1;min-width:0}.ed-search-result strong{font-size:12px}.ed-search-result .btn{flex:0 0 auto}
.ed-upload-state{color:var(--txt-2);font-size:12px;line-height:1.7;min-height:18px}
.ed-server-error{color:#F5A0A3;white-space:pre-wrap;overflow-wrap:anywhere}
.ed-color-pending{padding:16px;border:1px dashed var(--line-2);border-radius:10px;color:var(--txt-3);font-size:11px;line-height:1.8}
.ed-save-note{font-size:11px;color:var(--txt-2);line-height:1.65}
#edPreview .sf-image{min-height:140px}#edPreview img{max-height:190px}
.ed-related{max-height:250px;overflow:auto}.ed-related .sf-data{grid-template-columns:1fr 1.5fr}
@media(min-width:1025px) and (max-width:1350px){#edGrid.editor-grid{grid-template-columns:minmax(225px,.85fr) minmax(300px,1.3fr)!important}.editor-col.ed-right{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}}
@media(max-width:1024px){#edGrid.editor-grid{grid-template-columns:minmax(210px,.85fr) minmax(300px,1.3fr)!important}.editor-col.ed-right{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
@media(max-width:690px){#edGrid.editor-grid{grid-template-columns:1fr!important}.editor-col.ed-right{grid-column:auto;display:flex}.editor-fields.thirds{grid-template-columns:1fr}.editor-photo-grid{gap:7px}.editor-photo-grid .imgcell .tag{font-size:8px}.editor-fields{grid-template-columns:1fr}.page-actions .btn{flex:1}.editor-photo-grid .imgcell{min-height:110px}}

.ed-if-review{display:flex;flex-direction:column;gap:12px}.ed-if-change{display:grid;grid-template-columns:110px 1fr 1fr;gap:12px;padding:12px;border:1px solid var(--line);border-radius:10px;font-size:12px}.ed-if-change pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:150px;overflow:auto;font:inherit;color:var(--txt-2)}.ed-operation{padding:15px 0;border-bottom:1px solid var(--line)}.ed-operation small{color:var(--txt-3)}@media(max-width:690px){.ed-if-change{grid-template-columns:1fr}}
.ed-variant-photos,.ed-variant-block{display:flex;flex-direction:column;gap:10px}
.ed-variant-block{padding:10px;border:1px solid var(--line);border-radius:10px}
.ed-variant-label{font-size:11px;font-weight:600;color:var(--txt-2);margin-bottom:2px}
.ed-inv-wrap{overflow-x:auto;max-width:100%}
.ed-inv-table{width:100%;border-collapse:collapse;font-size:12px}
.ed-inv-table th,.ed-inv-table td{padding:6px 8px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}
.ed-inv-table td.hint{white-space:normal;font-size:11px;min-width:160px}
.ed-inv-table th{color:var(--txt-3);font-weight:600;font-size:10px;text-transform:uppercase;letter-spacing:.03em}
.btn.danger{background:linear-gradient(180deg,#E24C4C,#B23030);border-color:rgba(255,255,255,.20);box-shadow:0 8px 20px -10px rgba(178,48,48,.85), inset 0 1px 0 rgba(255,255,255,.22);color:#fff}
.btn.danger:hover{background:linear-gradient(180deg,#EE5C5C,#9E2828)}
