/* SanaSezim — сценарный чат, версия 1.0. Все классы изолированы префиксом ss-chat. */
.ss-chat{--ss-navy:#11284a;--ss-blue:#165da7;--ss-soft:#eef5fd;--ss-border:#dbe6f3;--ss-ink:#172840;--ss-muted:#62738a;font-family:Manrope,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;line-height:1.48;color:var(--ss-ink)}
.ss-chat *{box-sizing:border-box}
.ss-chat__launcher{position:fixed;bottom:24px;right:22px;z-index:690;display:flex;align-items:center;gap:10px;min-height:56px;padding:10px 17px 10px 12px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:var(--ss-navy);color:#fff;box-shadow:0 13px 38px rgba(17,40,74,.28);font:700 13px/1.25 Manrope,system-ui,sans-serif;cursor:pointer;transition:transform .2s,box-shadow .2s}
.ss-chat__launcher:hover{transform:translateY(-2px);box-shadow:0 18px 46px rgba(17,40,74,.32)}
.ss-chat__launcher-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#d8efff;color:#133a69;font-size:22px;line-height:1}
.ss-chat__launcher:focus-visible,.ss-chat button:focus-visible,.ss-chat input:focus-visible,.ss-chat a:focus-visible{outline:3px solid #ff9fc9;outline-offset:2px}
.ss-chat__panel{position:fixed;z-index:691;bottom:92px;right:22px;width:min(400px,calc(100vw - 24px));height:min(620px,calc(100dvh - 119px));min-height:330px;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e5edf6;border-radius:22px;box-shadow:0 25px 80px rgba(10,29,55,.24)}
.ss-chat__panel[hidden]{display:none!important}
.ss-chat__head{display:flex;align-items:center;gap:11px;padding:15px 16px;background:linear-gradient(125deg,#122e55,#17679a);color:#fff;flex-shrink:0}
.ss-chat__avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.17);font-size:21px}
.ss-chat__head-copy{flex:1;min-width:0}
.ss-chat__head-copy strong{display:block;font-weight:800;font-size:15px;color:#fff}
.ss-chat__head-copy span{display:block;margin-top:1px;font-size:10px;color:#dcecf9}
.ss-chat__close{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:22px;cursor:pointer}
.ss-chat__messages{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:18px 15px 12px;background:linear-gradient(180deg,#f7faff,#fff);display:flex;flex-direction:column;gap:12px}
.ss-chat__bubble{max-width:93%;padding:12px 14px;border-radius:16px;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.ss-chat__bubble--bot{align-self:flex-start;background:#fff;color:var(--ss-ink);border:1px solid var(--ss-border);border-top-left-radius:5px}
.ss-chat__bubble--you{align-self:flex-end;background:#e5f1ff;border:1px solid #cce3ff;border-top-right-radius:5px;color:#153b64}
.ss-chat__choices{display:flex;flex-wrap:wrap;gap:7px;max-height:142px;overflow-y:auto;padding:9px 14px 3px;background:#fff}
.ss-chat__choice{padding:9px 12px;border:1px solid #bed6ed;border-radius:999px;background:#fff;color:#17528b;font:700 12px/1.25 Manrope,system-ui,sans-serif;cursor:pointer;text-align:left;transition:background .15s}
.ss-chat__choice:hover{background:#e9f5ff}
.ss-chat__choice[disabled],.ss-chat__send[disabled]{opacity:.55;cursor:not-allowed}
.ss-chat__form{display:flex;align-items:center;gap:8px;padding:11px 13px;background:#fff;border-top:1px solid var(--ss-border)}
.ss-chat__input{flex:1;min-width:0;height:43px;padding:0 12px;border:1px solid #d9e5f0;border-radius:12px;background:#f7faff;color:var(--ss-ink);font:500 13px Manrope,system-ui,sans-serif}
.ss-chat__send{display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:12px;background:#175c9b;color:#fff;font-size:20px;cursor:pointer}
.ss-chat__foot{padding:0 12px 11px;background:#fff;color:#728198;text-align:center;font-size:10px}
.ss-chat__consent{display:flex;gap:10px;align-items:flex-start;margin:4px 14px 0;padding:11px;border:1px solid var(--ss-border);border-radius:12px;background:#f8fbff;font-size:11px;line-height:1.5;color:var(--ss-muted)}
.ss-chat__consent input{width:17px;height:17px;flex-shrink:0;margin:1px 0 0;accent-color:#185d9f}
.ss-chat__consent a{color:#1b619e;text-decoration:underline}
.ss-chat__notice{padding:7px 14px 0;color:#a33944;font-size:12px;font-weight:650}
.ss-chat__notice[hidden]{display:none}
.ss-chat__links{display:flex;gap:8px;flex-wrap:wrap;padding:9px 14px;background:#fff}
.ss-chat__links a{border-radius:999px;border:1px solid var(--ss-border);padding:8px 12px;color:#17528b;text-decoration:none;font-size:12px;font-weight:700}
.ss-chat__links a:hover{background:var(--ss-soft)}
@media(max-width:600px){.ss-chat__launcher{right:12px;bottom:calc(82px + env(safe-area-inset-bottom));padding:9px 14px 9px 9px;min-height:50px;gap:7px}.ss-chat__launcher-icon{width:32px;height:32px}.ss-chat__panel{right:8px;left:8px;bottom:calc(79px + env(safe-area-inset-bottom));width:auto;height:min(630px,calc(100dvh - 94px - env(safe-area-inset-bottom)));min-height:260px;border-radius:18px}.ss-chat__messages{padding:12px 11px 9px}.ss-chat__choice{font-size:11px}}
@media(max-width:380px){.ss-chat__launcher{font-size:11px}}
@media(prefers-reduced-motion:reduce){.ss-chat__launcher,.ss-chat__choice{transition:none}}
@media print{.ss-chat{display:none!important}}

.ss-chat__form[hidden],.ss-chat__launcher[aria-expanded="true"]{display:none!important}
@media(max-height:520px){.ss-chat__panel{top:8px;bottom:8px;height:auto;min-height:0}}
