/* Переписка заказчика: вкладки сверху, панель справа, как уведомление. */
#skChatDock{position:fixed;z-index:82;left:0;right:0;top:var(--sk-chat-top,0px);pointer-events:none}
#skChatDock[hidden]{display:none !important}
.sk-chat-tabs{pointer-events:auto;display:flex;gap:6px;align-items:stretch;
  width:max-content;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
  padding:8px 10px 6px;scrollbar-width:none}
.sk-chat-tabs::-webkit-scrollbar{display:none}
.sk-chat-tab{position:relative;flex:0 0 auto;max-width:220px;min-width:108px;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;
  padding:7px 28px 7px 12px;border:1px solid #e6e8ec;border-radius:14px;background:#fff;color:#16181c;
  box-shadow:0 8px 22px rgba(16,18,22,.12);font:inherit;text-align:left;cursor:pointer}
.sk-chat-tab__role{font-size:11px;font-weight:800;letter-spacing:.02em;color:#6b7178;line-height:1.2}
.sk-chat-tab__name{max-width:160px;font-size:13px;font-weight:800;line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sk-chat-tab__n{position:absolute;top:6px;right:8px;min-width:18px;height:18px;padding:0 5px;
  border-radius:9px;background:#e23b2f;color:#fff;font-size:11px;font-weight:800;
  display:grid;place-items:center}
.sk-chat-tab__n[hidden]{display:none !important}
.sk-chat-tab.is-on{background:#16181c;border-color:#16181c;color:#fff}
.sk-chat-tab.is-on .sk-chat-tab__role{color:#c3c7cd}
.sk-chat-tab:focus-visible{outline:2px solid #16181c;outline-offset:2px}

.sk-chat-pane{pointer-events:auto;position:fixed;z-index:92;box-sizing:border-box;
  top:calc(var(--sk-chat-top,0px) + var(--sk-chat-tabs,52px));
  right:12px;bottom:calc(var(--sk-chat-bottom,12px) + var(--sk-chat-kb,0px));
  width:min(400px,calc(100vw - 56px));
  display:flex;flex-direction:column;min-height:0;
  background:#fff;border:1px solid #e6e8ec;border-radius:16px;overflow:hidden;
  box-shadow:0 18px 50px rgba(16,18,22,.18)}
.sk-chat-pane.is-drag,.sk-chat-pane.is-drag *{user-select:none}
.sk-chat-size{display:none}
.sk-chat-pane[hidden]{display:none !important}
.sk-chat-top{flex:none;display:flex;align-items:center;gap:10px;padding:10px 12px;
  border-bottom:1px solid #e6e8ec;background:#fff;min-height:56px}
.sk-chat-ava{width:40px;height:40px;border-radius:50%;object-fit:cover;background:#16181c;color:#fff;
  display:grid;place-items:center;font-weight:800;font-size:16px;flex:none}
.sk-chat-who{flex:1 1 auto;min-width:0}
.sk-chat-name{font-weight:800;font-size:15px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sk-chat-sub{font-size:12px;color:#6b7178;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sk-chat-acts{display:flex;align-items:center;gap:4px;flex:none}
.sk-chat-min,.sk-chat-x{height:36px;border:0;border-radius:12px;background:#f3f4f6;color:#16181c;
  font:700 13px inherit;cursor:pointer}
.sk-chat-min{position:relative;display:inline-flex;align-items:center;gap:6px;padding:0 10px;order:4}
.sk-chat-acts{order:5}
.sk-chat-min svg{display:none}
.sk-chat-back{display:none}
.sk-chat-x{width:36px;padding:0;font-size:20px;line-height:1}
.sk-chat-min:hover,.sk-chat-x:hover{background:#e6e8ec}
.sk-chat-proj{flex:none;margin:0;padding:10px 14px;background:#fff6e5;color:#6a4a00;
  font-size:13.5px;line-height:1.45;border-bottom:1px solid #f0e0b8}
.sk-chat-thread{flex:1 1 auto;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;
  padding:12px;display:flex;flex-direction:column;gap:6px;background:#e8eaed}
.sk-chat-hint,.sk-chat-gate{margin:auto;max-width:300px;text-align:center;color:#6b7178;
  font-size:14px;line-height:1.5;padding:18px 8px}
.sk-chat-gate h2{margin:0 0 8px;color:#16181c;font-size:18px}
.sk-chat-gate p{margin:0 0 14px}
.sk-chat-b{max-width:82%;padding:8px 12px 6px;border-radius:18px;font-size:15px;line-height:1.4;word-wrap:break-word}
.sk-chat-from{display:block;margin-bottom:2px;font-size:11px;font-weight:800;opacity:.72}
.sk-chat-me .sk-chat-from{text-align:right}
.sk-chat-me{align-self:flex-end;background:#16181c;color:#fff;border-bottom-right-radius:5px}
.sk-chat-you{align-self:flex-start;background:#fff;color:#16181c;border-bottom-left-radius:5px;
  box-shadow:0 1px 1px rgba(16,18,22,.06)}
.sk-chat-sys{align-self:center;background:rgba(255,246,229,.95);color:#6a4a00;font-size:13px;border-radius:12px}
.sk-chat-b time{display:block;opacity:.55;font-size:11px;margin-top:3px;text-align:right}
.sk-chat-b img,.sk-chat-b video{display:block;max-width:min(220px,70vw);max-height:220px;border-radius:12px;margin:4px 0}
.sk-chat-b a.file{color:inherit;font-weight:700;text-decoration:underline}
.sk-chat-compose{flex:none;background:#f7f8f9;border-top:1px solid #e6e8ec;padding:8px 10px 10px}
.sk-chat-prev{font-size:13px;color:#6b7178;padding:0 4px 6px;display:flex;align-items:center;gap:8px}
.sk-chat-prev[hidden]{display:none !important}
.sk-chat-prev button{border:0;background:transparent;color:#a02216;font:700 13px inherit;cursor:pointer}
.sk-chat-row{display:flex;align-items:flex-end;gap:6px}
.sk-chat-ico{width:40px;height:40px;border-radius:50%;background:#eceef1;color:#16181c;
  display:grid;place-items:center;flex:none;cursor:pointer}
.sk-chat-row textarea{flex:1;min-width:0;border:0;background:#fff;border-radius:20px;
  padding:10px 14px;font:16px/1.35 inherit;resize:none;max-height:120px;min-height:40px;
  outline:none;box-shadow:inset 0 0 0 1px #e6e8ec}
.sk-chat-send{width:40px;height:40px;border:0;border-radius:50%;background:#16181c;color:#fff;
  display:grid;place-items:center;flex:none;cursor:pointer}
.sk-chat-send:disabled{opacity:.35}
.sk-chat-err{color:#a02216;font-size:13px;padding:6px 4px 0}
.sk-chat-err[hidden]{display:none !important}
@media(max-width:700px){
  .sk-chat-tabs{padding:6px 8px 4px}
  .sk-chat-tab{min-width:96px;max-width:46vw;padding:6px 26px 6px 10px}
  .sk-chat-pane{right:8px;border-radius:16px}
  .sk-chat-thread{overscroll-behavior:contain;touch-action:pan-y}
  .sk-chat-b img,.sk-chat-b video{max-width:100%;max-height:320px}
  .sk-chat-min{width:44px;height:44px;padding:0;justify-content:center;border-radius:50%;background:transparent;order:-1}
  .sk-chat-min__t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .sk-chat-min .sk-chat-back{display:block}
  html.sk-chat-full,html.sk-chat-full body{overflow:hidden}
  html.sk-chat-full #skChatDock{z-index:130;top:0}
  html.sk-chat-full .sk-chat-tabs{display:none}
  html.sk-chat-full .sk-chat-pane{top:0;left:0;right:0;bottom:var(--sk-chat-kb,0px);
    width:auto;height:auto;border:0;border-radius:0;box-shadow:none}
  html.sk-chat-full .sk-chat-top{padding-top:calc(8px + env(safe-area-inset-top,0px))}
  html.sk-chat-full .sk-chat-compose{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
}
@media(min-width:701px){
  #skChatDock{--sk-chat-bottom:88px}
  .sk-chat-pane{right:16px;width:min(400px,calc(100vw - 56px))}
  .sk-chat-pane.is-placed{right:auto;bottom:auto}
  .sk-chat-size{display:block}
  .sk-chat-size span{position:absolute;z-index:5;touch-action:none}
  .sk-chat-size [data-sk-size="n"]{left:18px;right:18px;top:0;height:8px;cursor:ns-resize}
  .sk-chat-size [data-sk-size="s"]{left:18px;right:18px;bottom:0;height:10px;cursor:ns-resize}
  .sk-chat-size [data-sk-size="w"]{top:18px;bottom:18px;left:0;width:10px;cursor:ew-resize}
  .sk-chat-size [data-sk-size="e"]{top:18px;bottom:18px;right:0;width:10px;cursor:ew-resize}
  .sk-chat-size [data-sk-size="nw"],
  .sk-chat-size [data-sk-size="ne"],
  .sk-chat-size [data-sk-size="sw"],
  .sk-chat-size [data-sk-size="se"]{width:18px;height:18px}
  .sk-chat-size [data-sk-size="nw"]{left:0;top:0;cursor:nwse-resize}
  .sk-chat-size [data-sk-size="ne"]{right:0;top:0;cursor:nesw-resize}
  .sk-chat-size [data-sk-size="sw"]{left:0;bottom:0;cursor:nesw-resize}
  .sk-chat-size [data-sk-size="se"]{right:0;bottom:0;cursor:nwse-resize}
  .sk-chat-size [data-sk-size="nw"]::after,
  .sk-chat-size [data-sk-size="se"]::after{content:"";position:absolute;width:9px;height:9px;border-color:#b7bcc3;border-style:solid}
  .sk-chat-size [data-sk-size="nw"]::after{left:5px;top:5px;border-width:2px 0 0 2px;border-radius:3px 0 0 0}
  .sk-chat-size [data-sk-size="se"]::after{right:5px;bottom:5px;border-width:0 2px 2px 0;border-radius:0 0 3px 0}
  .sk-chat-top{cursor:grab;touch-action:none}
  .sk-chat-top .sk-chat-acts,.sk-chat-top .sk-chat-acts *,
  .sk-chat-top .sk-chat-min,.sk-chat-top .sk-chat-min *{cursor:pointer;touch-action:auto}
  .sk-chat-pane.is-drag .sk-chat-top{cursor:grabbing}
}
