.project-menu,.profile-menu{position:absolute;z-index:20;background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px;box-shadow:0 8px 24px #17152d22}
.project-switcher{position:relative}.project-menu{left:0;right:0;top:58px}.project-menu button,.profile-menu button{display:flex;flex-direction:column;gap:3px;width:100%;min-height:38px;padding:8px;border-radius:7px;background:#fff;text-align:left;color:var(--ink)}
.project-menu button:hover,.project-menu button.selected,.profile-menu button:hover{background:var(--p);color:var(--v)}.project-menu small{color:var(--muted);font-size:10px}.project-menu .create-project{border-top:1px solid var(--line);margin-top:4px;color:var(--v)}.profile-menu{right:28px;top:52px;min-width:140px}.profile-menu button{display:block}
.plain-link,.plain-profile{background:none;color:var(--ink);padding:5px 8px}.plain-link:hover{color:var(--v)}.plain-profile{margin-left:10px;width:32px;height:32px;border-radius:50%;background:var(--p);color:var(--v)}
.chart-bars{height:200px;display:flex;align-items:flex-end;gap:8px;padding:16px 4px 0;border-top:1px solid var(--line)}.chart-bars>span{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;min-width:0}.chart-bars i{display:block;width:100%;max-width:28px;min-height:6px;background:var(--v);border-radius:5px 5px 0 0}.chart-bars small{font-size:9px;color:var(--muted);white-space:nowrap}
.metricCards em.negative{color:#c53d4d}.source-toolbar{display:flex;gap:8px;align-items:center;margin-bottom:10px}.source-toolbar input{flex:1;height:38px;border:1px solid var(--line);border-radius:8px;padding:0 12px}.source-toolbar button{min-height:38px;padding:0 10px;background:#fff;border:1px solid var(--line);border-radius:8px;font-size:11px}.source-toolbar button:disabled{opacity:.5}
.position-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.controls .position-grid button{width:auto}.preview-launcher{position:absolute;right:18px;bottom:18px;width:48px;height:48px;padding:0;border-radius:50%;background:var(--v);color:#fff}.preview-chat{right:18px;bottom:76px;width:280px}.preview-chat[hidden]{display:none}
.dialog-actions{display:flex;gap:6px}.dialog-actions button{background:#fff;border:1px solid var(--line);border-radius:7px;padding:6px 8px;font-size:10px}.dialog-actions button:not(:disabled):hover{border-color:var(--v);color:var(--v)}.dialog main .operatorMsg{margin-left:auto;background:#e8f7ef;color:#185b38}
.dialog-message{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:12px}.dialog-message.user-message,.dialog-message.operator-message-wrap{align-items:flex-end}.dialog-message.system-message{align-items:center}.dialog-message>p{margin:0}.dialog-correct{min-height:44px;padding:7px 9px;border:1px solid transparent;border-radius:7px;background:none;color:var(--v);font-size:10px;font-weight:700}.dialog-correct:not(:disabled):hover{border-color:var(--line);background:var(--p)}
.dialog-correction-form{display:grid;gap:9px;width:min(100%,560px);padding:12px;border:1px solid var(--line);border-radius:9px;background:#fff}.dialog-correction-form label{display:grid;gap:6px;color:var(--ink);font-size:11px;font-weight:700}.dialog-correction-form textarea{width:100%;min-height:92px;padding:10px 11px;border:1px solid var(--line);border-radius:8px;resize:vertical;font:inherit;color:var(--ink)}.dialog-correction-actions{display:flex;flex-wrap:wrap;gap:7px}.dialog-correction-form .dialog-correction-actions button{min-height:44px;padding:8px 11px;border:1px solid var(--v);border-radius:7px;background:var(--v);color:#fff;font-size:10px;font-weight:700}.dialog-correction-form .dialog-correction-actions button.secondary{border-color:var(--line);background:#fff;color:var(--ink)}.dialog-correction-error{min-height:16px!important;max-width:100%!important;margin:0!important;padding:0!important;background:none!important;color:#b42318!important;font-size:10px!important}.dialog-correction-success{display:block;color:var(--green);font-size:10px;font-weight:700}.gap-item .dialog-correction-form,.test-rating .dialog-correction-form{flex:1 0 100%}
.knowledge-gaps{border-top:1px solid var(--line);padding-top:10px}.gap-item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.gap-item span{display:flex;flex-direction:column;gap:4px}.gap-item small{color:var(--muted);overflow-wrap:anywhere}.gap-item button{color:var(--v);background:none;font-size:11px;white-space:nowrap}
.analytics-filter{display:flex;gap:4px;margin:0 0 14px;padding:4px;background:#ece9f4;border-radius:9px;width:max-content}.analytics-filter button{min-height:34px;padding:0 12px;background:transparent;border-radius:7px;color:var(--muted);font-size:11px}.analytics-filter button.selected{background:#fff;color:var(--v);box-shadow:0 1px 3px #17152d18}
.test-rating{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}.test-rating button{min-height:30px;padding:0 8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--muted);font-size:10px}.test-rating button:hover{color:var(--v);border-color:var(--v)}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.testChat>footer{align-items:flex-end;gap:8px}.testChat footer textarea{display:block;flex:1;min-width:0;min-height:40px;max-height:144px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);line-height:1.45;resize:none;overflow-y:hidden}.testChat footer textarea::placeholder{color:#625d73;opacity:1}.testChat footer button{flex:0 0 40px;margin-left:0}
.conversation-review{padding:0;overflow:hidden}.review-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px}.review-header h3{margin:0 0 5px}.review-header p{max-width:70ch;margin:0;color:var(--muted);font-size:12px;line-height:1.5}.review-refresh{flex:0 0 auto;min-height:40px;padding:0 13px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:12px;font-weight:700}.review-refresh:hover{border-color:var(--v);color:var(--v)}
.review-toolbar{display:grid;gap:10px;padding:14px 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#faf9fd}.review-filter{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.review-filter>span{width:68px;color:var(--muted);font-size:11px;font-weight:750}.review-filter button{min-height:36px;padding:0 11px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);font-size:11px;font-weight:700}.review-filter button:hover{border-color:#d8d2e5;background:#fff;color:var(--ink)}.review-filter button.selected{border-color:#d8d2e5;background:#fff;color:var(--v);box-shadow:0 1px 3px #17152d12}.review-custom{display:flex;align-items:end;flex-wrap:wrap;gap:8px;padding-left:74px}.review-custom[hidden],.review-pagination[hidden]{display:none!important}.review-custom label{display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:700}.review-custom input{width:156px;min-height:40px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}.review-custom>button{min-height:40px;padding:0 14px;border-radius:8px;background:var(--v);color:#fff;font-size:11px;font-weight:750}.review-filter-error{flex:1 0 100%;min-height:16px;margin:0;color:#b42318;font-size:11px}
.conversation-review-list{min-height:150px}.review-item{padding:20px}.review-item+.review-item{border-top:1px solid var(--line)}.review-item>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 14px}.review-item>header>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}.review-item time{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.review-page{min-width:0;color:var(--v);font-size:11px;font-weight:700;text-decoration:none;overflow-wrap:anywhere}.review-page:hover{text-decoration:underline}.review-badges{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:5px}.review-badges i{padding:5px 7px;border-radius:99px;background:#f0eef6;color:#575268;font-size:10px;font-style:normal;font-weight:750;white-space:nowrap}.review-badges i.unread{background:#e5f7ed;color:#146b3d}.review-exchange{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.review-exchange section{min-width:0;padding:14px;border-radius:10px;background:#f7f6fa}.review-exchange section>b{display:block;margin-bottom:7px;color:var(--muted);font-size:11px}.review-exchange p{margin:0;color:var(--ink);font-size:13px;line-height:1.55;overflow-wrap:anywhere;white-space:pre-wrap}.review-exchange .missing-answer{background:#fff7ed}.review-exchange .missing-answer p{color:#8a4d12}.review-exchange .review-saved-answer{grid-column:1/-1;background:#ecf8f1}.review-exchange .review-saved-answer>b,.review-exchange .review-saved-answer p{color:#185b38}.review-item>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}.review-item>footer>span{color:var(--muted);font-size:10px}.review-item>footer>div{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:7px}.review-item>footer button,.review-state button,.review-pagination button{min-height:40px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:11px;font-weight:750}.review-item>footer button:hover,.review-state button:hover,.review-pagination button:not(:disabled):hover{border-color:var(--v);color:var(--v)}.review-item>footer .review-correct{border-color:var(--v);background:var(--v);color:#fff}.review-item>footer .review-correct:hover{background:#5636e8;color:#fff}.review-item>.dialog-correction-form{width:100%;max-width:none;margin-top:14px;background:#faf9fd}.review-state{display:grid;justify-items:center;gap:7px;padding:38px 20px;color:var(--muted);text-align:center}.review-state b{color:var(--ink);font-size:14px}.review-state span{font-size:12px}.review-error b,.review-error span{color:#8a281f}.review-loading{display:grid;gap:10px;padding:24px 20px}.review-loading i{display:block;height:68px;border-radius:10px;background:linear-gradient(90deg,#f4f2f8 20%,#ebe8f2 50%,#f4f2f8 80%);background-size:220% 100%;animation:review-loading 1.2s ease-in-out infinite}.review-pagination{display:flex;align-items:center;justify-content:center;gap:12px;padding:15px 20px;border-top:1px solid var(--line)}.review-pagination span{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.review-pagination button:disabled{opacity:.45}@keyframes review-loading{to{background-position:-220% 0}}
@media(max-width:900px){.review-exchange{grid-template-columns:1fr}.review-exchange .review-saved-answer{grid-column:auto}}
@media(max-width:720px){.review-header,.review-item>header,.review-item>footer{align-items:stretch;flex-direction:column}.review-refresh{align-self:flex-start}.review-toolbar,.review-item{padding-left:15px;padding-right:15px}.review-filter>span{flex-basis:100%;width:auto}.review-filter button{flex:1 1 auto}.review-custom{padding-left:0}.review-custom label{flex:1 1 130px}.review-custom input{width:100%}.review-custom>button{flex:1 1 100%}.review-item>footer>div{justify-content:stretch}.review-item>footer button{flex:1 1 180px;min-height:44px}.review-badges{justify-content:flex-start}.review-pagination{flex-wrap:wrap}.testChat>footer{padding:10px}.testChat footer textarea{font-size:16px}}
@media(max-width:720px){.source-toolbar{flex-wrap:wrap}.source-toolbar input{flex-basis:100%}.dialog-actions{flex-wrap:wrap}.dialog-message>p,.dialog-correction-form{max-width:100%!important;width:100%}}
.runtime-ready #app{visibility:visible}.runtime-ready:before{display:none}#app{visibility:hidden}.runtime-ready #app{visibility:visible}body:not(.runtime-ready):before{content:"Загружаем рабочее пространство…";position:fixed;z-index:1000;inset:0;display:grid;place-items:center;background:var(--bg,#f8f8fc);color:var(--muted,#716d82);font:600 13px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.demo-dialog[hidden]{display:none}.demo-dialog{position:fixed;inset:0;z-index:100;background:#17152d55;display:grid;place-items:center;padding:20px}.demo-backdrop{position:absolute;inset:0}.demo-window{position:relative;width:min(440px,100%);background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 20px 60px #17152d44}.demo-window>header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;background:linear-gradient(135deg,#6646f5,#8658ff);color:#fff}.demo-window>header span{display:flex;align-items:center;gap:10px}.demo-window>header i{display:grid;place-items:center;width:30px;height:30px;border:1px solid #fff8;border-radius:9px;font-style:normal}.demo-window>header b{display:flex;flex-direction:column;font-size:13px}.demo-window>header small{font-size:10px;font-weight:500;opacity:.75}.demo-window>header button{background:none;color:#fff;font-size:24px;line-height:1}.demo-window>main{min-height:250px;max-height:370px;overflow:auto;padding:18px}.demo-window>main p{max-width:84%;margin:0 0 12px;padding:10px 12px;border-radius:11px;background:#f1eff6;font-size:13px;line-height:1.45}.demo-window>main p.userMsg{margin-left:auto;background:var(--v);color:#fff}.demo-prompts{display:flex;flex-wrap:wrap;gap:7px}.demo-prompts button{padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--v);font-size:11px}.demo-window>form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line)}.demo-window>form input{flex:1;min-width:0;height:42px;border:1px solid var(--line);border-radius:8px;padding:0 11px}.demo-window>form button{width:42px;border-radius:8px;background:var(--v);color:#fff}
.wizard .progress{display:flex;align-items:center;justify-content:center;gap:12px;color:#b9b1cc;font-size:20px;margin-bottom:28px}.wizard .progress i{font-style:normal;color:#d8d3e3}.wizard .progress span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-size:16px;background:#eeeaf7;color:#8d849f}.wizard .progress span.current{background:var(--v);color:#fff;box-shadow:0 0 0 5px #eeeaff}.wizard .progress span.complete{background:#ddd5ff;color:var(--v)}.wizard .configure-form{display:grid;gap:18px;text-align:left;margin:30px auto 0;max-width:560px}.wizard .configure-form label{display:grid;gap:8px;font-size:13px;font-weight:700}.wizard .configure-form input{height:50px;padding:0 14px;border:1px solid #dcd7e8;border-radius:9px}.wizard .configure-form h3{margin:8px 0 0;text-align:center}.onboarding-tones{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.onboarding-tones button{min-height:76px;padding:12px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:10px;color:var(--ink)}.onboarding-tones button b,.onboarding-tones button small{display:block;margin-left:24px}.onboarding-tones button small{color:var(--muted);font-size:11px;margin-top:3px}.onboarding-tones button.selected{border-color:var(--v);background:var(--p);color:var(--v)}.wizard .configure-form>[type=submit]{justify-self:center;margin-top:6px}.wizard-ready{max-width:540px;margin:35px auto 0}.ready-icon{width:62px;height:62px;margin:0 auto 22px;display:grid;place-items:center;border-radius:50%;background:#e5f7ed;color:#159447;font-size:30px;font-weight:800}.wizard-ready p{color:var(--muted);line-height:1.6}.wizard-actions{display:flex;justify-content:center;gap:10px;margin-top:28px}.wizard-actions .btn{min-width:210px}@media(max-width:600px){.onboarding-tones{grid-template-columns:1fr}.wizard-actions{flex-direction:column}.wizard-actions .btn{width:100%}}
.donut>i{position:relative;background:#ebe8f3}
.runtime-ready #app{visibility:visible!important}#app{visibility:visible!important}body:not(.runtime-ready):before{display:none!important}
.shell>main>header .profile-button,.plain-profile{display:grid;place-items:center;width:34px;height:34px;min-width:34px;padding:0;border-radius:50%;background:var(--p);color:var(--v);font-weight:800;line-height:1}
.docs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:900px}.docs-grid article{padding:22px}.docs-grid article b{font-size:15px}.docs-grid article p{color:var(--muted);font-size:13px;line-height:1.6}@media(max-width:720px){.docs-grid{grid-template-columns:1fr}}
.plain>header>span{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto}.plain>header .plain-link,.plain>header .plain-profile{display:inline-flex;align-items:center;justify-content:center;margin:0;white-space:nowrap}.plain>header .plain-profile{flex:0 0 34px}
