/* supchat — минималистичный виджет (§0b.17, владелец 2026-09-13: «как виджет, а не в стиле сайта»).
   Копируется как есть. Сайт задаёт ТОЛЬКО --sc-accent (тёмный цвет: на нём белый текст, AA ≥ 4.5:1).
   Редизайн v2 2026-10-03: серая лента с пузырями, композер «скрепка · поле · круглая стрелка»;
   после первого сообщения поле email и подсказка скрываются (.sc-live ставит chat.js).
   Разметка сайта не меняется: слово на кнопке отправки прячется (font-size:0), стрелка рисуется маской. */
.sc-launch{position:fixed;right:20px;bottom:20px;z-index:90;width:54px;height:54px;border:0;border-radius:50%;background:var(--sc-accent,#1a1a1a);color:#fff;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.18);display:flex;align-items:center;justify-content:center;padding:0;transition:transform .15s}
.sc-launch:hover{transform:scale(1.05)}
.sc-launch svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:var(--sc-icon-stroke,2);stroke-linecap:round;stroke-linejoin:round}
.sc-launch:focus-visible{outline:3px solid #fff;outline-offset:-6px}
.sc-launch [data-supchat-badge]{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#d42b2b;color:#fff;font:600 12px/20px system-ui,sans-serif}
.sc{position:fixed;right:20px;bottom:88px;z-index:91;width:min(432px,calc(100vw - 40px));max-height:min(840px,calc(100vh - 110px));display:flex;flex-direction:column;background:#fff;color:#1a1a1a;border-radius:24px;box-shadow:0 18px 50px rgba(20,20,20,.18),0 0 0 1px rgba(0,0,0,.04);font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;overflow:hidden}
.sc[hidden]{display:none}
.sc-head{display:flex;align-items:center;gap:12px;padding:16px 14px 14px 18px}
.sc-head img{position:relative;width:38px;height:38px;border-radius:50%;object-fit:cover;flex:none}
.sc-head b{display:block;font-weight:600;font-size:15px;line-height:1.25}
.sc-head small{display:block;color:#6b6b6b;font-size:12.5px;line-height:1.3}
.sc-close{margin-left:auto;flex:none;border:0;background:#f3f3f1;color:#555;width:32px;height:32px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer;padding:0}
.sc-close:hover{background:#e9e9e6}
.sc-feed{flex:1;background:#f6f5f2;overflow-y:auto;padding:16px 16px 14px;display:flex;flex-direction:column;gap:8px;min-height:120px}
.sc-hello{margin:0;max-width:88%;padding:10px 14px;border-radius:18px;border-bottom-left-radius:6px;background:#fff;color:#2a2a2a;font-size:14.5px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.sc-msg{margin:0;max-width:85%;padding:10px 14px;border-radius:18px;border-bottom-left-radius:6px;background:#fff;color:#2a2a2a;font-size:14.5px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.sc-me{align-self:flex-end;border-radius:18px;border-bottom-right-radius:6px;background:var(--sc-accent,#1a1a1a);color:#fff;box-shadow:none}
.sc-sys{align-self:center;background:none;box-shadow:none;color:#b3261e;font-size:12px}
.sc-who{display:block;font-size:11px;opacity:.7;margin-bottom:1px}
.sc-text{white-space:pre-wrap;overflow-wrap:anywhere}
.sc-quote{display:block;margin:0 0 4px;padding:3px 8px;border-left:3px solid currentColor;border-radius:4px;background:rgba(0,0,0,.06);font-size:12.5px;line-height:1.35;opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sc-me .sc-quote{background:rgba(255,255,255,.16)}
.sc-gone{font-style:italic}
.sc-time{display:block;margin-top:2px;text-align:right;font-size:11px;line-height:1.3;opacity:.6;font-variant-numeric:tabular-nums}
/* композер: скрепка · поле · круглая стрелка; email и подсказка — ниже, пока нет сообщений */
.sc-form{padding:12px 14px 14px;display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:end}
.sc-row{display:contents}
.sc-form textarea{grid-column:2;grid-row:2;width:100%;box-sizing:border-box;min-height:42px;max-height:130px;overflow-y:auto;line-height:1.45;border:0;border-radius:21px;padding:10px 16px;font:inherit;resize:none;background:#f3f3f1;color:inherit}
.sc-form textarea::placeholder{color:#8a8a86}
.sc-form button[type=submit]{grid-column:3;grid-row:2;position:relative;width:42px;height:42px;border:0;border-radius:50%;padding:0;background:var(--sc-accent,#1a1a1a);color:#fff;font-size:0;cursor:pointer;transition:opacity .15s,transform .15s}
.sc-form button[type=submit]::before{content:"";position:absolute;inset:0;margin:auto;width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center/contain no-repeat}
.sc-form button[type=submit]:not(:disabled):hover{transform:scale(1.06)}
.sc-form button:disabled{opacity:.35;cursor:default}
.sc-form textarea:focus,.sc-form input:focus{outline:2px solid var(--sc-accent,#1a1a1a);outline-offset:1px}
.sc-form input[type=email]{grid-column:1/-1;grid-row:3;width:100%;box-sizing:border-box;border:0;border-bottom:1px solid #e2e2de;border-radius:0;padding:8px 4px;font:inherit;font-size:13.5px;background:none;color:inherit;margin-top:2px}
.sc-form input[type=email]:focus{outline:0;border-bottom-color:var(--sc-accent,#1a1a1a)}
.sc-form small{grid-column:1/-1;grid-row:4;color:#686864;font-size:12px;padding:0 4px}
/* после первого сообщения email уже не нужен: он только мешает */
.sc-live .sc-form input[type=email],.sc-live .sc-form small{display:none}
.sc .hp{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* вложения: скрепка слева от поля, выбранный файл над композером, файл в реплике */
.sc-attach{position:relative;grid-column:1;grid-row:2;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;color:#707070;cursor:pointer}
.sc-attach:hover{background:#f3f3f1;color:#1a1a1a}
.sc-attach:focus-within{outline:2px solid var(--sc-accent,#1a1a1a);outline-offset:1px}
.sc-attach svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sc-form .sc-attach input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
.sc-picked{grid-column:1/-1;grid-row:1;display:flex;align-items:center;gap:6px;min-width:0;margin:0;padding:2px 2px 2px 14px;border-radius:16px;background:#f3f3f1;font-size:12.5px}
.sc-picked[hidden]{display:none}
.sc-picked span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sc-form .sc-unpick{width:32px;height:32px;padding:0;border-radius:50%;background:none;color:#4a4a4a;font:400 20px/1 system-ui,sans-serif;position:static}
.sc-form .sc-unpick::before{content:none}
.sc-file{display:block;margin-top:4px;color:inherit;text-decoration:underline;overflow-wrap:anywhere}
.sc-file img{display:block;max-width:100%;max-height:200px;border-radius:10px}
@media (max-width:640px){.sc{right:0;bottom:0;width:100%;max-height:85vh;border-radius:24px 24px 0 0}}
@media (prefers-reduced-motion:no-preference){.sc{animation:sc-in .2s ease-out}@keyframes sc-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}
@media print{.sc,.sc-launch{display:none}}
