/* Avito bot workspace. Scoped so other Statsfera pages keep their existing layout. */
body #workspace.main #chatbot{max-width:1420px}
body #workspace.main #chatbot .bot-view[hidden],
body #workspace.main #chatbot .bot-answer-view[hidden]{display:none!important}
body #workspace.main #chatbot .bot-page-head{align-items:flex-end;gap:20px;margin:0 0 22px}
body #workspace.main #chatbot .bot-eyebrow,
body #workspace.main #chatbot .bot-section-kicker{display:block;margin-bottom:7px;color:#3970c9;font-size:10px;font-weight:850;letter-spacing:.13em}
body #workspace.main #chatbot .bot-page-head h1{font-size:29px;letter-spacing:-.035em;color:#142743}
body #workspace.main #chatbot .bot-page-head p{font-size:13px;line-height:1.5}
body #workspace.main #chatbot .bot-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
body #workspace.main #chatbot .bot-status-pill{display:inline-flex;align-items:center;min-height:38px;padding:8px 13px;border:1px solid #dce7f7;border-radius:10px;background:#f5f9ff;color:#35527c;font-size:12px;font-weight:750;line-height:1.25}
body #workspace.main #chatbot .bot-status-pill:before{content:"";width:7px;height:7px;flex:none;margin-right:8px;border-radius:50%;background:#89a0be}
body #workspace.main #chatbot .bot-status-pill.is-on:before{background:#19a268;box-shadow:0 0 0 3px #dff5e9}
body #workspace.main #chatbot .bot-status-pill.is-off:before{background:#e39a35;box-shadow:0 0 0 3px #fff2dc}
body #workspace.main #chatbot .bot-main-nav{display:flex;gap:5px;overflow-x:auto;padding:5px;margin-bottom:18px;border:1px solid #e1e9f4;border-radius:14px;background:#fff;box-shadow:0 7px 22px rgba(26,52,86,.04);scrollbar-width:thin}
body #workspace.main #chatbot .bot-main-nav button{display:inline-flex;align-items:center;gap:8px;flex:1 0 auto;justify-content:center;min-height:43px;padding:9px 12px;border:0;border-radius:10px;background:transparent;color:#5b6f8d;font:inherit;font-size:12px;font-weight:750;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s,box-shadow .15s}
body #workspace.main #chatbot .bot-main-nav button span{color:#9aabc1;font-size:10px;font-weight:800}
body #workspace.main #chatbot .bot-main-nav button:hover{background:#f2f7ff;color:#2657a5}
body #workspace.main #chatbot .bot-main-nav button.is-active{background:#eaf2ff;color:#175ac6;box-shadow:inset 0 0 0 1px #cddfff}
body #workspace.main #chatbot .bot-main-nav button.is-active span{color:#477dd5}
body #workspace.main #chatbot .bot-main-nav button:focus-visible,
body #workspace.main #chatbot .bot-answer-nav button:focus-visible{outline:2px solid #1f6de9;outline-offset:2px}
body #workspace.main #chatbot .bot-view{min-width:0}
body #workspace.main #chatbot .avito-bot-panel{background:#fff;border-color:#e1e9f4;border-radius:16px;box-shadow:0 7px 24px rgba(26,52,86,.045)}
body #workspace.main #chatbot .avito-bot-heading h3{margin:0 0 5px;font-size:20px;letter-spacing:-.02em}
body #workspace.main #chatbot .avito-bot-heading p{margin:0;color:#6b7e99;font-size:12px;line-height:1.55}
body #workspace.main #chatbot .bot-workspace .avito-bot-heading{align-items:center}
body #workspace.main #chatbot .bot-count{display:inline-flex;align-items:center;min-height:30px;padding:5px 10px;border-radius:8px;background:#f1f6fd;color:#3d608e;font-size:11px;font-weight:750;white-space:nowrap}
body #workspace.main #chatbot .bot-picker-toolbar{margin:18px 0 14px}
body #workspace.main #chatbot .bot-picker-toolbar .btn{min-height:40px}
body #workspace.main #chatbot .bot-listing-grid{max-height:560px;gap:10px;padding:2px 5px 5px 2px}
body #workspace.main #chatbot .bot-listing{min-height:86px}
body #workspace.main #chatbot .bot-listing-open{padding-top:10px;padding-bottom:10px}
body #workspace.main #chatbot .bot-listing-switch{min-height:32px}
body #workspace.main #chatbot .bot-selection-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px 14px;margin-top:17px;padding-top:16px}
body #workspace.main #chatbot .bot-selection-footer>.small{grid-column:1/-1;line-height:1.5}
body #workspace.main #chatbot .bot-enable-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
body #workspace.main #chatbot .bot-enable-actions .btn{min-height:38px}
body #workspace.main #chatbot .bot-answer-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:14px}
body #workspace.main #chatbot .bot-answer-nav button{min-width:0;min-height:68px;padding:12px 15px;border:1px solid #dfe8f4;border-radius:12px;background:#fff;color:#263d5e;text-align:left;font:inherit;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 4px 15px rgba(26,52,86,.035)}
body #workspace.main #chatbot .bot-answer-nav button small{display:block;margin-top:4px;color:#7d8fa8;font-size:11px;font-weight:500}
body #workspace.main #chatbot .bot-answer-nav button:hover{border-color:#9cbaee;background:#f9fbff}
body #workspace.main #chatbot .bot-answer-nav button.is-active{border-color:#8bb4f6;background:#eef5ff;color:#175ac6;box-shadow:0 5px 17px rgba(31,104,216,.08)}
body #workspace.main #chatbot .bot-answer-nav button.is-active small{color:#4875b3}
body #workspace.main #chatbot .bot-answer-view>.panel{margin-top:0!important}
body #workspace.main #chatbot .avito-bot-product-picker{margin:18px 0}
body #workspace.main #chatbot .avito-bot-product-picker input,
body #workspace.main #chatbot .avito-bot-product-picker select{min-height:43px}
body #workspace.main #chatbot #avitoBotKnowledgeConfig>textarea{min-height:300px;padding:15px;border:1px solid #d8e4f2;border-radius:11px;background:#fff;color:#243951;font:13px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace}
body #workspace.main #chatbot #avitoBotKnowledgeConfig>p:first-child{padding:12px 14px;border:1px solid #dce9f8;border-radius:10px;background:#f7faff;line-height:1.55}
body #workspace.main #chatbot .bot-source-notice{display:flex;align-items:flex-start;gap:9px;margin:17px 0 5px;padding:11px 13px;border:1px solid #dce8f6;border-radius:10px;background:#f7faff;color:#405b7d;font-size:12px;line-height:1.5}
body #workspace.main #chatbot .bot-source-notice:before{content:"i";display:grid;place-items:center;flex:none;width:17px;height:17px;border-radius:50%;background:#dceaff;color:#2562bd;font-family:Georgia,serif;font-size:12px;font-weight:bold}
body #workspace.main #chatbot .bot-source-notice.is-priority{border-color:#f2dfba;background:#fffaf0;color:#805720}
body #workspace.main #chatbot .bot-source-notice.is-priority:before{background:#ffe9b9;color:#9c6a17}
body #workspace.main #chatbot .bot-question-ideas{margin:12px 0 16px}
body #workspace.main #chatbot .bot-faq-search{margin:12px 0}
body #workspace.main #chatbot .avito-bot-faq-rows{gap:9px}
body #workspace.main #chatbot .avito-bot-faq-row{display:block;padding:0;overflow:hidden;background:#fff;border-color:#e2eaf5}
body #workspace.main #chatbot .avito-bot-faq-row[open]{border-color:#bcd2f4;box-shadow:0 4px 14px rgba(36,94,180,.06)}
body #workspace.main #chatbot .avito-bot-faq-row summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:51px;padding:10px 15px;cursor:pointer;list-style:none;color:#203a5c;font-size:13px;font-weight:800}
body #workspace.main #chatbot .avito-bot-faq-row summary::-webkit-details-marker{display:none}
body #workspace.main #chatbot .avito-bot-faq-row summary:after{content:"⌄";color:#7890af;font-size:21px;font-weight:400;line-height:1;transition:transform .15s}
body #workspace.main #chatbot .avito-bot-faq-row[open] summary{background:#f5f9ff;border-bottom:1px solid #e1eaf6}
body #workspace.main #chatbot .avito-bot-faq-row[open] summary:after{transform:rotate(180deg)}
body #workspace.main #chatbot .bot-faq-row-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:13px;padding:15px}
body #workspace.main #chatbot .bot-faq-row-content>label:first-child{grid-column:1/-1}
body #workspace.main #chatbot .bot-faq-row-content>.bot-remove-answer{grid-column:1/-1;justify-self:end}
body #workspace.main #chatbot .bot-faq-row-content label{display:grid;gap:6px;color:#536783;font-size:12px;font-weight:750}
body #workspace.main #chatbot .bot-faq-row-content label small{font-size:11px;font-weight:500}
body #workspace.main #chatbot .bot-faq-row-content textarea{min-height:112px}
body #workspace.main #chatbot .bot-faq-topic input{font-size:14px}
body #workspace.main #chatbot .avito-bot-faq-actions{margin-bottom:0}
body #workspace.main #chatbot .bot-intro-panel{background:#fff}
body #workspace.main #chatbot .bot-intro-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
body #workspace.main #chatbot .bot-intro-auto{grid-column:1/-1}
body #workspace.main #chatbot .bot-preview-panel .avito-bot-heading{margin-bottom:18px}
body #workspace.main #chatbot .bot-preview-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:12px}
body #workspace.main #chatbot .bot-preview-toolbar>label{display:grid;gap:6px;flex:1 1 300px;color:#536783;font-size:12px;font-weight:750}
body #workspace.main #chatbot .bot-preview-toolbar select,
body #workspace.main #chatbot .bot-preview-listing select{width:100%;min-height:42px;padding:8px 10px;border:1px solid #d8e4f2;border-radius:9px;background:#fff;color:#243951;font:inherit;font-size:13px}
body #workspace.main #chatbot .bot-preview-dialog-actions{display:flex;flex-wrap:wrap;gap:8px}
body #workspace.main #chatbot .bot-preview-dialog-actions .btn{min-height:42px}
body #workspace.main #chatbot .bot-preview-delete{color:#a94545;border-color:#eed4d4}
body #workspace.main #chatbot .bot-preview-delete:hover{background:#fff4f4;border-color:#e9b7b7}
body #workspace.main #chatbot .bot-preview-listing{display:flex;align-items:end;gap:12px;padding:12px 14px;margin-bottom:14px;border:1px solid #dce9f8;border-radius:10px;background:#f7faff;color:#456284;font-size:12px;font-weight:700}
body #workspace.main #chatbot .bot-preview-listing.is-selected{border-color:#cbdffc;background:#eef5ff;color:#245aaa}
body #workspace.main #chatbot .bot-preview-listing label{display:grid;gap:6px;flex:1 1 330px}
body #workspace.main #chatbot .bot-preview-listing>span{flex:1 1 230px;padding-bottom:7px;color:#6a7f9a;font-size:11px;font-weight:500;line-height:1.4}
body #workspace.main #chatbot .bot-preview-listing select:disabled{background:#f2f5fa;color:#62758e}
body #workspace.main #chatbot .bot-preview-conversation{display:flex;flex-direction:column;gap:13px;min-height:250px;max-height:490px;overflow-y:auto;padding:19px;border:1px solid #dfe8f4;border-radius:13px;background:linear-gradient(155deg,#f7faff,#f1f6fc);scrollbar-width:thin}
body #workspace.main #chatbot .bot-preview-empty{display:grid;place-content:center;gap:7px;flex:1;max-width:370px;margin:auto;color:#6d8099;text-align:center;font-size:12px;line-height:1.55}
body #workspace.main #chatbot .bot-preview-empty b{color:#2b4669;font-size:15px}
body #workspace.main #chatbot .bot-preview-turn{display:flex;flex-direction:column;align-items:flex-start;max-width:min(76%,630px)}
body #workspace.main #chatbot .bot-preview-turn.is-buyer{align-self:flex-end;align-items:flex-end}
body #workspace.main #chatbot .bot-preview-turn-label{margin:0 8px 5px;color:#7185a0;font-size:10px;font-weight:800}
body #workspace.main #chatbot .bot-preview-bubble{padding:11px 14px;border:1px solid #dce7f4;border-radius:13px 13px 13px 4px;background:#fff;color:#243951;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 3px 10px rgba(26,52,86,.035)}
body #workspace.main #chatbot .is-buyer .bot-preview-bubble{border-color:#c8dcff;border-radius:13px 13px 4px 13px;background:#e2edff;color:#204f96}
body #workspace.main #chatbot .bot-preview-controls{display:grid;grid-template-columns:200px minmax(0,1fr) auto;gap:9px}
body #workspace.main #chatbot .bot-preview-controls{margin-top:13px}
body #workspace.main #chatbot .bot-preview-controls select,
body #workspace.main #chatbot .bot-preview-controls input{min-width:0;min-height:42px;padding:8px 11px;border:1px solid #d8e4f2;border-radius:9px;background:#fff;color:#243951;font:inherit;font-size:13px}
body #workspace.main #chatbot .bot-preview-controls .btn{min-height:42px}
body #workspace.main #chatbot .bot-preview-feedback{margin-top:10px;color:#6c809a;font-size:11px;line-height:1.5}
body #workspace.main #chatbot .avito-bot-automation{margin:0;border-radius:16px}
body #workspace.main #chatbot .avito-bot-schedule{gap:12px 14px}
body #workspace.main #chatbot .avito-bot-schedule label:not(.bot-schedule-toggle){flex:1 1 175px}
body #workspace.main #chatbot .bot-diagnostics{margin:12px 0;padding:14px 16px;border:1px solid #e1e9f4;border-radius:12px;background:#fff}
body #workspace.main #chatbot .bot-diagnostics summary{cursor:pointer;color:#486486;font-size:12px;font-weight:750}
body #workspace.main #chatbot .bot-diagnostics .account-tasks-note{margin:12px 0 0;line-height:1.6}
body #workspace.main #chatbot .bot-view[data-bot-view="settings"]>.bot-advanced{margin-top:0}
@media(max-width:1050px){
 body #workspace.main #chatbot .bot-page-head{align-items:flex-start}
 body #workspace.main #chatbot .bot-head-actions{justify-content:flex-start}
 body #workspace.main #chatbot .bot-main-nav button{flex:0 0 auto}
 body #workspace.main #chatbot .bot-selection-footer{grid-template-columns:1fr}
 body #workspace.main #chatbot .bot-enable-actions{justify-content:flex-start}
}
@media(max-width:720px){
 body #workspace.main #chatbot .bot-page-head{flex-direction:column;align-items:stretch}
 body #workspace.main #chatbot .bot-head-actions{justify-content:space-between}
 body #workspace.main #chatbot .bot-page-head h1{font-size:25px}
 body #workspace.main #chatbot .bot-main-nav{margin-left:-2px;margin-right:-2px}
 body #workspace.main #chatbot .bot-main-nav button{min-height:42px;padding:9px 12px}
 body #workspace.main #chatbot .bot-answer-nav{grid-template-columns:1fr}
 body #workspace.main #chatbot .bot-answer-nav button{min-height:52px}
 body #workspace.main #chatbot .bot-answer-nav button small{display:inline;margin-left:7px}
 body #workspace.main #chatbot .avito-bot-heading{flex-wrap:wrap}
 body #workspace.main #chatbot .bot-faq-row-content{grid-template-columns:1fr}
 body #workspace.main #chatbot .bot-faq-row-content>label:first-child,
 body #workspace.main #chatbot .bot-faq-row-content>.bot-remove-answer{grid-column:1}
 body #workspace.main #chatbot .bot-intro-fields{grid-template-columns:1fr}
 body #workspace.main #chatbot .bot-preview-toolbar{align-items:stretch;flex-direction:column}
 body #workspace.main #chatbot .bot-preview-toolbar>label{flex:auto;width:100%}
 body #workspace.main #chatbot .bot-preview-dialog-actions .btn{flex:1 1 140px}
 body #workspace.main #chatbot .bot-preview-listing{align-items:stretch;flex-direction:column}
 body #workspace.main #chatbot .bot-preview-listing label,
 body #workspace.main #chatbot .bot-preview-listing>span{flex:auto}
 body #workspace.main #chatbot .bot-preview-listing>span{padding-bottom:0}
 body #workspace.main #chatbot .bot-preview-conversation{min-height:230px;padding:12px}
 body #workspace.main #chatbot .bot-preview-turn{max-width:88%}
 body #workspace.main #chatbot .bot-preview-controls{grid-template-columns:1fr}
 body #workspace.main #chatbot .bot-preview-controls select{width:100%}
 body #workspace.main #chatbot .bot-enable-actions .btn{flex:1 1 145px}
 body #workspace.main #chatbot .bot-status-pill{max-width:100%}
}
