/* Apartment processing is a route in the CRM, not another modal window. */
:root.crm-app .screen:has(>.listing-editor-page){display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:0;background:var(--bg)}
:root.crm-app .screen>.listing-editor-page{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;width:100%;height:100%;margin:0;border:0;border-radius:0;box-shadow:none;overflow:hidden;background:var(--bg)}
:root.crm-app .listing-editor-head{display:flex;align-items:center;gap:8px;flex:none;padding:0 12px;border-bottom:1px solid var(--line);background:var(--bg)}
:root.crm-app .listing-editor-head>div{min-width:0;flex:1}
:root.crm-app .listing-editor-head h1{margin:0;font-size:14px;line-height:18px;font-weight:600}
.listing-editor-subtitle{font-size:11px;line-height:16px;color:var(--text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root.crm-app .listing-editor-head .listing-editor-back{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;display:inline-flex;align-items:center;justify-content:center}
.listing-editor-back svg{width:22px;height:22px}
/* ⚠️ Прокрутка. Эти правила писались под IFRAME: внутри него страница
   прокручивалась сама, а снаружи стоял overflow:hidden. Редактор стал
   обычной разметкой — и прокрутка пропала: на планшете содержимое в
   2436 px обрезалось окном в 1180 и не двигалось ни касанием, ни
   колесом (замерено 24.10.2026, пункт 35).
   Прокручивается сама страница; шапка остаётся на месте. */
:root.crm-app .screen>.listing-editor-page{overflow-y:auto;-webkit-overflow-scrolling:touch;
  overscroll-behavior:contain}
:root.crm-app .listing-editor-head{position:sticky;top:0;z-index:3;background:var(--bg)}

:root.crm-app .listing-editor-page>.listing-editor{display:block;flex:1 1 0;min-height:0;width:100%;height:100%;border:0;background:var(--bg)}
@media(max-width:980px){
  /* The editor owns the bottom actions. The global dock must not cover them. */
  :root.crm-app body:has(.screen>.listing-editor-page) .mobile-dock{display:none}
  :root.crm-app .listing-editor-head{padding:env(safe-area-inset-top) 12px 0}
}
