
.stc-back{position:fixed;inset:0;z-index:100060;background:rgba(107,92,76,.5);opacity:0;transition:opacity .2s}
.stc-back.on{opacity:1}
.stc{position:fixed;z-index:100061;left:0;right:0;bottom:0;height:min(88vh,720px);display:flex;flex-direction:column;background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -12px 40px rgba(107,92,76,.25);transform:translateY(102%);transition:transform .25s ease;font-family:inherit;color:#6b5c4c}
.stc.on{transform:none}
@media (min-width:768px){.stc{left:auto;right:24px;bottom:24px;width:400px;height:min(78vh,640px);border-radius:22px;transform:translateY(24px);opacity:0;transition:transform .2s,opacity .2s}.stc.on{transform:none;opacity:1}}
.stc-head{display:flex;align-items:center;gap:12px;padding:16px 16px 14px 18px;border-bottom:1px solid #ebeae9;flex:none}
.stc-av{width:42px;height:42px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;background:#6b5c4c;color:#fff;font-weight:700;font-size:16px;letter-spacing:.02em}
.stc-who{min-width:0;flex:1}
.stc-who b{display:block;font-size:16.5px;font-weight:700;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stc-who span{display:block;font-size:13px;color:#8d7c6a;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stc-x{width:38px;height:38px;flex:none;border:0;border-radius:50%;background:#f8f8f7;color:#6b5c4c;font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.stc-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:16px 16px 8px;background:#fafaf9;display:flex;flex-direction:column;gap:6px}
.stc-day{align-self:center;margin:8px 0 4px;font-size:12px;font-weight:600;color:#b3a18d}
.stc-m{max-width:82%;padding:10px 13px;border-radius:18px;font-size:15px;line-height:1.42;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.stc-m.them{align-self:flex-start;background:#fff;border:1px solid #ebeae9;border-bottom-left-radius:6px}
.stc-m.me{align-self:flex-end;background:#6b5c4c;color:#fff;border-bottom-right-radius:6px}
.stc-t{display:block;margin-top:4px;font-size:11px;opacity:.65;text-align:right}
.stc-empty{margin:auto 0;padding:8px 6px 4px;text-align:center;color:#8d7c6a;font-size:14.5px;line-height:1.5}
.stc-empty b{display:block;color:#6b5c4c;font-size:17px;margin-bottom:4px}
.stc-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:14px}
.stc-chip{border:1.5px solid #d6c7b2;background:#fff;color:#6b5c4c;border-radius:999px;padding:8px 13px;font-size:13.5px;font-weight:600;cursor:pointer;line-height:1.2}
.stc-note{margin:4px 0;padding:10px 12px;border-radius:12px;background:#fff7e6;border:1px solid #f3dca8;color:#6f4b0a;font-size:13px;line-height:1.45}
.stc-err{margin:4px 0;padding:10px 12px;border-radius:12px;background:#fdecea;border:1px solid #f5c2bd;color:#9a1c12;font-size:13.5px;line-height:1.45}
.stc-load{margin:auto;color:#b3a18d;font-size:14px}
.stc-foot{flex:none;border-top:1px solid #ebeae9;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff}
.stc-row{display:flex;align-items:flex-end;gap:8px}
.stc-in{flex:1;min-height:46px;max-height:140px;resize:none;margin:0;padding:12px 14px;border:1.5px solid #e8dfd6;border-radius:16px;font:inherit;font-size:16px;line-height:1.35;color:#6b5c4c;background:#fff;box-shadow:none;outline:none}
.stc-in:focus{border-color:#8d7c6a;box-shadow:0 0 0 3px rgba(141,124,106,.15)}
.stc-send{width:46px;height:46px;flex:none;border:0;border-radius:50%;background:#6b5c4c;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.stc-send:disabled{opacity:.45;cursor:default}
.stc-links{display:flex;justify-content:space-between;gap:10px;margin-top:8px;font-size:12.5px;color:#b3a18d}
.stc-links a{color:#8d7c6a;font-weight:600;text-decoration:none}
.stc-cta{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin-top:14px;padding:12px 22px;border-radius:14px;background:#6b5c4c;color:#fff!important;font-weight:700;font-size:15.5px;text-decoration:none}
.stc-off .stc-foot{display:none}
html.stc-lock,html.stc-lock body{overflow:hidden!important}
