@charset "UTF-8";

:root {
  color-scheme: light;
  --bg: #f6f5fa;
  --surface: #fff;
  --text: #282538;
  --muted: #858293;
  --line: #eeecf3;
  --purple: #765ce7;
  --purple-dark: #6146d3;
  --purple-soft: #f0ecff;
  --green: #2d9d7c;
  --green-soft: #eaf8f2;
  --amber: #b58027;
  --amber-soft: #fff5e4;
  --shadow: 0 6px 26px #30224b05, 0 1px 3px #30224b03;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-decoration: none; }
button, input, textarea, a { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--purple); }
input, textarea { color: var(--text); }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #a29dad; }
h1, h2, h3, p { margin: 0; }
button { color: inherit; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 238px; padding: 34px 22px 24px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--line); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 10; }
.sidebar-toggle { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 36px; padding: 6px 9px; margin-bottom: 20px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; }
.sidebar-toggle:hover { background: var(--purple-soft); color: var(--purple); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; font-size: 22px; font-weight: 750; letter-spacing: -.6px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--purple); color: white; border-radius: 13px; box-shadow: 0 5px 12px #765ce72e; }
.brand-mark .icon { width: 24px; height: 24px; }
.brand-caption { display: block; font-size: 10px; color: var(--muted); font-weight: 400; letter-spacing: .1px; margin-top: 3px; }
.workspace-label { font-size: 9px; font-weight: 650; color: #aaa6b6; letter-spacing: 1.3px; margin: 48px 12px 17px; }
.navigation { display: grid; gap: 7px; }
.nav-item { display: flex; gap: 13px; align-items: center; min-height: 47px; padding: 0 15px; border-radius: 10px; color: #767185; font-weight: 550; transition: background .18s, color .18s; }
.nav-item:hover { background: #f8f7fb; color: var(--purple); }
.nav-item.active { background: var(--purple-soft); color: var(--purple); }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); margin-left: auto; }
.nav-count { margin-left: auto; background: var(--purple-soft); font-size: 10px; border-radius: 5px; min-width: 20px; text-align: center; padding: 3px; color: var(--purple); }
.sidebar-note { background: linear-gradient(145deg, #f7f4ff, #f4f4fc); border: 1px solid #eeebfa; border-radius: 13px; margin-top: auto; padding: 19px 15px; }
.note-symbol { display: block; color: var(--purple); font-size: 23px; margin-bottom: 12px; }
.sidebar-note strong { display: block; font-size: 12px; }
.sidebar-note p { font-size: 11px; line-height: 1.8; color: #928b9f; margin: 9px 0 17px; }
.sidebar-note a { color: var(--purple); font-size: 10px; font-weight: 600; display: flex; justify-content: space-between; gap: 3px; }
.sidebar-footer { display: flex; align-items: center; gap: 11px; margin: 24px 7px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.version-pill { background: #f0eff5; border: 1px solid #e9e6f0; color: #777181; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; }
.sidebar-footer strong { display: block; font-size: 11px; font-weight: 600; }
.sidebar-footer div > span { display: block; font-size: 9px; margin-top: 4px; color: #9b95a6; }
.main { margin-left: 238px; width: calc(100% - 238px); padding: 0 38px; }
.topbar { height: 78px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eae7f0; }
.breadcrumb { font-size: 11px; color: #9993a4; }
.breadcrumb span { margin: 0 13px; color: #bbb5c8; }
.breadcrumb strong { font-weight: 500; color: #615b70; }
.connection-status { font-size: 10px; color: #888090; display: flex; align-items: center; gap: 7px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #46b88e; display: inline-block; flex-shrink: 0; }
.connection-status.is-error .status-dot { background: #dc8c6b; }
.connection-status.is-pending .status-dot { background: #b4a5e8; }
.view { padding-top: 31px; animation: appear .25s ease; max-width: 1550px; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.eyebrow { font-size: 9px; font-weight: 650; letter-spacing: 1.7px; color: #9b92ac; display: flex; align-items: center; gap: 7px; }
.tiny-spark { font-size: 16px; color: var(--purple); }
.tiny-version { color: var(--purple); background: #ece6ff; border-radius: 4px; font-size: 8px; letter-spacing: 0; padding: 2px 5px; }
h1 { font-size: clamp(25px, 2.35vw, 36px); font-weight: 650; letter-spacing: -1.1px; margin-top: 11px; line-height: 1.25; }
.accent { color: var(--purple); }
.page-heading p { font-size: 12px; color: var(--muted); margin-top: 11px; line-height: 1.7; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 10px 15px; border-radius: 9px; font-size: 11px; font-weight: 600; border: 1px solid transparent; transition: background .18s, box-shadow .18s; white-space: nowrap; flex-shrink: 0; }
.button .icon { width: 16px; height: 16px; }
.button-secondary { border-color: #e4e0ed; background: white; color: #635b73; box-shadow: 0 2px 3px #392c5003; }
.button-secondary:hover:not(:disabled) { background: #faf8ff; border-color: #d3c9ee; }
.button-primary { background: var(--purple); color: white; box-shadow: 0 4px 10px #765ce728; }
.button-primary:hover:not(:disabled) { background: var(--purple-dark); }
.panel { background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); min-width: 0; }
.chat-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.chat-panel { height: clamp(560px, calc(100dvh - 290px), 830px); min-height: 560px; display: flex; flex-direction: column; overflow: hidden; border: 0; box-shadow: none; }
.chat-header { padding: 18px 23px; display: flex; gap: 11px; align-items: center; }
/* Переключатель и исходные данные относятся только к экрану чата. */
.chat-channel-area { padding: 18px 23px 0; flex-shrink: 0; }
.channel-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0 0 10px; padding: 4px; min-width: 0; border: 0; border-radius: 11px; background: #f7f6fa; }
.channel-option { min-width: 0; cursor: pointer; }
.channel-option > span { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 5px; border-radius: 7px; color: var(--muted); font-size: 11px; font-weight: 600; transition: background .18s, color .18s, box-shadow .18s; }
.channel-option .icon { width: 16px; height: 16px; }
.channel-option small { font-size: 8px; font-weight: 500; }
.channel-option:hover > span { color: var(--purple); }
.channel-option input:checked + span { background: white; color: var(--purple); }
.channel-option input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 1px; }
.channel-identity { padding: 11px 13px; border: 0; border-radius: 10px; background: #faf9fc; }
.channel-identity h3 { margin-bottom: 8px; font-size: 10px; font-weight: 600; color: #81738f; }
.channel-note { font-size: 11px; }
.channel-help { margin-top: 7px; font-size: 9px; line-height: 1.6; color: var(--muted); }
.channel-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: 9px; }
.channel-fields-voice { grid-template-columns: minmax(0, 230px); }
.channel-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 9px; color: #8f7ca1; }
.channel-field input { width: 100%; min-width: 0; border: 1px solid #e6deef; border-radius: 6px; background: white; padding: 7px 8px; font-size: 11px; line-height: 1.4; }
.channel-field input:disabled { opacity: .65; }
/* Верхняя карточка фиксирована, а лента сохраняет прокрутку при любой высоте. */
.chat-panel .chat-header, .chat-panel .composer-area, .chat-panel .handoff-banner { flex-shrink: 0; }
.chat-panel .chat-messages { min-height: 0; }
@media (max-width: 760px) {
  .chat-channel-area { padding: 12px 13px; }
  .channel-option > span { gap: 5px; font-size: 10px; }
}
@media (max-width: 420px) {
  .channel-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-fields .channel-field:last-child { grid-column: 1 / -1; }
  .channel-fields-voice { grid-template-columns: minmax(0, 1fr); }
  .channel-option > span { flex-wrap: wrap; gap: 4px; }
  .channel-identity { padding: 10px; }
}
.avatar { display: grid; place-items: center; border-radius: 12px; flex-shrink: 0; width: 39px; height: 39px; font-size: 14px; font-weight: 600; }
.avatar-bot { background: #ece5ff; color: var(--purple); }
.avatar-company { background: #f2eefb; color: var(--purple); width: 44px; height: 44px; }
.chat-person { min-width: 0; }
.chat-person strong { display: block; font-size: 12px; }
.chat-person > span { font-size: 10px; display: flex; gap: 5px; align-items: center; color: #93909d; margin-top: 5px; }
.chat-header > .subtle-pill { margin-left: auto; }
.subtle-pill { font-size: 9px; padding: 5px 8px; color: #958b9f; border: 1px solid #efebf4; background: #fbfaff; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.chat-messages { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 28px; scrollbar-width: thin; scrollbar-color: #dfd9ed transparent; }
.chat-welcome { height: 100%; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.welcome-art { display: grid; place-items: center; width: 112px; height: 112px; position: relative; margin-bottom: 29px; color: var(--purple); }
.welcome-art > .icon { width: 46px; height: 46px; padding: 11px; box-sizing: content-box; background: linear-gradient(135deg, #eee8ff, #e2d8fc); border-radius: 23px; transform: rotate(-8deg); box-shadow: 0 7px 25px #765ce717; }
.orbit { position: absolute; border: 1px solid #ebe5f8; border-radius: 50%; inset: 0; }
.orbit-two { inset: -14px; border-style: dashed; border-color: #eeeaf6; }
.chat-welcome .orbit, .chat-welcome .art-dot { display: none; }
.chat-welcome .welcome-art > .icon { box-shadow: none; }
.art-dot { position: absolute; right: -4px; top: 21px; width: 9px; height: 9px; border-radius: 3px; transform: rotate(25deg); background: #c7b9ef; box-shadow: -119px 73px 0 -1px #dfd3f9; }
.chat-welcome .eyebrow { font-size: 8px; letter-spacing: 1.3px; }
.chat-welcome h2 { font-size: 26px; letter-spacing: -.7px; margin: 12px 0; font-weight: 600; }
.chat-welcome p { color: #9992a6; font-size: 12px; line-height: 1.8; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.suggestion { border: 0; background: #f7f6fa; border-radius: 8px; padding: 10px 12px; font-size: 10px; color: #81768f; transition: background .2s; }
.suggestion span { margin-left: 8px; color: #b2a4c6; }
.suggestion:hover { background: var(--purple-soft); border-color: #d1c4ee; color: var(--purple); }
.composer-area { padding: 18px 23px; background: #fff; }
.composer { display: flex; align-items: flex-end; background: #f7f6fa; border: 1px solid transparent; border-radius: 11px; padding: 7px; transition: border-color .2s; }
.composer:focus-within { border-color: #c2b2ed; }
.composer textarea { flex: 1; min-width: 0; background: transparent; border: 0; padding: 9px 8px; line-height: 1.5; min-height: 38px; max-height: 150px; resize: none; font-size: 12px; outline: none; }
.send-button { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; background: var(--purple); color: white; border: 0; border-radius: 9px; }
.send-button:hover:not(:disabled) { background: var(--purple-dark); }
.send-button:disabled { opacity: .45; }
.composer-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; background: transparent; color: #8a7fa6; border: 0; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.composer-icon:hover { background: #ece7f8; color: var(--purple); }
.composer-icon .icon { width: 19px; height: 19px; }
.composer-icon.recording { background: #fde8e8; color: #d33; animation: rec-pulse 1.1s ease-in-out infinite; }
@keyframes rec-pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.message-image { max-width: 220px; max-height: 240px; border-radius: 12px; display: block; object-fit: cover; margin-bottom: 4px; }
.message-audio { width: 230px; max-width: 100%; height: 38px; margin-bottom: 4px; }
.composer-caption { display: flex; justify-content: space-between; gap: 10px; color: #b1a8bc; font-size: 8px; padding: 9px 3px 0; }
.composer-caption > span { display: inline-flex; align-items: center; gap: 4px; }
kbd { font-family: inherit; font-size: inherit; }
.composer-caption .icon { width: 10px; height: 10px; }
.is-voice .suggestions { display: none; }
.voice-actions { display: flex; align-items: center; gap: 20px; }
.voice-talk { width: 96px; height: 96px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 50%; background: var(--purple); color: white; font-size: 12px; font-weight: 600; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.voice-talk .icon { width: 27px; height: 27px; }
.voice-talk:hover:not(:disabled) { background: var(--purple-dark); }
.voice-talk.is-recording { background: #d65268; animation: voice-recording 1.2s ease-in-out infinite; }
.voice-details { flex: 1; min-width: 0; }
.voice-status { font-size: 12px; font-weight: 600; line-height: 1.5; }
.voice-hint { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.voice-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 10px; color: var(--muted); cursor: pointer; }
.voice-toggle input { margin: 0; accent-color: var(--purple); }
.voice-stop { flex-shrink: 0; }
.voice-metrics { display: flex; flex-wrap: wrap; gap: 5px 18px; margin-top: 13px; color: var(--muted); font-size: 10px; line-height: 1.6; font-variant-numeric: tabular-nums; }
@keyframes voice-recording { 50% { box-shadow: 0 0 0 9px #d6526826; } }
@media (max-width: 760px) {
  .voice-actions { gap: 12px; flex-wrap: wrap; }
  .voice-talk { width: 80px; height: 80px; font-size: 11px; }
  .voice-status { font-size: 11px; }
  .voice-stop { padding-inline: 12px; }
  .voice-metrics { gap: 4px 10px; font-size: 9px; }
}
.message-row { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 26px; animation: appear .25s ease; }
.message-row .avatar { width: 29px; height: 29px; border-radius: 10px; font-size: 10px; margin-top: 3px; }
.message-row.user { justify-content: flex-end; }
.message-body { max-width: min(90%, 680px); min-width: 0; }
.user .message-body { max-width: 80%; }
.message-author { font-size: 9px; color: #9d92ac; margin: 1px 0 6px 2px; }
.message-bubble { padding: 13px 16px; background: #f5f4f8; border: 0; border-radius: 0 13px 13px 13px; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; white-space: pre-wrap; }
.user .message-bubble { background: var(--purple); color: white; border-radius: 13px 0 13px 13px; }
.message-meta { display: flex; gap: 5px; align-items: center; color: #a89dae; font-size: 8px; margin: 7px 0 0 2px; }
.bot .message-meta { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.message-meta .icon { width: 10px; height: 10px; }
.user .message-meta { justify-content: flex-end; }
.reply-items { display: grid; gap: 9px; }
.reply-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.reply-button { font-size: 10px; line-height: 1.5; color: var(--purple); padding: 8px 12px; border: 1px solid #dcd1f4; background: #fff; border-radius: 8px; overflow-wrap: anywhere; max-width: 100%; }
.reply-button:hover:not(:disabled) { background: var(--purple-soft); }
.product-carousel { display: flex; overflow-x: auto; gap: 10px; max-width: 100%; padding-bottom: 5px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.product-card { border: 1px solid #e9e4f1; border-radius: 13px; overflow: hidden; background: white; width: 230px; max-width: 100%; flex-shrink: 0; scroll-snap-align: start; }
.product-image { height: 158px; position: relative; background: linear-gradient(145deg, #f7f5fb, #eeebf4); display: grid; place-items: center; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 8px; position: absolute; inset: 0; }
.product-image > .icon { width: 38px; height: 38px; color: #c1b5d6; }
.product-content { padding: 14px; }
.product-content h3 { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; font-weight: 550; }
.product-price { font-size: 20px; font-weight: 650; letter-spacing: -.4px; margin-top: 8px; }
.product-note { font-size: 10px; line-height: 1.7; margin: 7px 0 12px; color: #968aa4; white-space: pre-wrap; overflow-wrap: anywhere; }
.product-content .reply-buttons { margin-top: 12px; }
.product-content .reply-button { width: 100%; background: var(--purple-soft); border-color: transparent; }
.message-link { color: var(--purple); background: var(--purple-soft); padding: 11px 14px; border: 1px solid #e3daf7; border-radius: 9px; font-size: 12px; overflow-wrap: anywhere; }
.typing-bubble { display: flex; gap: 4px; align-items: center; padding: 15px; background: #f3f1f8; border-radius: 0 12px 12px 12px; }
.typing-bubble i { width: 4px; height: 4px; border-radius: 50%; background: #a599c2; animation: typing 1.2s infinite; }
.typing-bubble i:nth-child(2) { animation-delay: .15s; }
.typing-bubble i:nth-child(3) { animation-delay: .3s; }
.typing-bubble span { font-size: 10px; color: #9b8eac; margin-left: 5px; }
.handoff-banner { display: flex; align-items: center; gap: 9px; padding: 12px 19px; font-size: 11px; line-height: 1.6; background: var(--amber-soft); border-bottom: 1px solid #f1e4ce; color: #9c7733; }
.handoff-banner.is-assigned { background: var(--green-soft); color: #368a70; border-bottom-color: #d7eee4; }
.chat-insights { display: grid; gap: 17px; }
.insight-card { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 20px; box-shadow: var(--shadow); }
.manager-card { text-align: center; background: linear-gradient(160deg, white 10%, #f9f7ff 90%); padding: 22px 20px; }
.section-kicker { font-size: 8px; font-weight: 650; letter-spacing: 1.1px; color: #a399b1; }
.manager-portrait { position: relative; margin: 22px auto 14px; width: 67px; height: 67px; border-radius: 22px; background: linear-gradient(145deg, #eee6ff, #dcd0fc); color: var(--purple); display: grid; place-items: center; box-shadow: 0 5px 12px #765ce715; }
.manager-portrait > .icon { width: 32px; height: 32px; }
.portrait-badge { position: absolute; bottom: -4px; right: -5px; width: 22px; height: 22px; border: 3px solid white; border-radius: 50%; display: grid; place-items: center; background: #68bca0; color: white; }
.portrait-badge .icon { width: 11px; height: 11px; stroke-width: 3; }
.manager-card h2 { font-size: 16px; font-weight: 600; }
.manager-card > p { color: #9b90a8; font-size: 10px; margin-top: 6px; }
.manager-skills { text-align: left; border-top: 1px solid #ebe5f3; padding-top: 15px; margin-top: 20px; display: grid; gap: 10px; }
.manager-skills span { display: flex; gap: 8px; align-items: center; color: #81758f; font-size: 10px; }
.manager-skills .icon { color: #9e8ec8; width: 13px; height: 13px; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
h2 { font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.card-title h3 { font-size: 11px; font-weight: 600; }
.muted { color: #b1a6be; width: 17px; height: 17px; }
.turn-metrics { display: flex; gap: 35px; }
.turn-metrics strong { display: block; font-size: 23px; font-weight: 550; letter-spacing: -.7px; }
.turn-metrics span { font-size: 9px; color: #a69bae; display: block; margin-top: 5px; }
.mini-pipeline { display: flex; gap: 4px; margin: 20px 0 14px; }
.mini-pipeline span { flex: 1; height: 4px; border-radius: 4px; background: #eeeaf5; }
.mini-pipeline span.complete { background: #ae98e9; }
.mini-pipeline span.waiting { background: #e5bc72; }
.text-link { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--purple); }
.text-link .icon { width: 14px; height: 14px; }
.context-card .card-title { margin-bottom: 14px; }
.context-state { color: #98899f; font-size: 10px; line-height: 1.6; }
.fact-tags, .method-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fact-tags:empty { display: none; }
.context-card .fact-tags { margin-top: 13px; }
.fact-tag, .method-tag { display: inline-flex; border-radius: 6px; padding: 6px 8px; font-size: 10px; max-width: 100%; overflow-wrap: anywhere; }
.fact-tag { background: #f3f1f7; color: #8b7a9a; }
.method-tag { background: var(--purple-soft); color: #8a6fc3; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.session-label { font-size: 8px; letter-spacing: 1px; color: #b4a9be; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.session-label span { display: block; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0; color: #a99eb4; margin-top: 6px; overflow-wrap: anywhere; }
.main-footer { display: flex; justify-content: space-between; color: #b0a6bb; font-size: 9px; padding: 25px 0; max-width: 1550px; margin: auto; }
.footer-separator { margin: 0 8px; color: #cbc4d4; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 25px; }
.panel-heading p, .card-subtitle { margin-top: 7px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.pipeline-map-panel { overflow: hidden; }
.pipeline-steps { list-style: none; display: flex; margin: 0; padding: 19px 25px 28px; overflow-x: auto; }
.pipeline-step { flex: 1; min-width: 103px; position: relative; text-align: center; }
.pipeline-step::after { content: ""; position: absolute; top: 24px; height: 1px; background: #ebe5f3; left: calc(50% + 26px); width: calc(100% - 52px); }
.pipeline-step:last-child::after { display: none; }
.step-number { display: grid; place-items: center; margin: 0 auto 15px; width: 49px; height: 49px; border: 1px solid #e8e2f1; background: #faf9fc; color: #b2a5c4; border-radius: 15px; font-size: 14px; font-weight: 550; }
.pipeline-step strong { display: block; color: #9b8cae; font-size: 11px; font-weight: 550; }
.step-caption { display: block; color: #bdb0cb; font-size: 8px; margin: 6px 5px 0; }
.pipeline-step.complete .step-number { background: var(--purple-soft); color: var(--purple); border-color: #dbcef5; }
.pipeline-step.complete strong { color: #8b6cc1; }
.pipeline-step.complete::after { background: #d2c2f1; }
.pipeline-step.waiting .step-number { background: var(--amber-soft); color: var(--amber); border-color: #f1ddb5; }
.pipeline-step.waiting strong { color: var(--amber); }
.pipeline-step.is-processing .step-number { animation: pulse 1.4s infinite; background: var(--purple-soft); }
.map-footer { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 14px 25px; border-top: 1px solid var(--line); background: #fdfcfe; font-size: 9px; color: #a192b0; }
.map-footer > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #e8e1ef; }
.legend-dot.complete { background: #b59bde; }
.legend-dot.waiting { background: #e3b969; }
.map-footer .decider-label { margin-left: auto; }
.decider-label strong { color: var(--purple); font-weight: 500; }
.pipeline-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; margin-top: 20px; }
.detail-panel { padding: 24px; }
.pipeline-detail-grid .detail-panel { min-height: 220px; }
.spaced { margin-top: 25px; }
.detail-panel .section-kicker { margin-bottom: 12px; }
.empty-text { font-size: 11px; color: #aea1bb; line-height: 1.7; }
.plan-chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.plan-chain li { display: flex; align-items: center; gap: 10px; position: relative; }
.plan-chain li:not(:last-child)::after { content: ""; height: 13px; border-left: 1px solid #dfd4ee; position: absolute; left: 11px; top: 24px; }
.plan-index { background: var(--purple-soft); color: #9779cb; border-radius: 7px; width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; font-size: 9px; }
.plan-method { font-family: ui-monospace, monospace; font-size: 10px; color: #8d7a9e; overflow-wrap: anywhere; }
#plan-need { margin-top: 14px; }
#plan-need.needs-input { background: var(--amber-soft); color: var(--amber); padding: 10px; border-radius: 8px; }
.run-list { display: grid; gap: 10px; }
.run-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.run-item:last-child { border-bottom: 0; padding-bottom: 0; }
.run-item code { font-family: ui-monospace, monospace; font-size: 10px; color: #8d7a9e; overflow-wrap: anywhere; }
.outcome { font-size: 9px; padding: 5px 7px; border-radius: 5px; background: #f1eef6; color: #9b8aae; flex-shrink: 0; }
.outcome.ok, .subtle-pill.success { background: var(--green-soft); color: #5c9d87; border-color: #dbefe6; }
.outcome.pending, .outcome.need_input, .subtle-pill.waiting { background: var(--amber-soft); color: var(--amber); border-color: #f0e0be; }
.outcome.error { background: #fff0ef; color: #bd736b; }
.pipeline-bottom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 19px; margin-top: 20px; }
.timing-total { color: var(--purple); font-size: 22px; font-weight: 550; white-space: nowrap; }
.timings-chart { display: flex; align-items: end; gap: 18px; height: 187px; padding-top: 12px; }
.timing-column { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.timing-value { color: #9a87b0; font-size: 10px; margin-bottom: 7px; }
.timing-bar { width: min(100%, 55px); height: var(--height, 3px); min-height: 3px; background: linear-gradient(0deg, #e9e1fc, #c3acee); border-radius: 6px 6px 2px 2px; transition: height .5s ease; }
.timing-column:last-child .timing-bar { background: linear-gradient(0deg, #a186e3, #765ce7); }
.timing-name { margin-top: 11px; font-size: 9px; color: #a498b2; text-align: center; }
.tools-panel .method-tags { max-height: 190px; overflow-y: auto; }
.text-button { background: transparent; border: 0; padding: 0; color: var(--purple); font-size: 10px; display: inline-flex; align-items: center; gap: 6px; }
.text-button .icon { width: 13px; height: 13px; }
.tools-panel .text-button { margin-top: 18px; }
.notice { padding: 13px 16px; border: 1px solid #e6dbf7; background: #f1ecfb; color: #8c75ac; border-radius: 10px; font-size: 12px; line-height: 1.6; margin-bottom: 18px; }
.notice.is-error, .inline-error { color: #b57168; background: #fff1ef; border-color: #f3d8d3; }
.notice.is-success { color: #53927d; background: var(--green-soft); border-color: #dceee6; }
.inline-error { padding: 8px 10px; margin-bottom: 10px; border-radius: 7px; font-size: 11px; line-height: 1.7; }
.inline-error button { border: 0; background: transparent; color: inherit; font-weight: 650; text-decoration: underline; margin-left: 7px; }
#settings-fields { margin: 0; padding: 0; border: 0; min-width: 0; }
.settings-top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.company-heading { display: flex; align-items: center; gap: 13px; margin: 23px 0 18px; }
.company-heading h3 { font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.company-heading p { margin-top: 6px; font-size: 10px; color: #9c8fa9; }
.company-about { font-size: 12px; line-height: 1.9; color: #8b7d9c; white-space: pre-wrap; overflow-wrap: anywhere; }
.company-offer { margin-top: 22px; padding: 17px; border-radius: 10px; background: #f8f5fd; }
.company-offer p { font-size: 11px; line-height: 1.8; color: #9b87af; margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.decider-options { display: grid; gap: 9px; }
.decider-option { display: flex; align-items: center; gap: 12px; position: relative; padding: 12px 14px; border: 1px solid #ebe5f2; border-radius: 11px; cursor: pointer; transition: border-color .2s, background .2s; }
.decider-option:has(input:checked) { background: #f8f5ff; border-color: #c8b5ef; }
.decider-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.decider-option:has(input:focus-visible) { outline: 2px solid var(--purple); outline-offset: 2px; }
.model-mark { display: grid; place-items: center; background: #ebe2fd; color: #9a7cca; width: 34px; height: 34px; border-radius: 9px; font-size: 14px; font-weight: 600; }
.model-blue { background: #e9effa; color: #88a0c5; }
.model-teal { background: #e7f3f0; color: #77a69c; }
.decider-option strong { display: block; font-size: 12px; font-weight: 550; }
.decider-option small { display: block; font-size: 9px; color: #a293b0; margin-top: 4px; }
.radio-indicator { width: 15px; height: 15px; border-radius: 50%; border: 1px solid #dcd2e6; margin-left: auto; }
input:checked ~ .radio-indicator { border: 4px solid var(--purple); }
.blocks-panel { margin: 22px 0; }
.prompt-blocks { display: grid; gap: 12px; padding: 0 24px 22px; }
.prompt-block { border: 1px solid #e9e2f1; border-radius: 11px; overflow: hidden; background: #fdfcfe; }
.prompt-block.is-disabled { background: #f7f6f9; }
.block-heading { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.drag-handle { color: #b0a1c1; cursor: grab; padding: 4px; display: flex; border: 0; background: transparent; }
.drag-handle .icon { width: 16px; height: 16px; }
.block-order { font-size: 9px; color: #b3a3c4; }
.block-id { border: 1px solid transparent; border-radius: 5px; background: transparent; padding: 4px 6px; width: min(180px, 30%); font-size: 12px; font-weight: 550; min-width: 55px; }
.block-id:hover, .block-id:focus { background: white; border-color: #e0d5ed; }
.block-controls { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-button { width: 26px; height: 26px; display: grid; place-items: center; background: white; border: 1px solid #e9e1f1; color: #a58fbd; border-radius: 6px; }
.icon-button .icon { width: 13px; height: 13px; }
.block-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; color: #a18cb9; position: relative; margin-right: 7px; cursor: pointer; }
.switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { display: inline-block; width: 30px; height: 17px; background: #ddd4e7; border-radius: 20px; position: relative; transition: background .2s; flex-shrink: 0; }
.switch-track::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: white; position: absolute; top: 3px; left: 3px; box-shadow: 0 1px 3px #42305414; transition: transform .2s; }
.switch-input:checked ~ .switch-track { background: var(--purple); }
.switch-input:checked ~ .switch-track::after { transform: translateX(13px); }
.switch-input:focus-visible ~ .switch-track { outline: 2px solid var(--purple); outline-offset: 3px; }
.switch-input:disabled ~ .switch-track { opacity: .5; cursor: default; }
.block-text { display: block; width: calc(100% - 30px); margin: 0 15px 14px; padding: 12px; border: 1px solid #eae3f2; border-radius: 7px; line-height: 1.85; font-size: 11px; min-height: 100px; background: white; }
.is-disabled .block-text { color: #b3a9bd; }
.prompt-block.dragging { opacity: .45; }
.prompt-block.drag-target { box-shadow: 0 -3px 0 var(--purple); }
.blocks-footer { display: flex; align-items: center; gap: 9px; padding: 15px 24px; border-top: 1px solid var(--line); color: #af9cc0; font-size: 10px; line-height: 1.6; }
.blocks-footer .icon { width: 13px; height: 13px; }
.handoff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.field-label { display: flex; flex-direction: column; gap: 10px; color: #8f7ca1; font-size: 11px; }
.field-label input, .field-label textarea { background: #fbf9fd; border: 1px solid #e6deef; border-radius: 8px; padding: 11px 12px; font-size: 11px; line-height: 1.7; width: 100%; }
.field-label:last-child { grid-column: 1 / -1; max-width: 340px; }
.field-label input[type=number] { width: 90px; }
.field-help { font-size: 10px; color: #a99ab8; line-height: 1.6; }
.presence-panel { display: flex; align-items: center; gap: 15px; padding: 20px 24px; margin-bottom: 22px; }
.manager-name-field { display: flex; flex-direction: column; gap: 4px; max-width: 250px; }
.manager-name-field > span { font-size: 9px; color: #a192b1; }
.manager-name-field input { border: 1px solid #e8e0f2; border-radius: 6px; padding: 6px 8px; font-size: 12px; font-weight: 500; width: 100%; background: #fcfaff; }
.presence-description { margin-left: 15px; font-size: 11px; color: #a091ad; line-height: 1.6; }
.presence-switch { display: inline-flex; align-items: center; gap: 13px; margin-left: auto; position: relative; color: #8d7ba0; font-size: 12px; white-space: nowrap; cursor: pointer; }
.presence-switch .switch-track { width: 38px; height: 22px; }
.presence-switch .switch-track::after { width: 16px; height: 16px; }
.presence-switch .switch-input:checked ~ .switch-track::after { transform: translateX(16px); }
.desk-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; margin-bottom: 22px; }
.desk-metric { padding: 23px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.metric-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; }
.green { background: var(--green-soft); color: #80bba6; }
.purple { background: var(--purple-soft); color: #ac8fde; }
.amber { background: var(--amber-soft); color: #d4b07b; }
.desk-metric div > span { display: block; font-size: 10px; color: #a491b5; }
.desk-metric strong { display: block; font-size: 29px; font-weight: 550; margin-top: 6px; line-height: 1; }
.metric-caption { font-size: 9px; color: #b2a0c0; width: 100%; margin-top: 2px; }
.desk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
.table-scroll { overflow-x: auto; }
.chats-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
.chats-table thead { background: #fcfafe; }
.chats-table th { color: #b09abd; font-size: 9px; font-weight: 500; padding: 12px 16px; border-block: 1px solid var(--line); white-space: nowrap; }
.chats-table th:first-child, .chats-table td:first-child { padding-left: 24px; }
.chats-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.chats-table td:first-child { min-width: 180px; }
.chat-row-id { display: block; font-family: ui-monospace, monospace; font-size: 10px; color: #9172ae; overflow-wrap: anywhere; }
.chat-row-reason { display: block; font-size: 10px; color: #b09abd; margin-top: 6px; line-height: 1.6; }
.chat-row-manager { font-size: 10px; color: #9a85ac; }
.close-chat { font-size: 9px; padding: 7px 9px; }
.desk-empty { text-align: center; padding: 54px 20px; }
.desk-empty > .icon { width: 34px; height: 34px; color: #c5b0dc; }
.desk-empty h3 { font-size: 14px; font-weight: 500; margin: 14px 0 8px; }
.desk-empty p { color: #b29dc0; font-size: 11px; line-height: 1.7; }
.desk-footer { padding: 14px 24px; color: #b39fc2; font-size: 9px; display: flex; gap: 7px; }
.online-panel .panel-heading { padding: 23px 20px; }
.online-managers { padding: 0 20px 20px; display: grid; gap: 16px; }
.online-manager { display: flex; gap: 10px; align-items: center; }
.online-manager .avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
.online-manager strong { display: block; font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
.online-manager small { display: block; font-size: 9px; color: #a58eb7; margin-top: 5px; }
.online-manager > .status-dot { margin-left: auto; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 30; background: #343040; color: white; padding: 15px 20px; border-radius: 11px; font-size: 12px; box-shadow: 0 7px 30px #30233b26; max-width: calc(100% - 40px); line-height: 1.6; animation: appear .25s ease; }
.toast.is-error { background: #a56862; }
.noscript-notice { position: fixed; inset: auto 15px 15px; padding: 15px; background: #fff1dc; border: 1px solid #e4c98a; border-radius: 12px; text-align: center; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .6; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px #765ce712; } }
@media (min-width: 1600px) { .main { padding-inline: 54px; } .chat-panel { min-height: 650px; } }
@media (max-width: 1200px) { .sidebar { width: 206px; padding-inline: 16px; } .main { margin-left: 206px; width: calc(100% - 206px); padding-inline: 26px; } .insight-card { padding: 17px; } .chat-messages { padding: 20px; } .page-heading p { font-size: 11px; } .pipeline-detail-grid { grid-template-columns: repeat(2, 1fr); } .pipeline-detail-grid > :last-child { grid-column: 1 / -1; min-height: 130px; } .desk-grid { grid-template-columns: minmax(0, 1fr) 220px; } .desk-metric { padding: 18px; } .presence-description { margin-left: 0; } }
@media (max-width: 1000px) { .chat-layout { grid-template-columns: minmax(0, 1fr); } .chat-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); } .manager-card { display: none; } .chat-panel { height: 620px; } .page-heading { align-items: flex-start; } .page-heading > .button { margin-top: 25px; } .desk-grid { grid-template-columns: minmax(0, 1fr); } .online-managers { grid-template-columns: repeat(2, minmax(0, 1fr)); } .settings-top-grid { grid-template-columns: 1fr; } .handoff-grid { grid-template-columns: repeat(2, 1fr); } .presence-description { display: none; } .pipeline-bottom-grid { grid-template-columns: 1fr; } .desk-metrics { gap: 10px; } .metric-icon { width: 30px; height: 30px; border-radius: 8px; } .metric-icon .icon { width: 16px; height: 16px; } .desk-metric { gap: 9px; padding: 14px; } }
@media (max-width: 760px) { .app-shell { display: block; } .sidebar { position: sticky; inset: auto; top: 0; width: 100%; padding: 12px 18px 0; border-right: 0; border-bottom: 1px solid var(--line); background: #fffffff5; backdrop-filter: blur(12px); } .brand { font-size: 17px; padding: 0; } .brand-mark { width: 30px; height: 30px; border-radius: 10px; } .brand-mark .icon { width: 20px; height: 20px; } .brand-caption { font-size: 8px; } .workspace-label, .sidebar-note, .sidebar-footer { display: none; } .navigation { display: flex; gap: 5px; padding-top: 12px; justify-content: space-between; } .nav-item { flex: 1; justify-content: center; gap: 7px; min-height: 40px; padding: 0 8px; font-size: 11px; border-radius: 8px 8px 0 0; } .nav-item .icon { width: 16px; height: 16px; } .nav-dot { display: none; } .nav-count { font-size: 8px; min-width: 15px; } .main { margin: 0; width: 100%; padding: 0 20px; } .topbar { height: 52px; } .breadcrumb { font-size: 10px; } .breadcrumb span { margin-inline: 7px; } .connection-status { font-size: 9px; } .view { padding-top: 24px; } h1 { font-size: 27px; } .page-heading { flex-wrap: wrap; gap: 14px; margin-bottom: 20px; } .page-heading > .button { margin: 0; } .page-heading p { max-width: 390px; } .eyebrow { font-size: 8px; } .chat-panel { height: 610px; min-height: 520px; } .chat-insights { gap: 13px; } .composer-caption > span:last-child { display: none; } .chat-header { padding: 16px; } .chat-messages { padding: 18px 14px; } .composer-area { padding: 13px; } .pipeline-detail-grid { grid-template-columns: 1fr; } .pipeline-detail-grid > :last-child { grid-column: auto; } .detail-panel { padding: 20px; } .panel-heading { padding: 20px; } .pipeline-steps { padding-inline: 20px; } .map-footer { padding-inline: 20px; } .map-footer .decider-label { width: 100%; margin: 0; } .prompt-blocks { padding-inline: 15px; } .blocks-panel .panel-heading { flex-wrap: wrap; } .blocks-footer { padding: 13px 18px; } .handoff-grid { grid-template-columns: 1fr; } .presence-panel { padding: 17px; gap: 10px; } .presence-panel > .avatar { display: none; } .presence-switch { gap: 7px; font-size: 11px; } .desk-metric { display: block; } .desk-metric .metric-icon { margin-bottom: 12px; } .desk-metric strong { font-size: 25px; margin: 10px 0; } .metric-caption { font-size: 8px; line-height: 1.7; display: block; } .main-footer { font-size: 8px; } .main-footer > span:last-child { display: none; } }
@media (max-width: 420px) { .main { padding-inline: 13px; } .sidebar { padding-inline: 13px; } .nav-item { gap: 5px; padding-inline: 4px; } h1 { font-size: 24px; } .chat-header > .subtle-pill { font-size: 8px; padding: 4px 6px; } .chat-person > span { font-size: 9px; } .chat-insights { grid-template-columns: 1fr; } .chat-panel { height: 570px; } .chat-welcome .eyebrow { font-size: 7px; } .chat-welcome h2 { font-size: 24px; } .product-card { width: 210px; } .block-heading { gap: 4px; padding-inline: 7px; } .block-toggle > span:last-child { display: none; } .block-toggle { margin-right: 3px; } .block-controls { gap: 3px; } .block-id { font-size: 11px; } .online-managers { grid-template-columns: 1fr; } .timings-chart { gap: 10px; } .desk-metric { padding: 12px 10px; } }
/* Свёрнутое меню остаётся доступным на любом экране. */
body.sidebar-collapsed .sidebar { width: 72px; padding: 24px 12px; overflow-y: auto; }
body.sidebar-collapsed .sidebar-toggle { align-self: center; justify-content: center; width: 44px; min-height: 44px; padding: 0; }
body.sidebar-collapsed .brand { justify-content: center; padding: 0; }
body.sidebar-collapsed .brand > span:last-child,
body.sidebar-collapsed .sidebar-toggle > span,
body.sidebar-collapsed .workspace-label,
body.sidebar-collapsed .nav-item > span,
body.sidebar-collapsed .sidebar-note,
body.sidebar-collapsed .sidebar-footer { display: none; }
body.sidebar-collapsed .navigation { display: grid; gap: 8px; margin-top: 32px; padding: 0; }
body.sidebar-collapsed .nav-item { justify-content: center; min-height: 44px; padding: 0; border-radius: 10px; }
body.sidebar-collapsed .main { margin-left: 72px; width: calc(100% - 72px); }
@media (max-width: 760px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 206px; padding: 20px 16px; border-right: 1px solid var(--line); border-bottom: 0; background: var(--surface); backdrop-filter: none; }
  .sidebar-toggle { margin-bottom: 20px; }
  .navigation { display: grid; gap: 8px; padding-top: 28px; }
  .nav-item { justify-content: flex-start; min-height: 44px; padding: 0 12px; border-radius: 10px; }
  .main, body.sidebar-collapsed .main { margin-left: 64px; width: calc(100% - 64px); }
  body.sidebar-collapsed .sidebar { width: 64px; padding: 20px 10px; }
  .chat-person > span { flex-wrap: wrap; }
  #view-chat .chat-header > .subtle-pill { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
