/* Геометрия раздела. Общие компоненты определяются в aart-ui. */
@layer aart-legacy {
/* Сохранённый макет занимает одну область редактора; новые данные не имитируются. */
#prod-editor-view .production-data-side { min-width:0; min-height:0; }
#prod-editor-view .production-data-side .production-source-preview { display:flex; flex-direction:column; gap:10px; height:100%; max-height:calc(100dvh - 190px); min-height:0; margin:0; padding:12px; overflow:hidden; }
#prod-source-preview .production-source-heading { flex:0 0 auto; gap:10px; min-width:0; }
#prod-source-preview .production-source-heading>div { min-width:0; }
#prod-source-preview .production-source-heading h4 { margin:0; font-size:14px; line-height:20px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#prod-source-preview .production-source-heading p { margin:2px 0 0; font-size:11px; line-height:16px; }
#prod-source-preview .production-source-heading .button { flex:none; min-height:32px; padding:6px 9px; font-size:12px; white-space:nowrap; }
#prod-source-preview .production-source-filmstrip { flex:0 0 auto; gap:6px; padding:2px 1px 5px; margin:0; scrollbar-width:thin; }
#prod-source-preview .production-source-filmstrip button { flex-basis:43px; width:43px; padding:3px; border-radius:6px; }
#prod-source-preview .production-source-filmstrip button>span { height:38px; }
#prod-source-preview .production-source-filmstrip img { max-width:35px; max-height:38px; }
#prod-source-preview .production-source-filmstrip strong { margin-top:2px; font-size:11px; line-height:14px; }
#prod-source-preview .production-source-filmstrip button.active { border-color:var(--purple); box-shadow:inset 0 0 0 1px var(--purple); }
#prod-source-preview .production-source-viewport { flex:1 1 auto; height:auto; min-height:160px; max-height:none; margin:0; padding:8px; }
#prod-source-preview .production-source-toolbar { flex:0 0 auto; justify-content:space-between; gap:6px 12px; margin:0; }
.production-source-navigation,.production-source-zoom { display:flex; align-items:center; justify-content:center; gap:3px; }
.production-source-navigation { flex:none; }
.production-source-navigation .production-source-position { min-width:84px; text-align:center; font-size:11px; color:var(--muted); white-space:nowrap; }
#prod-source-preview .production-source-toolbar button,.production-source-viewer .production-source-toolbar button { display:inline-flex; align-items:center; justify-content:center; min-width:30px; min-height:30px; padding:4px 7px; border-radius:6px; font-size:12px; }
.production-source-toolbar button:disabled { opacity:.4; cursor:default; }
.production-source-toolbar button[aria-pressed=true] { color:var(--purple); background:var(--accent-soft); border-color:var(--accent-line); }
#prod-source-preview .production-source-toolbar output,.production-source-viewer .production-source-toolbar output { min-width:43px; font-size:11px; }
#prod-source-preview .production-source-toolbar>.text-button { flex:none; padding:3px 0; font-size:11px; }
#prod-source-preview .production-source-status { flex:0 0 auto; margin:0; color:var(--muted); font-size:12px; line-height:18px; }
.production-source-missing { display:flex; flex:1 1 auto; align-items:center; justify-content:center; margin:0; padding:20px; border:1px dashed var(--line); border-radius:8px; background:var(--canvas); color:var(--muted); font-size:13px; line-height:1.6; text-align:center; }
#prod-source-preview>figure { display:flex; flex:1 1 auto; flex-direction:column; gap:6px; min-height:0; margin:0; }
#prod-source-preview>figure figcaption { font-size:11px; color:var(--muted); }
#prod-source-preview>.production-source-tabs { display:flex; flex:0 0 auto; gap:6px; overflow-x:auto; padding-bottom:5px; }
#prod-source-preview>.production-source-tabs button { flex:0 0 auto; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.production-source-dialog.production-source-viewer { width:min(1200px,calc(100vw - 40px)); height:calc(100dvh - 40px); max-width:none; max-height:none; padding:16px; overflow:hidden; }
.production-source-dialog.production-source-viewer[open] { display:flex; flex-direction:column; gap:12px; }
.production-source-viewer .production-image-dialog-heading { flex:0 0 auto; min-width:0; gap:16px; }
.production-source-viewer .production-image-dialog-heading>div { min-width:0; }
.production-source-viewer .production-image-dialog-heading h3 { font-size:17px; line-height:24px; margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.production-source-viewer .production-image-dialog-heading .production-source-status { font-size:12px; line-height:18px; margin:3px 0 0; }
.production-source-viewer .production-image-dialog-heading>button { flex:none; padding:0 7px; min-width:36px; min-height:36px; }
.production-source-viewer .production-source-viewport { flex:1 1 auto; height:auto; min-height:0; max-height:none; }
.production-source-dialog.production-source-viewer .production-source-toolbar { flex:0 0 auto; justify-content:space-between; gap:12px; margin:0; }
.production-source-viewport:focus-visible { outline:2px solid var(--purple); outline-offset:2px; }
@media(max-width:1100px) {
 #prod-editor-view .production-data-side .production-source-preview { height:480px; max-height:calc(100dvh - 40px); }
}
@media(max-width:650px) {
 #prod-editor-view .production-data-side .production-source-preview { padding:10px; gap:8px; }
 #prod-source-preview .production-source-heading h4 { font-size:13px; }
 #prod-source-preview .production-source-toolbar { justify-content:center; }
 #prod-source-preview .production-source-toolbar>.text-button { margin-left:auto; }
 .production-source-dialog.production-source-viewer { width:calc(100vw - 16px); height:calc(100dvh - 16px); padding:12px; border-radius:12px; }
 .production-source-dialog.production-source-viewer[open] { gap:10px; }
 .production-source-viewer .production-image-dialog-heading h3 { font-size:15px; }
 .production-source-dialog.production-source-viewer .production-source-toolbar { justify-content:center; }
}
}
