/* Полноэкранное приложение (с 02.11.2026): без рамки, во весь экран телефона; на компьютере — колонка по центру. */
html,body{height:100%;overflow:hidden;background:#fff}
.layout{position:relative;display:block;width:100%;height:100%;max-width:none;margin:0;padding:0}
.phone{position:relative;width:100%;max-width:560px;height:100%;margin:0 auto;display:flex;flex-direction:column;border:0;border-radius:0;box-shadow:none;overflow:hidden}
.phone .app-header{flex:none;padding:calc(14px + env(safe-area-inset-top,0px)) 20px 12px}
.phone .screen{flex:1;min-height:0;min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:20px;scrollbar-width:none}
.phone .screen::-webkit-scrollbar{display:none}
.phone>nav{position:relative;bottom:auto;flex:none;padding:8px 6px calc(12px + env(safe-area-inset-bottom,0px))}
.phone>.demo{display:none}
.phone .screen[data-route=chat]{overflow:hidden;padding:12px 16px}
.phone .messenger-thread{height:100%;min-height:0;max-height:none;margin:0}
.phone .msg-history{min-height:0}
.phone.onboarding-active .screen{overflow-y:auto}
.phone:has(.onboard-welcome) .screen{padding-top:calc(20px + env(safe-area-inset-top,0px))}
.notes,.frame-controls{display:none!important}
@media(min-width:600px){body{background:#f6f3f9}.phone{background:#fff;box-shadow:0 0 60px #4935650f}}
/* v1.6: высота по видимой области iPhone, без масштабирования */
html,body{height:100%;height:100dvh;overscroll-behavior:none;touch-action:manipulation;-webkit-text-size-adjust:100%}
.layout{height:var(--app-h,100dvh)}
.real-map{touch-action:none}
input,textarea,select{font-size:16px!important}
/* v1.7: чат на iPhone Safari — поле ввода всегда видно */
.phone .screen[data-route=chat]{display:flex;flex-direction:column}
.phone .messenger-thread{flex:1 1 auto;height:auto!important;min-height:0!important;max-height:none!important}
.phone .msg-history{flex:1 1 auto;min-height:0}
/* v1.8: клавиатура iPhone — без «пустого экрана», меню скрыто, поле над клавиатурой */
.layout{position:fixed;left:0;right:0;top:0;height:var(--app-h,100dvh);transform:translateY(var(--vv-top,0px))}
.kb-open .phone>nav{display:none}
.kb-open .phone .app-header{padding-top:8px;padding-bottom:8px}
.kb-open .phone .brand-tagline{display:none}
.phone .screen[data-route=chat]{padding-bottom:8px}
.phone .msg-compose{backdrop-filter:none;-webkit-backdrop-filter:none;background:#fff;padding-top:8px}
