
.tg-support-settings{border-bottom:1px solid rgba(153,181,155,.25);padding:7px 13px;background:rgba(238,247,237,.94);font-size:12px;color:#2c5941}
.tg-support-settings summary{cursor:pointer;font-weight:750}
.tg-support-setting-row{display:flex;gap:7px;margin-top:9px}
.tg-support-setting-row input{flex:1;min-width:0;border:1px solid #b9d1b9;border-radius:8px;padding:9px;font-size:13px;background:#fff;color:#233f32}
.tg-support-setting-row button{border:0;border-radius:8px;background:#2c6748;color:#fff;padding:9px 12px}
.tg-support-toggle{display:flex;align-items:center;gap:7px;margin:10px 0 4px;font-size:12px}
.tg-support-toast{position:fixed;z-index:1200;right:12px;bottom:96px;width:min(330px,calc(100vw - 24px));box-sizing:border-box;border:1px solid #d4c5a3;border-left:4px solid #b39557;border-radius:15px;padding:12px 14px;background:#fffbf1;color:#334d3d;box-shadow:0 12px 40px rgba(20,35,28,.21);font-size:13px;line-height:1.5}
.tg-support-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tg-support-heading strong{font-size:14px;color:#446143}
.tg-support-heading button{background:transparent;border:0;font-size:22px;line-height:1;padding:5px;color:#667c66}
.tg-support-toast p{margin:8px 0 10px}
.tg-support-actions{display:flex;gap:8px;flex-wrap:wrap}
.tg-support-actions button{border:1px solid #ced9c5;background:#edf3e8;color:#355d40;border-radius:8px;padding:8px 11px;font-size:12px;font-weight:650}
body.tg-open .tg-support-toast{display:none}
@media(max-width:540px){.tg-support-toast{bottom:94px;right:9px;width:min(315px,calc(100vw - 18px))}}

/* Шлифовка 3.0: тёплое приветствие с главным действием и тихим отказом. */
.tg-support-toast{
 width:min(296px,calc(100vw - 20px));
 max-height:min(280px,45dvh);
 overflow-y:auto;
 padding:10px 12px 9px;
 border-radius:14px;
 border-left-width:3px;
 font-size:13px;
 line-height:1.45;
}
.tg-support-heading strong{font-size:13px}
.tg-support-heading button{font-size:21px;min-width:28px;min-height:28px}
.tg-support-toast p{margin:6px 0 10px}
.tg-support-actions{display:flex;flex-direction:column;gap:3px;align-items:stretch}
.tg-support-actions .tg-support-primary{
 width:100%;
 min-height:41px;
 text-align:center;
 border:1px solid #245b42;
 border-radius:10px;
 background:#285f45;
 color:#fff;
 padding:10px 12px;
 font-size:13px;
 font-weight:750;
}
.tg-support-actions .tg-support-muted{
 align-self:flex-end;
 min-height:26px;
 padding:4px 1px;
 border:0;
 background:transparent;
 color:#697d70;
 text-decoration:underline;
 text-underline-offset:2px;
 font-size:11px;
 font-weight:400;
}
.tg-support-actions .tg-support-muted:hover{color:#365b42}
.tg-support-actions button:focus-visible{outline:2px solid #bca267;outline-offset:2px}
@media(max-width:540px){
 .tg-support-toast{right:9px;bottom:calc(86px + env(safe-area-inset-bottom,0px));width:min(285px,calc(100vw - 18px))}
}

/* Optional first-visit name question within the existing, scrollable welcome. */
#tochka-guide .tg-welcome-card{
 max-height:calc(100dvh - 32px);
 overflow-y:auto;
}
#tochka-guide .tg-welcome-name{
 background:#f1f4e9;
 border:1px solid #dae2ce;
 border-radius:13px;
 padding:11px 12px;
 margin:13px 0;
 text-align:left;
}
#tochka-guide .tg-welcome-name label{display:block;font-size:14px;font-weight:750;margin-bottom:6px;color:#2c5540}
#tochka-guide .tg-welcome-name input{
 width:100%;box-sizing:border-box;
 min-height:44px;
 border:1px solid #bfcfba;
 border-radius:9px;
 background:#fff;
 color:#204332;
 font-size:16px;
 padding:10px 12px;
}
#tochka-guide .tg-welcome-name input:focus-visible{outline:2px solid #bb9d56;outline-offset:2px}
#tochka-guide .tg-welcome-name small{
 display:block;font-size:11px;color:#667c6b;line-height:1.4;margin-top:6px
}

/* Отвечаем на ежедневное приветствие живым сообщением, не создавая второе окно. */
.tg-support-actions .tg-support-greet{min-height:44px;font-size:13px}
.tg-support-actions .tg-support-talk{
 min-height:38px!important;background:rgba(236,242,230,.92)!important;
 color:#315c42!important;border-color:#becdbb!important;font-size:12px!important;
 box-shadow:none!important;
}
.tg-support-toast:has(.tg-support-greet){max-height:min(350px,54dvh)}
