/* One calm conversation companion, responsive to the same viewport as the chat. */
#vy-assist-root{inset:12px 12px 12px auto;width:min(390px,calc(100% - 24px));border:1px solid var(--border,#e5eaf4);border-radius:26px;background:var(--surface,#fff);box-shadow:0 12px 48px #14275424;overflow:hidden;font-family:inherit;font-size:14px;font-weight:400;line-height:1.5;animation:r55-assistant-in 160ms ease-out}
#vy-assist-root[hidden]{display:none!important}
#vy-assist-root .vy-assist__head{border:0;gap:10px;padding:16px 16px 12px}
#vy-assist-root .vy-assist__emblem{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:16px;background:var(--accent-soft,#eaf0ff);color:var(--accent-text,var(--accent))}
#vy-assist-root .vy-assist__title{display:block;min-width:0;margin:0;font-size:18px;line-height:1.3;font-weight:650;letter-spacing:-.025em}
#vy-assist-root .vy-assist__title span{display:block;margin-top:3px;color:var(--text-muted);font-size:12px;line-height:1.35;font-weight:400;letter-spacing:0}
#vy-assist-root .vy-assist__close{display:grid;place-items:center;flex:0 0 42px;padding:0;margin-left:auto;border-radius:50%;background:var(--bg,#f4f6fa);color:var(--text-muted)}
#vy-assist-root .vy-assist__ctx{margin:0 16px 12px;padding:11px 13px;border:0;border-radius:18px;background:var(--bg,#f4f6fa);font-size:12px;line-height:1.45;max-height:35%;overflow:auto}
#vy-assist-root .vy-assist__ctx b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#vy-assist-root .vy-assist__context-details summary{display:flex;align-items:center;gap:5px;min-height:28px;cursor:pointer;color:var(--text-muted);list-style:none}
#vy-assist-root .vy-assist__context-details summary::-webkit-details-marker{display:none}
#vy-assist-root .vy-assist__context-details[open] summary svg{transform:rotate(180deg)}
#vy-assist-root .vy-assist__context-details label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
#vy-assist-root .vy-assist__ctx select{margin:0;min-height:40px;border:1px solid var(--border,#e5eaf4);border-radius:12px;background:var(--surface,#fff);color:var(--text);padding:6px 10px}
#vy-assist-root .vy-assist__run{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;margin:0 16px 10px;padding:10px 14px;border-radius:17px;font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;background:var(--accent-fill,var(--accent));color:var(--on-accent,#fff);box-shadow:0 4px 10px #1a56db12}
#vy-assist-root .vy-assist__actions{display:flex;gap:6px;flex-wrap:wrap;padding:0 16px 12px}
#vy-assist-root .vy-assist__actions button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;white-space:nowrap;min-height:42px;border:0;border-radius:14px;padding:8px 9px;background:var(--bg,#f4f6fa);font-family:inherit;font-size:12px;font-weight:500;line-height:1.4;color:var(--text)}
#vy-assist-root .vy-assist__actions button[hidden]{display:none}
#vy-assist-root .vy-assist__result{min-height:0;flex:1;padding:0 18px 14px;overscroll-behavior:contain;scrollbar-width:thin}
#vy-assist-root .vy-assist__result:empty{display:flex;align-items:center;justify-content:center}
#vy-assist-root .vy-assist__result:empty::before{content:'Выберите действие или задайте вопрос по этому чату';display:block;max-width:27ch;padding:16px 0;color:var(--text-muted);font-size:13px;text-align:center;line-height:1.65}
#vy-assist-root .vy-assist__ask{display:flex;align-items:flex-end;gap:8px;flex-wrap:nowrap;padding:10px;margin:0 12px 12px;border:1px solid var(--border,#e5eaf4);border-radius:22px;background:var(--bg,#f4f6fa)}
#vy-assist-root .vy-assist__ask textarea{flex:1 1 auto;min-width:0;width:0;min-height:44px;max-height:96px;resize:none;border:0;border-radius:12px;padding:11px 6px;background:transparent;font-family:inherit;font-size:15px;font-weight:400;line-height:1.4;box-shadow:none}
#vy-assist-root .vy-assist__ask-send{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;margin:0;border-radius:16px;background:var(--accent-fill,var(--accent));color:var(--on-accent,#fff)}
#vy-assist-root .vy-assist__draft{border-color:var(--border,#e5eaf4);border-radius:18px}
#vy-assist-root :is(.vy-assist__src button,.vy-assist__draft textarea){border-color:var(--border,#e5eaf4)}
#vy-assist-root :is(button,summary):hover{filter:brightness(.97)}
#vy-assist-root :is(button,summary):active{transform:scale(.98)}
#vy-assist-root :is(button,summary,textarea,select):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@keyframes r55-assistant-in{from{transform:translateY(7px)}to{transform:translateY(0)}}
@media(max-width:767px){#vy-assist-root{inset:8px;width:auto;border-radius:24px;z-index:80;box-shadow:0 8px 32px #14275420}#vy-assist-root .vy-assist__ask textarea{font-size:16px}}
@media(max-height:460px){#vy-assist-root .vy-assist__head{padding:8px 12px}#vy-assist-root .vy-assist__title span{display:none}#vy-assist-root .vy-assist__ctx{margin-bottom:6px;padding:6px 10px}#vy-assist-root .vy-assist__run{min-height:40px;margin-bottom:6px}#vy-assist-root .vy-assist__actions{padding-bottom:6px}#vy-assist-root .vy-assist__ask{margin-bottom:8px;padding:6px}#vy-assist-root{overflow:auto}}
@media(prefers-reduced-motion:reduce){#vy-assist-root{animation:none}#vy-assist-root :is(button,summary):active{transform:none}}
html[data-reduce-motion="1"] #vy-assist-root{animation:none}
