/* Полноэкранный и компактный чат «Точки». Все утверждённые фото и цвета сохраняются. */
#tochka-guide .tg-header{gap:8px;flex:0 0 auto}
#tochka-guide .tg-header>div:first-child{min-width:0}
#tochka-guide .tg-header-actions,
#tochka-guide .tg-window-actions{display:flex;gap:6px;align-items:center;flex:none}
#tochka-guide .tg-expand{
 display:inline-flex;align-items:center;justify-content:center;gap:6px;
 min-width:42px;min-height:38px;padding:6px 9px;
 border:1px solid #85a892;border-radius:9px;background:#326a50;
 color:#fff5df;font-size:12px;font-weight:750;line-height:1;cursor:pointer;
}
#tochka-guide .tg-expand-glyph{font-size:18px;line-height:1}
#tochka-guide .tg-expand:focus-visible{
 outline:3px solid #f2d58e;outline-offset:2px
}
#tochka-guide .tg-close{min-height:38px;min-width:38px}
#tochka-guide .tg-tabs{flex:0 0 auto}
#tochka-guide .tg-content{
 min-height:0;flex:1 1 auto;
 overflow-y:auto;overflow-x:hidden;
 overscroll-behavior:contain;
 -webkit-overflow-scrolling:touch;
 scroll-padding-top:8px;
}
#tochka-guide .tg-form{
 min-height:0;flex:0 0 auto;
 position:relative;z-index:2;
 background:#fcfaf5;
 padding:10px;
 padding-bottom:max(10px,env(safe-area-inset-bottom,0px));
}
#tochka-guide .tg-form .tg-input-wrap textarea{
 box-sizing:border-box;
 display:block;flex:1 1 auto;width:100%;
 min-width:0;min-height:44px;
 max-height:160px;
 padding:10px 40px 10px 11px;
 margin:0;border:1px solid #cad9c6;border-radius:10px;
 background:#fff;color:#254333;
 font-family:inherit;font-size:16px;line-height:1.45;
 resize:none;overflow-y:auto;overflow-x:hidden;
 white-space:pre-wrap;overflow-wrap:anywhere;
}
#tochka-guide .tg-form textarea::placeholder{color:#738777;opacity:1}
#tochka-guide .tg-form textarea:focus-visible{
 outline:2px solid #b9a16d;outline-offset:2px
}
#tochka-guide .tg-form .tg-clear{top:22px}
#tochka-guide .tg-form .tg-send{min-height:44px;align-self:flex-end}
#tochka-guide .tg-panel.tg-expanded{
 position:fixed!important;
 left:var(--tg-visible-left,0px)!important;
 right:auto!important;
 top:var(--tg-visible-top,0px)!important;
 bottom:auto!important;
 width:var(--tg-visible-width,100vw)!important;
 max-width:none!important;
 min-width:0!important;
 height:var(--tg-visible-height,100dvh)!important;
 max-height:var(--tg-visible-height,100dvh)!important;
 min-height:0!important;
 padding:0!important;margin:0!important;
 border:0!important;border-radius:0!important;
 box-shadow:none!important;
 overflow:hidden!important;
}
#tochka-guide .tg-panel.tg-expanded .tg-content{
 padding:16px clamp(14px,4vw,26px);
}
#tochka-guide .tg-panel.tg-expanded .tg-note,
#tochka-guide .tg-panel.tg-expanded .tg-user{
 max-width:780px;
}
#tochka-guide .tg-panel.tg-expanded .tg-form{
 padding-left:clamp(10px,3vw,24px);
 padding-right:clamp(10px,3vw,24px);
}
#tochka-guide .tg-panel.tg-expanded .tg-form textarea{
 min-height:48px;
}
@media(max-width:700px){
 #tochka-guide .tg-panel.tg-keyboard-open:not(.tg-expanded){
  left:calc(var(--tg-visible-left,0px) + 6px)!important;
  right:auto!important;
  top:calc(var(--tg-visible-top,0px) + 6px)!important;
  bottom:auto!important;
  width:calc(var(--tg-visible-width,100vw) - 12px)!important;
  max-width:none!important;
  min-width:0!important;
  height:calc(var(--tg-visible-height,100dvh) - 12px)!important;
  max-height:calc(var(--tg-visible-height,100dvh) - 12px)!important;
  min-height:0!important;border-radius:13px!important;
 }
 #tochka-guide .tg-expanded .tg-note{font-size:15px;line-height:1.6}
 #tochka-guide .tg-expanded .tg-user{font-size:15px;line-height:1.55}
}
@media(max-width:370px){
 #tochka-guide .tg-expand-text{display:none}
 #tochka-guide .tg-expand{min-width:40px;padding:6px 8px}
 #tochka-guide .tg-header strong{font-size:17px}
}
