:root{--canvas:#f1f4f3;--paper:#fff;--ink:#153633;--muted:#6f8380;--line:#dde6e3;--citrus:#d96d32;--citrus-hover:#ba5420;--focus:#bd5222;--soft:#e8efec;--danger:#a13d30;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--canvas)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-size:16px}button,input,textarea{font:inherit}button{cursor:pointer}a{color:inherit}button:disabled{opacity:.55;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-shell{max-width:1480px;min-height:100dvh;margin:auto;padding:0 28px;display:flex;flex-direction:column}.site-header{height:84px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d5e0db}.brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:750;letter-spacing:-.065em}.brand-mark{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--ink);color:#e6f0e8;font-size:26px;font-weight:400}.brand-dot,.title-dot{color:var(--citrus)}.header-right{font-size:13px;color:#536963;display:flex;gap:9px;align-items:center}.online-indicator,.status-dot{background:#5aa879;width:8px;height:8px;border-radius:50%;display:inline-block;box-shadow:0 0 0 4px #5aa87921}
.workspace{display:grid;grid-template-columns:minmax(280px,350px) minmax(0,1fr);gap:20px;flex:1;padding:30px 0;min-height:650px;max-height:calc(100dvh - 132px)}.sidebar{min-height:0;background:var(--ink);color:#eef7f3;border-radius:20px;padding:38px 30px 27px;display:flex;flex-direction:column;overflow:auto}.eyebrow{font-size:11px;letter-spacing:.18em;color:#a9c1b8;font-weight:700}.eyebrow span{color:#e29160}.sidebar-intro h1{font-size:clamp(34px,3vw,47px);line-height:1.06;letter-spacing:-.058em;margin:28px 0 15px;font-weight:700}.sidebar-intro p{max-width:290px;color:#b9cec6;line-height:1.58;font-size:14px;margin:0}.side-section{margin-top:40px}.section-head{font-size:12px;text-transform:uppercase;letter-spacing:.11em;color:#b9cec6;font-weight:700;border-bottom:1px solid #527069;padding-bottom:15px;display:flex;justify-content:space-between}.section-count{font-variant-numeric:tabular-nums}.faq-list{padding-top:7px}.faq-group{border-bottom:1px solid #527069}.faq-group summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 2px;cursor:pointer;font-weight:570;font-size:14px;line-height:1.3}.faq-group summary::-webkit-details-marker{display:none}.faq-group summary span:last-child{font-size:19px;font-weight:300;transition:transform .2s}.faq-group[open] summary span:last-child{transform:rotate(45deg)}.faq-items{display:flex;flex-direction:column;gap:5px;padding:0 0 15px}.faq-item{background:transparent;color:#c4d9d0;border:0;text-align:left;padding:8px 4px;border-radius:6px;font-size:13px;line-height:1.45}.faq-item:hover,.faq-item.selected{color:#fff;background:#ffffff13}.faq-answer{border:1px solid #69827b;background:#ffffff0d;padding:12px;border-radius:11px;color:#e5f1ec;font-size:13px;line-height:1.5;margin:4px 0 10px;overflow-wrap:anywhere}.faq-answer p:first-child{margin-top:0}.faq-answer p:last-child{margin-bottom:0}.faq-answer ol,.faq-answer ul{padding-left:20px}.faq-answer a{color:#f4a26f;text-decoration:underline}.faq-answer button{display:block;margin-top:10px;background:#d96d32;color:#fff;padding:10px 12px;border:0;border-radius:8px}.sales-link{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;text-decoration:none;background:#eaa373;color:#142f2e;padding:17px;border-radius:12px;transition:background .15s}.sales-link:hover{background:#f6bb90}.sales-link small,.sales-link strong{display:block}.sales-link small{font-size:10px;letter-spacing:.15em;font-weight:750;margin-bottom:5px}.sales-link strong{font-size:14px}.sales-link .arrow{font-size:24px}.side-foot{color:#aac1b7;font-size:11px;line-height:1.5;padding-top:20px}.micro-mark{color:#eaa373;font-size:17px;vertical-align:middle;margin-right:5px}
.conversation{min-width:0;min-height:0;border-radius:20px;display:flex;flex-direction:column;background:var(--paper);border:1px solid #dce5e1;box-shadow:0 14px 38px #2c554212;position:relative;overflow:hidden}.chat-head{height:80px;flex-shrink:0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 29px}.chat-identity,.chat-actions{display:flex;align-items:center;gap:12px}.avatar{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:14px;background:#e0f0e7;color:var(--ink);font-size:29px}.chat-identity strong,.chat-identity span{display:block}.chat-identity strong{font-size:15px}.chat-identity span{font-size:12px;color:var(--muted);margin-top:4px}.chat-actions{font-size:12px;color:var(--muted)}.icon-button{border:0;background:transparent;font-size:20px;min-width:44px;min-height:44px;color:var(--ink);letter-spacing:2px}.chat-menu{position:absolute;right:24px;top:70px;background:var(--paper);border:1px solid var(--line);box-shadow:0 10px 30px #163f3a22;z-index:10;border-radius:12px;min-width:230px;padding:6px}.chat-menu button{display:block;text-align:left;width:100%;border:0;background:none;padding:13px 12px;color:var(--ink);font-size:13px;border-radius:7px}.chat-menu button:hover{background:var(--soft)}
.chat-intro{flex:1;display:flex;align-items:flex-start;flex-direction:column;justify-content:center;padding:32px max(28px,9%);overflow:auto}.intro-emblem{font-size:39px;color:var(--citrus);line-height:1}.intro-overline{color:var(--citrus);font-size:11px;font-weight:800;letter-spacing:.16em;margin:24px 0 10px}.chat-intro h2{font-size:clamp(30px,3.1vw,47px);line-height:1.08;letter-spacing:-.055em;font-weight:680;margin:0}.chat-intro>p:not(.intro-overline){max-width:430px;font-size:15px;line-height:1.64;color:#657b75}.intro-points{display:flex;flex-wrap:wrap;gap:11px 24px;margin-top:19px;font-size:12px;color:#5d746b}.history-toolbar{text-align:center;padding:8px;border-bottom:1px solid var(--line);background:#fafcfb}.history-toolbar button{border:0;background:transparent;color:#49665a;text-decoration:underline;font-size:12px;min-height:32px}.messages{flex:1;overflow:auto;overscroll-behavior:contain;padding:27px 32px;display:flex;flex-direction:column;gap:16px;background:linear-gradient(180deg,#fff 0%,#fafcfb 100%)}.msg{max-width:min(72%,560px);display:flex;flex-direction:column;gap:5px}.msg.user{align-self:flex-end;align-items:flex-end}.msg.staff{align-self:flex-start}.msg.system{align-self:center;max-width:90%;text-align:center;color:#738680;font-size:12px;background:#eaf1ed;padding:8px 14px;border-radius:50px}.msg-header{font-size:11px;color:#778d84;padding:0 4px}.bubble{border:1px solid var(--line);background:white;padding:12px 15px;border-radius:14px 14px 14px 3px;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.msg.user .bubble{background:var(--ink);color:#fff;border-color:var(--ink);border-radius:14px 14px 3px 14px}.msg-meta{font-size:11px;color:#82958d;padding:0 4px;display:flex;gap:9px;align-items:center}.msg-meta .error{color:var(--danger)}.msg-file{display:block;padding:8px 0;font-size:13px;color:inherit;max-width:320px;overflow-wrap:anywhere}.msg-file img{display:block;max-width:100%;max-height:260px;border-radius:8px;margin-bottom:6px}.msg .reply-note{font-size:12px;opacity:.76;border-left:2px solid currentColor;padding-left:8px;margin-bottom:8px}.reply-button{border:none;background:transparent;padding:3px 4px;text-decoration:underline;text-underline-offset:2px;font-size:11px;color:#7a8b85}.msg.user .reply-button{color:#b4cec2}.retry-button{border:0;background:none;color:var(--danger);text-decoration:underline;font-size:11px;padding:2px 4px}
.composer-area{flex-shrink:0;border-top:1px solid var(--line);padding:16px 24px 19px;background:var(--paper)}.register-form,.send-form{width:100%}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:11px}.register-form label{display:block;font-size:12px;font-weight:650;color:#456057}.register-form input,.register-form textarea,.send-form textarea,dialog input{display:block;width:100%;border:1px solid #cad8d2;border-radius:10px;background:#fafcfb;color:var(--ink);padding:11px 12px;margin-top:6px;resize:vertical;min-height:44px;max-height:160px}.register-form textarea,.send-form textarea{min-height:52px}.optional{font-size:11px;font-weight:400;color:#7e8d87}.message-label{margin-top:4px}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.composer-bottom>span{font-size:11px;color:#7b8f85;line-height:1.35}.send-button{border:0;border-radius:9px;background:var(--citrus);color:#fff;font-weight:700;font-size:13px;letter-spacing:.01em;min-height:44px;padding:0 18px;white-space:nowrap;display:inline-flex;align-items:center;gap:13px;justify-content:center}.send-button:hover:not(:disabled){background:var(--citrus-hover)}.send-button span{font-size:18px}.attach-wrap{display:flex;align-items:center;gap:9px;min-width:0}.attach-button{display:inline-flex;gap:6px;align-items:center;cursor:pointer;color:#49635a;font-size:12px;min-height:44px;padding:0 7px}.attach-button span{font-size:21px}#attachment-label{font-size:11px;color:#678079;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}.form-banner{padding:10px 13px;border-radius:9px;background:#fff1e8;color:#713b26;font-size:12px;margin-bottom:12px;line-height:1.4}.reply-preview{border-left:3px solid var(--citrus);padding:7px 10px;margin-bottom:8px;display:flex;justify-content:space-between;color:#5b726a;font-size:12px;background:#f5f8f6}.reply-preview button{background:none;border:0;font-size:18px;min-height:24px}.site-footer{min-height:48px;color:#789087;font-size:11px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.recovery-entry{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);border:1px solid var(--line);border-radius:50px;box-shadow:0 8px 24px #1e443625;background:#fff;padding:11px 18px;color:var(--ink);font-size:12px;z-index:12}.recovery-entry:hover{background:#f7faf8}.recovery-entry span{color:var(--citrus);margin-left:8px}.recovery-entry.hidden{display:none}dialog{width:min(440px,calc(100vw - 30px));border:1px solid var(--line);border-radius:19px;box-shadow:0 26px 80px #0b29264d;padding:30px;color:var(--ink)}dialog::backdrop{background:#0a2929aa;backdrop-filter:blur(3px)}dialog h2{letter-spacing:-.04em;margin:6px 0 10px;font-size:26px}dialog p{font-size:14px;color:#647a70;line-height:1.6;margin:0 0 18px}.dialog-icon{font-size:30px;color:var(--citrus)}dialog code{display:block;padding:14px;border:1px dashed #99b1a4;background:#f1f7f3;border-radius:9px;overflow-wrap:anywhere;text-align:center;font-size:13px;letter-spacing:.04em}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:19px;flex-wrap:wrap}.secondary-button{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:9px;min-height:44px;padding:0 14px;font-weight:600;font-size:13px}#recover-form label{font-size:12px;font-weight:650}
@media(max-width:900px){.site-shell{padding:0 16px}.workspace{grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:12px}.sidebar{padding:28px 20px}.sidebar-intro h1{font-size:35px}.chat-intro{padding:25px}.messages{padding:22px}.chat-head{padding:0 18px}.composer-area{padding:14px 16px}}
@media(max-width:700px){.site-shell{padding:0}.site-header{height:57px;padding:0 18px}.header-right{font-size:0}.workspace{display:flex;flex-direction:column-reverse;max-height:none;min-height:calc(100dvh - 57px);padding:0;gap:0}.conversation{border:0;border-radius:0;box-shadow:none;min-height:600px;height:calc(100dvh - 57px);flex:none}.chat-head{height:67px}.sidebar{margin:16px;border-radius:15px;min-height:0;overflow:visible;padding:23px}.sidebar-intro h1{font-size:30px;margin:14px 0 8px}.sidebar-intro h1 br{display:none}.sidebar-intro p{font-size:13px}.side-section{margin-top:22px}.sales-link{margin-top:22px}.site-footer{padding:10px 18px}.site-footer span:last-child{display:none}.chat-intro{padding:20px 25px}.chat-intro h2{font-size:36px}.messages{padding:17px}.msg{max-width:88%}.form-grid{grid-template-columns:1fr;gap:8px}.register-form .composer-bottom>span{display:none}.composer-area{max-height:50dvh;overflow:auto}.recovery-entry{bottom:12px;white-space:nowrap}}
@media(max-height:680px) and (min-width:701px){.workspace{min-height:550px;max-height:none}.chat-intro{padding-top:15px;padding-bottom:15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.faq-toggle,.faq-close{display:none;border:0;background:#e8efec;color:var(--ink);border-radius:9px;min-height:44px;padding:0 12px;font-size:13px;font-weight:700}
.handoff-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 19px;border-top:1px solid var(--line);background:#f7faf8;color:#536e63;font-size:12px;flex-wrap:wrap}
.diagnostic-choices{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.diagnostic-choices button{border:1px solid #53766d;background:#122b30;color:inherit;border-radius:9px;padding:8px 10px;cursor:pointer}.diagnostic-choices button:hover:not(:disabled){border-color:#42d5c7}.diagnostic-choices button:disabled{opacity:.45;cursor:default}
.handoff-bar button{min-height:38px;border:1px solid #b7d0c2;border-radius:9px;background:#fff;color:var(--ink);font-size:12px;font-weight:650;padding:0 10px}
.msg.ai .msg-header{color:#755335;font-weight:750}.msg.ai .bubble{background:#fff8ec;border-color:#f2d6b2}
.ai-handoff{align-self:flex-start;min-height:44px;padding:0 14px;margin-top:8px;border:1px solid #2a8880;border-radius:10px;background:#143b3d;color:#d9fffa;font-size:13px;font-weight:700}
.ai-handoff:hover:not(:disabled){background:#1d5555}
.telegram-profile{padding:9px 12px;border-radius:9px;background:var(--soft);color:var(--ink);border:1px solid var(--line);font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin:0 0 10px}
body.embedded{height:100dvh;overflow:hidden}body.embedded .site-shell{height:100dvh;min-height:0;max-width:none;padding:12px}body.embedded .site-header,body.embedded .site-footer{display:none}
body.embedded .workspace{height:100%;min-height:0;max-height:none;display:flex;flex-direction:column;gap:0;padding:0;position:relative}
body.embedded .conversation{height:100%;min-height:0;min-width:0;flex:1;border:1px solid #1f3540;border-radius:18px;box-shadow:0 12px 34px rgba(0,0,0,.28)}
body.embedded .sidebar{display:none}body.embedded.faq-open .sidebar{display:flex;flex-direction:column;position:absolute;inset:0;z-index:20;margin:0;border-radius:0;overflow:auto}
body.embedded .faq-toggle,body.embedded .faq-close{display:inline-flex;align-items:center;justify-content:center}
body.embedded .faq-close{position:absolute;right:16px;top:10px;font-size:24px}
body.embedded .chat-head{height:62px;padding:0 53px 0 14px;gap:6px}body.embedded .chat-identity{min-width:0;gap:8px}
body.embedded .chat-actions{gap:4px}body.embedded #connection{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}body.embedded .avatar{width:34px;height:34px;font-size:23px}
body.embedded .chat-intro{padding:17px;min-height:0}body.embedded .chat-intro h2{font-size:29px}body.embedded .chat-intro>p:not(.intro-overline){font-size:13px}
body.embedded .messages{min-height:0;padding:12px;gap:11px}body.embedded .msg{max-width:94%}body.embedded .composer-area{max-height:55dvh;overflow:auto;padding:10px 12px max(12px,env(safe-area-inset-bottom))}
body.embedded .recovery-entry{position:static;transform:none;margin:8px 0 0;width:100%;white-space:normal;box-shadow:none;text-align:center}
@media(max-width:370px){body.embedded .handoff-bar>span{display:none}body.embedded .handoff-bar button{width:100%}body.embedded .chat-identity strong{font-size:13px}}

/* 1.3.7 layout guardrails: the viewport stays still, history owns the scroll. */
html,body{height:100%;min-height:0;overflow:hidden}
.site-shell{height:100dvh;min-height:0}
.site-header{flex:none}
.workspace{min-height:0;max-height:none;overflow:hidden}
.conversation{height:100%;min-height:0}
.chat-head,.history-toolbar,.handoff-bar,.composer-area{flex:none}
.chat-identity{min-width:0;flex:1}
.chat-identity strong{align-self:center;line-height:1.25;white-space:nowrap}
.chat-actions{flex:none;min-width:0}
.chat-actions #connection{white-space:nowrap}
.chat-intro{min-height:0}
.messages{min-height:0;scrollbar-gutter:stable;overflow-x:hidden;overflow-y:auto}
.msg{min-width:0;max-width:min(84%,600px)}
.msg-header,.msg-meta{max-width:100%;overflow-wrap:anywhere}
.bubble{min-width:0;max-width:100%}
.msg-meta{flex-wrap:wrap}
.form-grid,.form-grid>*{min-width:0}
.composer-area{min-width:0}
.composer-bottom{min-width:0}
.composer-bottom>span{min-width:0}
.attach-wrap{flex:1;min-width:0}
.send-button{flex:none}

@media(max-width:900px){
  .site-shell{padding:0 16px}
  .workspace{gap:12px}
}
@media(max-width:700px){
  html,body{height:100%;overflow:hidden}
  .site-shell{height:100dvh;padding:0}
  .site-header{height:57px}
  .workspace{height:calc(100dvh - 57px);min-height:0;max-height:none;display:flex;flex-direction:column;padding:0;gap:0;overflow:hidden}
  .conversation{height:100%;min-height:0;flex:1;border:0;border-radius:0;box-shadow:none}
  .sidebar{position:absolute;inset:57px 0 0;z-index:20;margin:0;border-radius:0;min-height:0;overflow:auto;padding:23px 18px;display:none}
  body.faq-open .sidebar{display:flex}
  .chat-head{height:67px;padding:0 16px;gap:8px}
  .chat-actions #connection{display:none}
  .chat-actions .status-dot{margin-right:2px}
  .chat-intro{padding:20px 25px}
  .messages{padding:17px 15px;gap:13px}
  .msg{max-width:90%}
  .composer-area{max-height:46dvh;overflow:auto;padding:12px 15px max(12px,env(safe-area-inset-bottom))}
  .form-grid{grid-template-columns:1fr;gap:8px}
  .register-form .composer-bottom>span{display:none}
  .recovery-entry{position:static;transform:none;width:100%;margin:10px 0 0;white-space:normal;box-shadow:none;text-align:center}
  .site-footer{display:none}
}
@media(max-width:370px){
  .chat-identity strong{font-size:14px}
  .chat-identity span{font-size:11px}
  .messages{padding-left:11px;padding-right:11px}
  .msg{max-width:94%}
  .send-button{padding-left:13px;padding-right:13px}
}
.avatar.has-image,.brand-mark.has-image{overflow:hidden;padding:0;background:#e0f0e7}
.bot-avatar-image{display:block;width:100%;height:100%;object-fit:cover}
.brand-mark.has-image{border-radius:11px}
@media(max-width:700px){
  .faq-toggle,.faq-close{display:inline-flex;align-items:center;justify-content:center}
  .faq-close{position:absolute;right:16px;top:10px;font-size:24px}
  .desktop-break{display:none}
}
.operator-avatar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Dark navy / teal reference theme. Surfaces stay quiet; teal is reserved for actions and status. */
:root{--canvas:#0a0d15;--paper:#0e1720;--ink:#edf7f6;--muted:#8b9da7;--line:#20343e;--citrus:#18d0bf;--citrus-hover:#32e0ce;--focus:#54e8d8;--soft:#12232b;--danger:#ff9c83}
body{color:var(--ink);background-color:var(--canvas);background-image:linear-gradient(rgba(43,91,100,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(43,91,100,.06) 1px,transparent 1px);background-size:32px 32px}
.site-header{border-color:#182a34}
.brand{color:#f1fbfa}.brand-mark{background:#102f35;color:var(--citrus);box-shadow:0 0 24px rgba(24,208,191,.12)}
.header-right{color:#8ba0aa}.online-indicator,.status-dot{background:#18d0bf;box-shadow:0 0 0 4px rgba(24,208,191,.13)}
.sidebar{background:#0d1720;border:1px solid #1d343e;color:#e8f4f3;box-shadow:0 16px 44px rgba(0,0,0,.25)}
.eyebrow,.section-head,.side-foot{color:#8aa3a8}.eyebrow span{color:#18d0bf}.sidebar-intro p{color:#91a4aa}.section-head,.faq-group{border-color:#23404a}
.faq-item{color:#a7b9bb}.faq-item:hover,.faq-item.selected{background:#12323a;color:#eafffc}.faq-answer{border-color:#28505a;background:#0d252c;color:#c8d9d9}.faq-answer a{color:#55e4d3}.faq-answer button{background:var(--citrus);color:#06201f}.sales-link{background:#12383c;color:#dffcf8;border:1px solid #1d6869}.sales-link:hover{background:#17494c}.sales-link small{color:#73d8ce}.sales-link strong{color:#f0fffd}.micro-mark{color:var(--citrus)}
.conversation{background:var(--paper);border-color:#1f3540;box-shadow:0 18px 52px rgba(0,0,0,.35)}
.chat-head{border-color:var(--line)}.avatar{background:#12383c;color:var(--citrus)}.chat-identity span,.chat-actions{color:var(--muted)}.chat-menu{background:#101c25;border-color:#28404a;box-shadow:0 12px 32px rgba(0,0,0,.4)}.chat-menu button{color:var(--ink)}.chat-menu button:hover{background:#15323a}
.chat-intro{background:transparent}.intro-overline{color:var(--citrus)}.chat-intro>p:not(.intro-overline){color:#91a4aa}.intro-points{color:#8aa4a6}
.history-toolbar{border-color:var(--line);background:#101c25}.history-toolbar button{color:#61d8cd}
.messages{background:linear-gradient(180deg,#0e1720 0%,#0b131b 100%)}.msg-header,.msg-meta{color:#82979f}.bubble{background:#12202a;border-color:#263d47;color:#e7f3f2}.msg.user .bubble{background:#124a4b;border-color:#1a7773;color:#effffc}.msg.system{background:#153137;color:#9cc4c2}.reply-button{color:#83aaa9}.msg.user .reply-button{color:#a5e9df}.msg-file{color:inherit}
.composer-area{background:#0e1720;border-color:var(--line)}.register-form label{color:#9bb0b3}.register-form input,.register-form textarea,.send-form textarea,dialog input{background:#0a131b;border-color:#27414b;color:var(--ink)}.register-form input::placeholder,.register-form textarea::placeholder,.send-form textarea::placeholder,dialog input::placeholder{color:#61757e}.optional,.composer-bottom>span,#attachment-label{color:#789099}.send-button{background:var(--citrus);color:#052321;box-shadow:0 7px 22px rgba(24,208,191,.16)}.send-button:hover:not(:disabled){background:var(--citrus-hover)}.attach-button{color:#8dc2bf}.form-banner{background:#3a241c;color:#ffc2aa}.reply-preview{background:#10282d;color:#a8d4d0;border-color:var(--citrus)}.handoff-bar{background:#102027;border-color:var(--line);color:#9db4b6}.handoff-bar button,.secondary-button{background:#101c25;border-color:#2b4851;color:var(--ink)}.handoff-bar button:hover,.secondary-button:hover{background:#15323a}
.site-footer{color:#6e858e}dialog{background:#101c25;border-color:#29414a;color:var(--ink)}dialog::backdrop{background:rgba(1,7,12,.78)}dialog p{color:#93a8ae}dialog code{background:#0b2026;border-color:#2a5558;color:#bff6ee}
.operator-avatar svg{stroke:var(--citrus)}
.faq-toggle{background:#10252c;color:#a9e9e1;border:1px solid #2b555b;border-radius:8px;min-height:38px;padding:0 12px;font-size:12px;font-weight:700}
.faq-toggle:hover{background:#153b40;color:#d9fffb}
.faq-close{background:#10252c;color:#a9e9e1;border:1px solid #2b555b;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.faq-close:hover{background:#153b40;color:#d9fffb}
.recovery-entry{background:#10252c;color:#b9e9e3;border-color:#2b555b;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.recovery-entry:hover{background:#153b40;color:#e2fffc}
.recovery-entry span{color:var(--citrus)}
.header-recover{border:1px solid #2b555b;border-radius:8px;background:#10252c;color:#9fe4dc;min-height:34px;padding:0 10px;font-size:11px;white-space:nowrap}
.header-recover:hover{background:#153b40;color:#d9fffb}
@media(max-width:700px){.header-recover{min-height:38px;padding:0 8px;font-size:10px}.chat-actions{gap:5px}.chat-actions .status-dot{display:none}}
.msg.ai .msg-header{color:#63ded0}.msg.ai .bubble{background:#153437;border-color:#25877d;color:#e7fffb}

/* Inline lock icon: uses the same teal SVG language as the FAQ controls. */
.icon-button{display:inline-grid;place-items:center;color:var(--citrus)}
.icon-button:hover,.icon-button:focus-visible{color:var(--citrus-hover)}
.lock-icon{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dialog-icon{display:flex;align-items:center;color:var(--citrus)}
.dialog-icon .lock-icon{width:30px;height:30px;stroke-width:1.7}

/* The embedded chat keeps the FAQ behind its header button. */
body.embedded .chat-head{padding-right:14px}
body.embedded .site-shell{padding:12px}
body.embedded .conversation{border:1px solid #1f3540;border-radius:18px;box-shadow:0 12px 34px rgba(0,0,0,.28)}
@media(max-width:700px){body.embedded .site-shell{padding:10px}body.embedded .conversation{border-radius:15px}}

/* PIN setup, recovery and compact chat controls. */
.pin-setup{margin:0 0 12px}.pin-setup label{display:block}.pin-row{display:flex;align-items:center;gap:10px}.pin-row input{flex:1;min-width:0;max-width:170px;letter-spacing:.24em;font-variant-numeric:tabular-nums}.pin-row .secondary-button{flex:none;margin-top:6px}.pin-setup p{color:var(--muted);font-size:11px;line-height:1.45;margin:7px 0 0}
#recover-form label,#pin-form label{display:block;margin:14px 0 0;color:#9bb0b3;font-size:12px;font-weight:650}#recover-form input,#pin-form input{margin:6px 0 0}#recover-pin-input,#pin-change-input{letter-spacing:.23em;font-variant-numeric:tabular-nums}.pin-later{margin-top:12px;padding:8px 0;background:none;border:0;color:var(--muted);font-size:12px}
.header-recover{width:38px;height:38px;padding:0;display:grid;place-items:center;flex:none;color:var(--citrus)}.header-recover .lock-icon{width:19px;height:19px}.header-recover:hover{color:var(--citrus-hover)}
.faq-toggle{display:inline-flex;align-items:center;justify-content:center}
@media(max-width:700px){body.embedded .faq-close{display:inline-flex}body.embedded.faq-open .sidebar{display:flex}}
dialog{max-height:calc(100dvh - 24px);overflow-y:auto}
.pin-identity{font-size:13px;color:var(--muted);margin:0 0 12px;overflow-wrap:anywhere}.pin-identity strong{color:var(--ink)}
.visitor-name-field{margin-bottom:12px}

/* Keep the quote action at the same edge for both sides of the dialogue. */
.reply-button{align-self:flex-end;display:inline-flex;align-items:center;justify-content:flex-end;width:max-content;min-height:30px;max-width:100%;text-align:right}

@media(max-width:700px){
  .messages,.sidebar,.composer-area,.chat-intro,dialog{scrollbar-width:none;-ms-overflow-style:none}
  .messages::-webkit-scrollbar,.sidebar::-webkit-scrollbar,.composer-area::-webkit-scrollbar,.chat-intro::-webkit-scrollbar,dialog::-webkit-scrollbar{display:none;width:0;height:0}
}

/* Verified Telegram session: a compact, non-blocking identity strip. */
.telegram-session{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 18px;border-bottom:1px solid var(--line);background:var(--soft);font-size:12px}
.telegram-session>div{min-width:0}.telegram-session strong{display:block;overflow-wrap:anywhere}.telegram-session span{display:block;color:var(--muted);line-height:1.4;margin-top:3px}
.telegram-session-actions{display:flex;flex-wrap:wrap;gap:6px}.telegram-session-actions a{text-decoration:none}.telegram-session-actions .secondary-button{font-size:12px;min-height:44px;padding:8px 10px;text-align:center}
.telegram-connecting #register-form,.telegram-connecting #recover-entry{display:none}
@media(max-width:600px){.telegram-session{align-items:flex-start;flex-direction:column;padding:9px 12px}.telegram-session-actions{width:100%}.telegram-session-actions>*{flex:1}}

.service-banner{flex:none;padding:10px 16px;background:#fff1d8;color:#53401c;border-bottom:1px solid #e6d2a5;font-size:13px;line-height:1.4}

/* An explicit dark canvas masks a light wrapper in the host site. */
html.embed-root,html.embed-root body.embedded,body.embedded .site-shell,body.embedded .workspace{background:var(--canvas);background-image:none}
body.embedded .conversation{box-shadow:none}
#recover-bot{display:inline-flex;align-items:center;min-height:38px;margin:2px 0 10px;padding:7px 12px;text-decoration:none}

/* A single choice inside embed; the existing conversation stays intact behind it. */
.embed-choice{display:none}
body.embedded .embed-choice{position:absolute;inset:0;z-index:30;display:grid;place-items:center;overflow:auto;padding:24px 16px;background:#0e1720;color:#e7f3f2}
.embed-choice-content{width:min(100%,430px);margin:auto;text-align:center}
.embed-choice h1{margin:0;font-size:clamp(27px,6vw,39px);font-weight:720;line-height:1.12;letter-spacing:-.045em}
.embed-choice-description{max-width:330px;margin:15px auto 28px;color:#9fb5ba;font-size:14px;line-height:1.5}
.embed-choice-actions{display:grid;gap:11px}
.embed-choice-actions button,.embed-choice-actions a{display:flex;align-items:center;justify-content:center;min-height:59px;padding:12px 18px;border-radius:12px;font-size:14px;font-weight:720;text-decoration:none;text-align:center;transition:background-color .16s,border-color .16s,transform .16s}
.embed-choice-actions button:focus-visible,.embed-choice-actions a:focus-visible{outline:3px solid #f0aa74;outline-offset:3px}
.embed-choice-actions button:hover,.embed-choice-actions a:hover{transform:translateY(-1px)}
.embed-choice-web{border:1px solid #39d7c8;background:#39d7c8;color:#082626}
.embed-choice-web:hover{background:#69e7dc}
.embed-choice-telegram{border:1px solid #35535c;background:#142733;color:#e8f5f4}
.embed-choice-telegram:hover{border-color:#5d8e98;background:#1d3946}
.embed-choice-note{margin:20px 0 0;color:#829ba3;font-size:12px;line-height:1.5}
body.embedded #telegram-session{display:none!important}
@media(prefers-reduced-motion:reduce){.embed-choice-actions button,.embed-choice-actions a{transition:none}.embed-choice-actions button:hover,.embed-choice-actions a:hover{transform:none}}

/* Compact support entry: one quiet surface and two unmistakable routes. */
body.embedded .embed-choice{padding:clamp(12px,3vw,32px);background:radial-gradient(circle at 50% 0%,#142b33 0%,#0b131c 54%,#090f17 100%)}
.embed-choice-content{width:min(100%,480px);padding:clamp(26px,6vw,46px);border:1px solid #28404b;border-radius:26px;background:linear-gradient(152deg,#172935 0%,#111e29 58%,#101b25 100%);box-shadow:0 26px 80px rgba(0,0,0,.31),inset 0 1px rgba(255,255,255,.045)}
.embed-choice-content::before{content:"";display:block;width:46px;height:3px;margin:0 auto 26px;border-radius:10px;background:#39d7c8;box-shadow:0 0 22px rgba(57,215,200,.21)}
.embed-choice h1{max-width:400px;margin:0 auto;font-size:clamp(27px,5vw,37px);line-height:1.13;letter-spacing:-.045em}
.embed-choice-description{max-width:350px;margin:18px auto 31px;color:#a6b9c0;font-size:14px;line-height:1.55}
.embed-choice-actions{gap:12px}
.embed-choice-actions button,.embed-choice-actions a{min-height:62px;border-radius:13px;font-size:15px;letter-spacing:-.01em}
.embed-choice-web{background:linear-gradient(180deg,#5be5d7,#36d1c4);border-color:#65ebdd;box-shadow:0 8px 25px rgba(31,188,174,.15)}
.embed-choice-web:hover{background:#73ede0}
.embed-choice-telegram{background:#1a2b37;border-color:#3a5662}
.embed-choice-telegram:hover{background:#223844;border-color:#6c99a3}
.embed-choice-note{margin:23px 0 0;color:#8ea6ae;font-size:12px;line-height:1.5}
@media(max-width:400px){.embed-choice-content{padding:27px 21px;border-radius:22px}.embed-choice h1{font-size:29px}.embed-choice-description{margin:17px auto 26px}}
@media(max-height:540px){.embed-choice-content{padding-top:18px;padding-bottom:18px}.embed-choice-content::before{margin-bottom:14px}.embed-choice-description{margin-top:12px;margin-bottom:18px}.embed-choice-note{margin-top:15px}}

/* iOS zooms focused inputs below 16px. Keep the viewport width stable and
   let the composer scroll inside the iframe when the keyboard opens. */
@media(max-width:700px){
  html,body{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body.embedded .site-shell,body.embedded .workspace,body.embedded .conversation,body.embedded .composer-area{width:100%;min-width:0;max-width:100%}
  .register-form,.register-form label,.pin-setup,.pin-row{min-width:0;max-width:100%}
  .register-form input,.register-form textarea,.send-form textarea,dialog input{font-size:16px;line-height:1.4;min-width:0;max-width:100%;resize:none}
  .pin-row input{min-width:0;flex:1 1 100px;max-width:none;letter-spacing:.15em}
  .pin-row .secondary-button{flex:0 1 auto;min-width:0;max-width:100%;white-space:normal;text-align:center}
  body.embedded .composer-area{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
}
@media(max-width:370px){.pin-row{flex-wrap:wrap}.pin-row input,.pin-row .secondary-button{flex:1 1 100%;width:100%}.pin-row .secondary-button{margin-top:0}}
