/* Геометрия раздела. Общие компоненты определяются в aart-ui. */
@layer aart-legacy {
/* Редактор товара: одна прокрутка данных, постоянные действия, полный кадр рядом. */
#prod-editor-view { --editor-line:#e3e5ec; --editor-muted:#606879; }
#prod-editor-view [hidden] { display:none!important; }
#prod-editor-view .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
#prod-editor-view .production-focus-toolbar { margin:0 0 10px; min-height:32px; }
#prod-editor-view .production-focus-toolbar .button { min-height:32px; padding:6px 10px; font-size:12px; }
#prod-editor-view .production-data-layout { display:grid; grid-template-columns:minmax(380px,1fr) minmax(340px,.85fr); gap:20px; height:calc(100dvh - 190px); min-height:0; max-height:960px; margin:0; padding:0; border:0; align-items:stretch; }
#prod-product-form { display:flex; flex-direction:column; min-width:0; min-height:0; border:1px solid var(--editor-line); border-radius:12px; background:#fff; overflow:hidden; }
#prod-editor-view .production-editor-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px 12px; margin:0; }
#prod-editor-view .production-editor-heading .section-kicker { font-size:10px; line-height:14px; letter-spacing:.08em; }
#prod-editor-view .production-editor-heading>div:first-child { min-width:0; flex:1; }
#prod-editor-view .production-editor-heading h4 { margin:3px 0 0; font-size:18px; line-height:24px; letter-spacing:-.02em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#prod-editor-view .production-editor-readiness { display:flex; flex:0 0 auto; flex-direction:column; align-items:flex-end; max-width:45%; gap:2px; text-align:right; }
#prod-editor-view #prod-data-progress { font-size:12px; line-height:18px; margin:0; font-weight:500; }
#prod-editor-view .text-button { font-size:12px; line-height:18px; padding:4px 0; min-height:28px; }
#prod-editor-view .production-data-tools { display:block; padding:0 18px 10px; margin:0; background:transparent; border:0; border-radius:0; border-bottom:1px solid var(--editor-line); }
#prod-editor-view .production-data-filters { display:grid; grid-template-columns:minmax(120px,1fr) 168px; gap:8px; margin:0; }
#prod-editor-view .production-data-filters label { margin:0; min-width:0; }
#prod-editor-view .production-data-filters input,#prod-editor-view .production-data-filters select { margin:0; min-height:36px; height:36px; font-size:13px; padding:6px 10px; border-radius:7px; }
#prod-editor-view .production-editor-tools-meta { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:5px; }
#prod-editor-view #prod-field-count { margin:0; flex-shrink:0; font-size:11px; }
#prod-editor-view #prod-copy-note { margin:4px 0 0; font-size:12px; line-height:17px; }
#prod-editor-view #prod-copy-note:empty { display:none; }
#prod-editor-view .production-editor-scroll { flex:1; min-height:0; overflow:auto; overscroll-behavior-y:contain; scrollbar-gutter:stable; padding:16px 18px 12px; scroll-padding:16px; }
#prod-editor-view .production-editor-identity { display:grid; grid-template-columns:minmax(110px,.65fr) minmax(180px,1.35fr); gap:12px; margin:0 0 20px; }
#prod-editor-view .production-editor-identity label { font-size:12px; line-height:18px; font-weight:600; margin:0 0 5px; }
#prod-editor-view .production-editor-identity input { font-size:14px; min-height:38px; height:38px; padding:7px 10px; margin:0; border-radius:7px; }
#prod-editor-view #prod-sku-note { font-size:11px; line-height:16px; margin-top:4px; }
#prod-editor-view .production-field-group { margin:0 0 20px; min-width:0; }
#prod-editor-view .production-field-group h5 { display:flex; align-items:center; gap:8px; margin:0 0 10px; font-size:13px; line-height:20px; font-weight:650; }
#prod-editor-view .production-field-group h5 span { font-size:11px; line-height:18px; font-weight:500; color:var(--editor-muted); padding:0 6px; border:1px solid var(--editor-line); border-radius:5px; }
#prod-editor-view .production-field-card { position:relative; min-width:0; padding:12px 0; border:0; border-bottom:1px solid var(--editor-line); background:#fff; border-radius:0; }
#prod-editor-view .production-field-card:first-of-type { padding-top:0; }
#prod-editor-view .production-field-card.is-source-selected { box-shadow:-3px 0 0 #a981fa; background:#fff; padding-left:10px; margin-left:-10px; }
#prod-editor-view .production-field-card-heading { display:grid; grid-template-columns:minmax(0,1fr) max-content; align-items:baseline; gap:12px; margin:0 0 6px; }
#prod-editor-view .production-field-card-heading label { min-width:0; margin:0; font-size:13px; line-height:18px; font-weight:600; overflow-wrap:anywhere; }
#prod-editor-view .production-field-required { color:var(--editor-muted); }
#prod-editor-view .production-field-unit { font-weight:400; color:var(--editor-muted); }
#prod-editor-view .production-field-state { display:block; flex-shrink:0; white-space:nowrap; font-size:11px; line-height:16px; font-weight:400; color:var(--editor-muted); margin:0; }
#prod-editor-view .production-field-state.needs-attention { color:#a63c0a; }
#prod-editor-view .production-field-card textarea { display:block; width:100%; min-height:40px; max-height:180px; height:auto; field-sizing:content; padding:9px 10px; border:1px solid #cdd2dd; border-radius:7px; background:#fff; font-size:14px; line-height:20px; margin:0; resize:vertical; }
#prod-editor-view .production-field-card textarea:focus { border-color:#8550e8; outline:2px solid #e9dcff; outline-offset:1px; }
#prod-editor-view .production-field-original { margin-top:5px; min-width:0; }
#prod-editor-view .production-source-value { display:flex; align-items:baseline; gap:8px; padding:0; margin:0; max-height:none; overflow:visible; border:0; background:none; }
#prod-editor-view .production-source-label { font-size:11px; color:var(--editor-muted); white-space:nowrap; }
#prod-editor-view .production-source-text { font-size:12px; line-height:18px; color:#505969; min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#prod-editor-view .production-source-value .button { flex-shrink:0; min-height:30px; padding:4px 5px; background:transparent; border:0; box-shadow:none; font-size:11px; color:#672bd1; border-radius:4px; }
#prod-editor-view .production-source-conflict { color:#a63c0a; font-size:12px; line-height:18px; margin:5px 0; }
#prod-editor-view .production-field-original-note { font-size:12px; line-height:18px; color:var(--editor-muted); margin:0; }
#prod-editor-view .production-field-details { margin:4px 0 0; padding:0; border:0; background:none; }
#prod-editor-view .production-field-details>summary { font-size:11px; line-height:18px; color:var(--editor-muted); cursor:pointer; padding:0; }
#prod-editor-view .production-field-details>div { padding:7px 10px; margin-top:5px; border-radius:6px; background:#f6f7f9; }
#prod-editor-view .production-field-details small { display:block; font-size:11px; line-height:17px; color:var(--editor-muted); overflow-wrap:anywhere; }
#prod-editor-view .production-field-locations { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
#prod-editor-view .production-field-locations .button { min-height:28px; padding:3px 7px; font-size:11px; }
#prod-editor-view .production-image-field { margin:0; }
#prod-editor-view .production-image-pick { width:100%; padding:10px; gap:12px; border-radius:8px; background:#f9f8fc; }
#prod-editor-view .production-image-pick>span:first-child { width:60px; height:64px; flex:0 0 60px; }
#prod-editor-view .production-image-choice { width:60px; height:64px; object-fit:contain; }
#prod-editor-view .production-image-pick strong { font-size:13px; line-height:20px; }
#prod-editor-view .production-image-pick small { font-size:12px; line-height:18px; overflow-wrap:anywhere; }
#prod-editor-view .production-image-file-details { margin:6px 0; font-size:11px; }
#prod-editor-view .production-image-upload { min-height:32px; padding:6px 9px; font-size:12px; border-radius:7px; }
#prod-editor-view .production-image-upload-state:empty { display:none; }
#prod-editor-view .production-data-save { position:static; flex-shrink:0; margin:0; padding:12px 18px; border:0; border-top:1px solid var(--editor-line); border-radius:0; box-shadow:0 -4px 16px #1c233106; background:#fff; }
#prod-editor-view .production-data-save .production-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:0; }
#prod-editor-view .production-data-save .button { min-height:38px; padding:8px 12px; font-size:13px; border-radius:7px; }
#prod-editor-view .production-data-save .production-product-state { font-size:11px; line-height:16px; margin:7px 0 0; }
#prod-editor-view .production-data-save .form-error { font-size:12px; line-height:18px; margin:0 0 8px; }
#prod-editor-view .production-data-hint,#prod-editor-view .production-fields-empty { margin:12px 0; font-size:12px; line-height:18px; }
#prod-editor-view .production-data-side { position:static; min-width:0; min-height:0; height:100%; align-self:stretch; }
@media(max-width:1100px) {
 #prod-editor-view .production-data-layout { height:auto; min-height:0; max-height:none; grid-template-columns:minmax(0,1fr); gap:16px; }
 #prod-product-form { overflow:visible; }
 #prod-editor-view .production-editor-scroll { overflow:visible; }
 #prod-editor-view .production-field-card textarea { max-height:min(180px,var(--editor-focus-room,180px)); }
 #prod-editor-view .production-data-save { position:sticky; bottom:0; z-index:4; border-radius:0 0 12px 12px; }
 #prod-editor-view .production-data-side { height:480px; }
}
@media(max-width:600px) {
 #prod-editor-view .production-editor-heading { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:6px; padding:12px; }
 #prod-editor-view .production-editor-heading h4 { font-size:17px; }
 #prod-editor-view .production-editor-readiness { flex-direction:row; align-items:center; justify-content:space-between; gap:8px; max-width:none; text-align:left; }
 #prod-editor-view #prod-data-progress { font-size:11px; }
 #prod-editor-view .production-data-tools { padding:0 12px 8px; }
 #prod-editor-view .production-data-filters { grid-template-columns:minmax(0,1fr) 130px; gap:6px; }
 #prod-editor-view .production-data-filters select { font-size:12px; padding-left:6px; }
 #prod-editor-view .production-editor-scroll { padding:12px; }
 #prod-editor-view .production-editor-identity { grid-template-columns:minmax(0,1fr); gap:10px; margin-bottom:16px; }
 #prod-editor-view .production-field-card-heading { gap:6px; }
 #prod-editor-view .production-field-state { max-width:none; text-align:right; }
 #prod-editor-view .production-data-save { padding:10px 12px; }
 #prod-editor-view .production-data-save .production-actions { gap:8px; }
 #prod-editor-view .production-data-save .text-button { min-height:32px; }
 #prod-editor-view .production-data-save .production-product-state { max-height:48px; overflow:auto; }
}

@media(max-width:420px) {
 #prod-editor-view .production-data-filters { grid-template-columns:minmax(0,1fr); }
}

#prod-editor-view .production-source-full { font-size:12px; line-height:18px; margin:0 0 7px; white-space:pre-wrap; overflow-wrap:anywhere; color:#505969; }

#production-panel[data-product-view=editor][data-workspace-mode=products] #prod-data-section { padding:0; border:0; background:transparent; }
#production-panel[data-product-view=editor][data-workspace-mode=products] .production-workspace-context { display:none; }
#production-panel[data-product-view=editor][data-workspace-mode=products] #prod-workspace-navigation { margin-bottom:10px; }
#production-panel[data-product-view=editor][data-workspace-mode=products] #prod-template-section { padding:6px 12px; margin-bottom:8px; border-radius:8px; }
#production-panel[data-product-view=editor][data-workspace-mode=products] #prod-template { min-height:34px; height:34px; font-size:12px; padding:5px 8px; }
#production-panel[data-product-view=editor][data-workspace-mode=products] .production-workspace-tabs [role=tab] { padding:9px 16px; font-size:13px; }
#prod-editor-view .production-focus-toolbar { padding-bottom:8px; }

#prod-editor-preview { display:none; }
@media(max-width:1100px) {
 #prod-editor-preview { display:inline-flex; align-items:center; }
 #prod-editor-view .production-data-side { display:none; }
 #prod-editor-next { display:none; }
}
}
