/* S Home — конверт, чат на весь экран, галерея, статус «в сети» (шаг 54) */
.envbtn{position:relative;display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid var(--border);background:var(--surface);color:var(--text);flex:none;text-decoration:none}
.envbtn svg{width:20px;height:20px}
.envbtn .ec{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#25d366;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;display:none;box-sizing:border-box}
.envbtn.has .ec{display:block}
.envbtn.has{border-color:#25d366}
/* чат на весь экран */
.wa{position:fixed!important;inset:0;z-index:2000;height:100vh!important;height:100dvh!important;max-height:none!important;min-height:0!important;border-radius:0!important;border:0!important}
html.wa-full,html.wa-full body{overflow:hidden!important}
.wa-back{display:flex!important}
.wa-list{padding-left:max(8%,12px);padding-right:max(8%,12px)}
@media (min-width:1100px){.wa-list{padding-left:18%;padding-right:18%}.wa-head,.wa-ctx,.wa-form,.wa-rec,.wa-banner,.wa-file{padding-left:max(18%,16px);padding-right:max(18%,16px)}}
.wa-sub{font-size:12.5px;color:var(--muted)}
.wa-pres{color:var(--muted)}
.wa-pres.on{color:#16a34a;font-weight:700}
.wa-who span.wa-sub{font-size:12.5px}
/* статус на странице продавца */
.sh-presence{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);margin:2px 0 4px}
.sh-presence i{width:9px;height:9px;border-radius:50%;background:var(--border);display:inline-block}
.sh-presence.on{color:#16a34a;font-weight:700}
.sh-presence.on i{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.25)}
/* галочки в списке чатов */
.ctick{color:var(--muted);font-size:11px;letter-spacing:-2px;margin-right:6px}
.ctick.read{color:#53bdeb}
/* галерея */
html.lb-open,html.lb-open body{overflow:hidden}
.lb{position:fixed;inset:0;z-index:3000;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;touch-action:pan-y}
.lb[hidden]{display:none!important}
.lb-top{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:14px;padding:12px 16px;color:#fff;z-index:2;background:linear-gradient(rgba(0,0,0,.55),transparent)}
.lb-top a,.lb-top button{color:#fff;background:rgba(255,255,255,.14);border:0;border-radius:50%;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;font-size:18px;text-decoration:none;cursor:pointer}
.lb-stage{flex:1;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
.lb-img{max-width:100%;max-height:88vh;max-height:88dvh;object-fit:contain;user-select:none;-webkit-user-drag:none;will-change:transform}
.lb-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;border:0;background:rgba(255,255,255,.14);color:#fff;width:46px;height:46px;border-radius:50%;font-size:30px;line-height:1;cursor:pointer}
.lb-prev{left:14px}.lb-next{right:14px}
@media (max-width:700px){.lb-nav{display:none}}
