:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; background: #f4f2ed; color: #1c2524; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
button, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar { height: 69px; padding: 0 max(30px, calc((100vw - 1490px) / 2)); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e4e5dd; background: #fffefa; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 760; letter-spacing: -.4px; }
.brand small { color: #7e8883; font-weight: 500; font-size: 14px; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: #0d624d; color: #f6e7b5; font-size: 22px; }
.top-right { display: flex; align-items: center; gap: 18px; }
.demo-pill { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; padding: 9px 11px; color: #84602c; background: #f8ead3; border-radius: 6px; }
.avatar { display: grid; place-items: center; background: #ddeee4; color: #13533e; border-radius: 50%; width: 32px; height: 32px; font-size: 11px; font-weight: 800; }
.workspace { max-width: 1490px; margin: 0 auto; padding: 35px 30px 25px; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.eyebrow, .section-kicker, .card-kicker { margin: 0 0 8px; color: #648075; font-size: 10px; font-weight: 800; letter-spacing: 1.55px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 3vw, 39px); letter-spacing: -1.5px; line-height: 1.12; margin-bottom: 9px; }
.subtitle { font-size: 15px; color: #77817c; margin: 0; }
.intro-note { color: #748079; font-size: 12px; display: flex; align-items: center; gap: 8px; white-space: nowrap; padding-bottom: 4px; }
.dot { height: 7px; width: 7px; background: #37a47b; border-radius: 50%; box-shadow: 0 0 0 4px #dceee4; }
.columns { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: stretch; }
.panel { min-width: 0; background: #fffefa; border: 1px solid #e1e4da; border-radius: 14px; box-shadow: 0 12px 30px #263b2f0a; overflow: hidden; }
.panel-head { min-height: 87px; padding: 22px 25px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-head h2, .kb-heading h2 { font-size: 21px; letter-spacing: -.55px; margin: 0; }
.panel-tag { background: #f2f1ed; color: #7d8780; font-size: 10px; font-weight: 700; border-radius: 5px; padding: 7px 8px; white-space: nowrap; }
.scenario-switch { padding: 0 25px 15px; display: flex; gap: 7px; flex-wrap: wrap; }
.scenario { border: 1px solid #e3e5df; border-radius: 7px; padding: 8px 10px; background: white; color: #6c7771; font-size: 11px; font-weight: 650; }
.scenario:hover, .scenario:focus-visible { border-color: #347c62; color: #1a6149; }
.scenario.active { border-color: #bbdfcf; background: #eaf5ed; color: #15674b; }
.chat-window { margin: 0 25px 19px; height: 202px; padding: 17px 20px; background: #f7f8f5; border: 1px solid #ebeee8; border-radius: 10px; }
.chat-date { color: #a0aaa1; font-size: 10px; text-align: center; margin-bottom: 23px; }
.chat-message { display: flex; align-items: flex-start; gap: 10px; max-width: 94%; }
.chat-avatar { flex: none; display: grid; place-items: center; height: 27px; width: 27px; border-radius: 50%; color: #7e5d3b; background: #f6e3c4; font-size: 12px; font-weight: 750; }
.chat-message > div:last-child { background: white; border: 1px solid #e7e9e5; padding: 12px 15px 13px; border-radius: 2px 10px 10px 10px; box-shadow: 0 4px 10px #263b2f09; }
.sender { font-size: 11px; color: #3a4c43; font-weight: 750; margin-bottom: 7px; }
.sender span { float: right; margin-left: 20px; color: #aab2a9; font-weight: 500; }
.chat-message p { color: #35423b; font-size: 13px; line-height: 1.48; margin: 0; }
.input-label { margin: 0 25px 9px; display: block; font-size: 12px; font-weight: 760; }
textarea { display: block; width: calc(100% - 50px); margin: 0 25px; min-height: 99px; resize: vertical; border: 1px solid #dce3db; border-radius: 8px; padding: 13px 14px; color: #24362b; background: #fff; line-height: 1.5; font-size: 13px; outline: none; }
textarea:focus { border-color: #398a66; box-shadow: 0 0 0 3px #dbefe2; }
.input-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 25px 23px; }
.input-footer > span { font-size: 11px; color: #9aaba0; }
.primary-btn { border: 0; background: #0d624d; color: white; border-radius: 7px; padding: 11px 14px; font-size: 12px; font-weight: 750; box-shadow: 0 4px 9px #0b654d25; }
.primary-btn:hover { background: #084d3c; }
.primary-btn span { margin-left: 9px; font-size: 15px; }
.status { font-size: 10px; font-weight: 800; letter-spacing: .7px; border-radius: 6px; color: #166b4c; background: #e8f4ea; padding: 8px 10px; white-space: nowrap; }
.status.complaint { background: #fff0e5; color: #a85e24; }
.status.clarify { background: #f3efe1; color: #8b7224; }
.result-content { padding: 0 25px 22px; }
.decision-flow { border: 1px solid #dce8dc; background: #f4f9f3; border-radius: 10px; padding: 13px 15px; display: grid; grid-template-columns: 1fr auto 1fr auto 1.2fr; align-items: center; gap: 10px; margin-bottom: 14px; }
.decision-flow > div { min-width: 0; }
.decision-flow span { display: block; font-size: 9px; color: #739184; font-weight: 800; letter-spacing: 1.2px; margin-bottom: 5px; }
.decision-flow strong { color: #214c37; display: block; font-size: 11px; line-height: 1.25; }
.decision-flow b { color: #8cad99; font-size: 15px; }
.decision-flow.complaint { background: #fff7ef; border-color: #f0ddc8; }
.decision-flow.complaint strong { color: #9b5b2c; }
.decision-flow.clarify { background: #fbf9ef; border-color: #eee6c8; }
.decision-flow.clarify strong { color: #8b7224; }
.output-card { border: 1px solid #e1e7df; border-radius: 10px; padding: 15px 17px 14px; margin-bottom: 12px; background: #fff; }
.answer-card { border-left: 4px solid #418e68; }
.upsell-card { border-left: 4px solid #dcad64; background: #fffdf8; }
.output-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.icon { height: 31px; width: 31px; border-radius: 8px; display: grid; place-items: center; font-size: 19px; font-weight: 600; }
.icon-answer { background: #e7f3e9; color: #146545; }
.icon-upsell { background: #fdf1dc; color: #b97a2e; }
.card-kicker { margin-bottom: 3px; font-size: 9px; letter-spacing: 1.2px; }
.output-head h3 { font-size: 14px; letter-spacing: -.1px; margin: 0; }
.copy-btn { margin-left: auto; border: 1px solid #e3e9e1; background: white; color: #688478; border-radius: 6px; font-size: 10px; font-weight: 700; padding: 7px 9px; }
.copy-btn:hover { color: #0d624d; border-color: #89baa0; }
.output-text { color: #32413a; font-size: 12.5px; line-height: 1.56; margin-bottom: 0; }
.reason { color: #8d7e63; background: #fcf5e9; padding: 9px 11px; border-radius: 6px; font-size: 11px; line-height: 1.45; margin: 10px 0 0; }
.reason:before { content: 'ПОЧЕМУ  '; font-size: 9px; letter-spacing: .8px; font-weight: 800; color: #a48559; }
.source-line { color: #738179; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 10px; margin-top: 15px; }
.source-line strong { font-weight: 700; margin-right: 3px; }
.source-chip { border: 1px solid #dce8dc; border-radius: 4px; padding: 4px 5px; color: #2e7655; background: #f6fbf5; font-size: 10px; font-weight: 700; }
.source-chip:hover { background: #e5f4e8; }
.source-missing { color: #a17432; }
.empty-state { text-align: center; padding: 85px 35px; color: #8a9a8f; }
.empty-state[hidden] { display: none; }
.empty-icon { margin: 0 auto 13px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #e7f2e9; color: #21805b; font-size: 25px; }
.empty-state h3 { color: #37523f; margin-bottom: 8px; }
.empty-state p { font-size: 12px; line-height: 1.5; }
.kb-section { padding: 27px 0 7px; }
.kb-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 15px; }
.kb-heading p:last-child { color: #8a938d; font-size: 11px; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.fact { background: #fffefa; border: 1px solid #e1e4da; border-radius: 9px; padding: 15px 16px 14px; scroll-margin-top: 25px; transition: box-shadow .2s, border-color .2s; }
.fact.highlight { border-color: #208e61; box-shadow: 0 0 0 4px #dceee2; }
.fact-id { color: #2e8561; font-size: 10px; font-weight: 850; letter-spacing: 1px; }
.fact h3 { margin: 7px 0 7px; font-size: 13px; }
.fact p { color: #7b8880; font-size: 11px; line-height: 1.55; margin-bottom: 0; }
footer { color: #9ba69e; font-size: 10px; text-align: center; padding: 19px 0 0; }
@media (max-width: 1050px) { .intro-note { display: none; } .columns { grid-template-columns: 1fr; } .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .topbar { padding: 0 16px; } .brand small, .demo-pill { display: none; } .workspace { padding: 24px 14px; } .panel-head { padding: 19px 17px 15px; } .panel-tag { display: none; } .scenario-switch { padding: 0 17px 15px; } .chat-window { margin: 0 17px 17px; } .input-label { margin-left: 17px; } textarea { width: calc(100% - 34px); margin: 0 17px; } .input-footer { padding: 15px 17px 19px; } .input-footer > span { display: none; } .result-content { padding: 0 17px 20px; } .decision-flow { grid-template-columns: 1fr; gap: 4px; } .decision-flow b { display: none; } .decision-flow > div { display: flex; justify-content: space-between; gap: 10px; } .facts { grid-template-columns: 1fr; } .kb-heading p:last-child { display: none; } }
