:root{color:#111411;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--text:#111411;--text-muted:#5d655d;--brand:#73b227;--primary:#1d5b2a;--primary-hover:#164821;--surface:#f5f6f7;--assistant-bubble:#ebedef;--user-bubble:#e8f2dc;--border:#dce1da;--focus:#1d5b2a;--error:brown;background:#fff;font-family:Manrope,Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;min-width:320px;min-height:100%}body{background:#fff;min-width:320px;min-height:100%;margin:0}button,textarea{font:inherit}.page-shell{width:min(100%,1200px);margin:0 auto;padding:0 32px 64px}.page-shell--embed{width:100%;min-height:100dvh;padding:12px}.page-shell--embed .public-main{flex-direction:column;width:100%;height:calc(100dvh - 24px);margin:0;display:flex}.page-shell--embed .hero-section{flex:0 0 104px;gap:16px;min-height:104px;padding:0 8px 8px}.page-shell--embed .hero-section h1{font-size:clamp(26px,4vw,36px)}.page-shell--embed .subtitle{margin-top:5px;font-size:15px;line-height:21px}.page-shell--embed .mascot{flex-basis:100px;width:100px;height:86px;margin-left:auto}.page-shell--embed .mascot__signal{display:none}.page-shell--embed .chat-card{flex:1;width:100%;height:auto;min-height:360px}.embed-new-chat{white-space:nowrap;flex:none}.page-shell--widget{padding:0}.page-shell--widget .public-main{height:100dvh}.page-shell--widget .chat-card{border:0;border-radius:0;min-height:100dvh}.site-header{justify-content:space-between;align-items:center;height:80px;display:flex}.brand{color:var(--text);letter-spacing:-.025em;font-size:22px;font-weight:800;line-height:28px;text-decoration:none}.profile-button{width:44px;height:44px;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;display:grid}.profile-button:hover{background:var(--surface)}.profile-button svg{fill:none;stroke:currentColor;stroke-width:1.5px;width:29px}.public-main{width:min(100%,900px);margin:22px auto 0}.header-actions{align-items:center;gap:8px;display:flex}.new-chat-button{border:1px solid var(--border);min-height:40px;color:var(--text);cursor:pointer;background:#fff;border-radius:999px;padding:8px 14px}.new-chat-button:hover{border-color:var(--brand)}.hero-section{justify-content:space-between;align-items:center;gap:40px;min-height:164px;padding:2px 12px 10px 4px;display:flex}.hero-section>div:first-child{min-width:0}h1{color:var(--text);letter-spacing:-.045em;margin:0;font-size:clamp(42px,4vw,48px);font-weight:800;line-height:1.04}.subtitle{color:var(--text-muted);margin:10px 0 0;font-size:20px;line-height:28px}.mascot{isolation:isolate;transform-origin:55% 85%;flex:0 0 190px;width:190px;height:154px;position:relative}.mascot img{object-fit:contain;object-position:center bottom;filter:drop-shadow(0 12px 10px #1c31121f);width:100%;height:100%;position:absolute;inset:0}.mascot--thinking{animation:1.4s ease-in-out infinite think}.mascot--answered{animation:.65s ease-in-out nod}.mascot--clarification{transform:rotate(-3deg)}.mascot--no_answer img{filter:saturate(.78)drop-shadow(0 12px 10px #1c31121f)}.mascot--error img{filter:saturate(.62)drop-shadow(0 12px 10px #1c31121f)}.mascot__signal{z-index:2;width:35px;height:46px;position:absolute;top:22px;left:-12px}.mascot__signal i{background:var(--brand);transform-origin:100%;border-radius:999px;width:26px;height:5px;position:absolute}.mascot__signal i:first-child{bottom:4px;right:0;transform:rotate(8deg)}.mascot__signal i:nth-child(2){top:18px;right:2px;transform:rotate(27deg)}.mascot__signal i:nth-child(3){top:2px;right:10px;transform:rotate(50deg)}@keyframes think{50%{transform:translateY(-3px)rotate(-2deg)}}@keyframes nod{50%{transform:translateY(5px)scaleY(.97)}}.chat-card{border:1px solid var(--border);background:#f6f7f7;border-radius:22px;flex-direction:column;gap:12px;height:clamp(390px,48vh,470px);min-height:390px;padding:16px;display:flex;box-shadow:0 1px #12241408}.demo-notice{min-height:28px;color:var(--text-muted);background:#fff;border-radius:999px;align-self:flex-start;align-items:center;gap:8px;padding:4px 10px;font-size:13px;font-weight:700;display:flex}.status-dot{background:#a5aba5;border-radius:50%;width:8px;height:8px}.status-dot--online{background:var(--brand)}.status-dot--offline{background:var(--error)}.message-list{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbd2ca transparent;flex-direction:column;flex:1;gap:10px;min-height:0;padding:8px 6px 8px 2px;display:flex;overflow-y:auto}.empty-state{color:var(--text-muted);text-align:center;justify-items:center;gap:8px;margin:auto;padding:24px;display:grid}.empty-state strong{color:var(--text);font-size:18px}.suggestions{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:12px;display:flex}.suggestions button{border:1px solid var(--border);min-height:40px;color:var(--text);cursor:pointer;background:#fff;border-radius:999px;padding:8px 14px}.suggestions button:hover{border-color:var(--brand)}.message-row{align-items:flex-end;gap:9px;display:flex}.message-row--assistant{align-items:flex-start}.message-row--user{justify-content:flex-end}.message{max-width:min(74%,620px);color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:17px;margin:0;padding:12px 15px;font-size:15px;line-height:1.48}.message p{margin:0}.rich-link{color:var(--primary);text-underline-offset:2px;font-weight:700;text-decoration:underline;text-decoration-thickness:1px}.rich-link:hover{color:var(--primary-hover);text-decoration-thickness:2px}.rich-link:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:3px}.message--user{background:var(--user-bubble);border-bottom-right-radius:7px}.message--assistant{background:var(--assistant-bubble);border-bottom-left-radius:7px}.mini-mascot{flex:0 0 38px;place-items:center;width:38px;height:38px;display:grid}.mini-mascot img{object-fit:contain;object-position:center bottom;width:38px;height:38px;transform:scaleX(-1)}.thinking-text:after{content:"…";animation:1.2s infinite dots}@keyframes dots{50%{opacity:.35}}.sources{white-space:normal;border-top:1px solid #1d5b2a24;margin-top:10px;padding-top:8px;font-size:13px}.sources summary{color:var(--primary);cursor:pointer;font-weight:700}.sources div{gap:2px;margin-top:8px;display:grid}.sources span{color:var(--text-muted)}.feedback-actions{gap:2px;margin-top:7px;display:flex}.feedback-actions button{width:27px;height:27px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;padding:0;display:grid}.feedback-actions button:hover,.feedback-actions button.active{color:var(--primary);background:#fff}.feedback-icon{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;width:16px;height:16px}.feedback-icon--down{transform:rotate(180deg)}.chat-error{color:var(--error);background:#f8eaea;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;font-size:14px;display:flex}.chat-error button{color:inherit;cursor:pointer;background:0 0;border:0;text-decoration:underline}.composer{border:1px solid var(--border);background:#fff;border-radius:17px;align-items:flex-end;gap:10px;padding:8px;display:flex;box-shadow:0 1px #1224140a}.composer:focus-within{border-color:color-mix(in srgb, var(--focus) 68%, white);box-shadow:0 0 0 3px color-mix(in srgb, var(--focus) 14%, transparent)}.composer textarea{resize:none;min-height:40px;max-height:120px;color:var(--text);font:inherit;background:0 0;border:0;outline:0;flex:1;padding:9px 10px}.composer textarea::placeholder{color:#8a918b}.composer textarea:focus-visible{outline:none}.composer button{background:var(--primary);color:#fff;cursor:pointer;border:0;border-radius:14px;flex:0 0 48px;place-items:center;width:48px;height:48px;display:grid}.composer button:hover:not(:disabled){background:var(--primary-hover)}.composer button:disabled{opacity:.42;cursor:default}.composer button svg{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linejoin:round;width:25px}.faq-section{margin-top:30px}.faq-section h2{letter-spacing:-.025em;margin:0 0 14px;font-size:26px;line-height:34px}.faq-list{gap:8px;display:grid}.faq-item{background:var(--surface);border-radius:12px;overflow:hidden}.faq-item button{width:100%;min-height:56px;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;padding:14px 20px;display:flex}.faq-item p{color:var(--text-muted);margin:0;padding:0 20px 18px}.chevron{font-size:24px;transform:translateY(-2px)}.faq-item button[aria-expanded=true] .chevron{transform:rotate(180deg)translateY(-2px)}.site-footer{border-top:1px solid var(--border);width:min(100%,900px);color:var(--text-muted);justify-content:flex-end;gap:22px;margin:40px auto 0;padding:24px 0;font-size:13px;display:flex}.site-footer a{color:inherit;text-decoration:none}.site-footer a:hover{color:var(--primary)}.dialog-backdrop{z-index:30;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#1114117a;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.login-dialog{background:#fff;border-radius:22px;width:min(100%,430px);padding:32px;position:relative;box-shadow:0 24px 80px #0000003d}.dialog-close{background:var(--surface);width:38px;height:38px;color:var(--text);cursor:pointer;border:0;border-radius:50%;font-size:24px;position:absolute;top:14px;right:16px}.login-dialog h2{margin:0 0 8px;font-size:28px;line-height:36px}.muted{color:var(--text-muted)}.login-dialog form,.faq-editor{gap:16px;margin-top:24px;display:grid}.login-dialog label,.faq-editor label{color:var(--text-muted);gap:7px;font-size:13px;font-weight:700;display:grid}.login-dialog input,.faq-editor input,.faq-editor textarea,.search-row input{border:1px solid var(--border);width:100%;color:var(--text);font:inherit;background:#fff;border-radius:12px;padding:12px 14px}.login-dialog input:focus,.faq-editor input:focus,.faq-editor textarea:focus,.search-row input:focus{outline:3px solid color-mix(in srgb, var(--focus) 22%, transparent);border-color:var(--focus)}.form-error{color:var(--error);margin:0;font-size:14px}.primary-button,.secondary-button,.text-button{cursor:pointer;border-radius:11px;justify-content:center;align-items:center;min-height:42px;padding:9px 15px;font-weight:750;text-decoration:none;display:inline-flex}.primary-button{border:1px solid var(--primary);background:var(--primary);color:#fff}.primary-button:hover{background:var(--primary-hover)}.secondary-button{border:1px solid var(--border);color:var(--text);background:#fff}.secondary-button:hover{border-color:var(--brand)}.text-button{min-height:36px;color:var(--primary);background:0 0;border:0}.admin-shell{background:#f7f8f7;min-height:100vh}.admin-header{border-bottom:1px solid var(--border);background:#fff;justify-content:space-between;align-items:center;height:68px;padding:0 32px;display:flex}.admin-header>div{align-items:center;gap:12px;display:flex}.admin-user{color:var(--text-muted);font-size:14px}.admin-main{width:min(100%,1320px);margin:0 auto;padding:38px 32px 64px}.admin-title{justify-content:space-between;align-items:flex-end;gap:24px;display:flex}.admin-title h1{font-size:42px;line-height:48px}.admin-tabs{border:1px solid var(--border);background:#fff;border-radius:14px;gap:4px;margin:28px 0 18px;padding:4px;display:flex;overflow-x:auto}.admin-tabs button{min-height:42px;color:var(--text-muted);white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:10px;padding:8px 18px}.admin-tabs button.active{background:var(--user-bubble);color:var(--primary);font-weight:800}.admin-grid{grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);align-items:start;gap:18px;display:grid}.panel{border:1px solid var(--border);background:#fff;border-radius:18px;padding:22px}.panel-heading{justify-content:space-between;align-items:center;gap:16px;min-height:48px;margin-bottom:18px;display:flex}.panel-heading h2,.panel-heading h3{margin:0;font-size:24px;line-height:30px}.overline{color:var(--text-muted);letter-spacing:.08em;text-transform:uppercase;margin:0 0 2px;font-size:11px;font-weight:800}.export-menu{gap:6px;display:flex}.export-menu select{border:1px solid var(--border);min-height:36px;color:var(--text);background:#fff;border-radius:9px;padding:6px 9px}.export-menu .secondary-button{min-height:36px;padding:6px 10px;font-size:12px}.search-row{gap:8px;margin-bottom:16px;display:flex}.admin-table{display:grid}.admin-table__head,.admin-table__row{grid-template-columns:130px minmax(180px,1fr) 80px 110px;align-items:center;gap:12px;padding:11px 10px;display:grid}.admin-table__head{color:var(--text-muted);text-transform:uppercase;font-size:11px;font-weight:800}.admin-table__row{width:100%;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;border-top:1px solid #edf0ed}.admin-table__row:hover{background:var(--surface)}.admin-table__row strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.empty-table{text-align:center;padding:30px 10px}.status-pill{width:fit-content;color:var(--text-muted);white-space:nowrap;background:#eef0ee;border-radius:999px;padding:4px 8px;font-size:11px;font-style:normal;display:inline-flex}.status-pill--answered,.status-pill--published,.status-pill--approved{color:#285b27;background:#e4f1d8}.status-pill--failed,.status-pill--hidden{color:#8c2e2e;background:#f6e7e7}.status-pill--draft{color:#73571a;background:#fff3d7}.conversation-detail{min-height:480px;position:sticky;top:18px}.detail-empty{text-align:center;min-height:420px;color:var(--text-muted);place-content:center;justify-items:center;display:grid}.detail-empty>span{background:var(--surface);width:52px;height:52px;color:var(--primary);border-radius:50%;place-items:center;margin-bottom:14px;font-size:24px;display:grid}.detail-empty p{max-width:250px}.detail-messages{gap:10px;max-height:620px;display:grid;overflow-y:auto}.detail-message{background:var(--assistant-bubble);border-radius:13px;padding:12px 14px}.detail-message--user{background:var(--user-bubble);margin-left:40px}.detail-message>span,.detail-message small{color:var(--text-muted);font-size:11px}.detail-message p{white-space:pre-wrap;margin:5px 0}.usage-panel{min-height:520px}.mode-badge,.save-notice{background:var(--user-bubble);color:var(--primary);border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.metric{background:var(--surface);border-radius:14px;flex-direction:column;justify-content:space-between;min-height:118px;padding:16px;display:flex}.metric span{color:var(--text-muted);font-size:13px}.metric strong{letter-spacing:-.03em;font-size:27px}.metric--accent{background:var(--user-bubble)}.usage-note{border-left:4px solid var(--brand);background:#fafcf8;margin-top:20px;padding:16px}.usage-note p{color:var(--text-muted);margin:5px 0 0}.faq-admin-items{gap:7px;display:grid}.faq-admin-row{background:var(--surface);border:1px solid #0000;border-radius:12px;grid-template-columns:1fr auto;gap:4px;display:grid}.faq-admin-row.selected{border-color:var(--brand);background:#f5faef}.faq-select{width:100%;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:13px;display:flex}.faq-admin-items button>span{gap:4px;display:grid}.faq-admin-items small{color:var(--text-muted)}.order-buttons{align-content:center;gap:2px;padding-right:6px;display:grid}.order-buttons button{width:26px;height:24px;color:var(--primary);cursor:pointer;background:#fff;border:0;border-radius:6px}.order-buttons button:disabled{opacity:.3;cursor:default}.faq-editor{margin-top:0}.faq-editor textarea{resize:vertical;line-height:1.5}.field-row{grid-template-columns:1fr 1fr;gap:12px;display:grid}.faq-editor .checkbox-row{color:var(--text);align-items:center;gap:9px;display:flex}.faq-editor .checkbox-row input{width:18px;height:18px}.editor-actions{flex-wrap:wrap;gap:8px;display:flex}.knowledge-layout{align-items:start;gap:18px;display:grid}.knowledge-workspace{min-width:0}.knowledge-layer-tabs{background:var(--surface);border-radius:12px;grid-template-columns:1fr 1fr;gap:4px;max-width:520px;margin:-2px 0 18px;padding:4px;display:grid}.knowledge-layer-tabs button{min-height:40px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:9px;padding:8px 10px}.knowledge-layer-tabs button.active{color:var(--primary);background:#fff;font-weight:800;box-shadow:0 1px 4px #152e1914}.knowledge-toolbar{justify-content:space-between;align-items:center;gap:16px;display:flex}.knowledge-toolbar .search-row{flex:1;margin-bottom:12px}.qa-toolbar-actions{align-items:center;gap:12px;margin-bottom:12px;display:flex}.qa-toolbar-actions>span{color:var(--text-muted);white-space:nowrap;flex:none;font-size:13px}.qa-sheet{border:1px solid var(--border);background:#fff;border-radius:14px;max-height:680px;overflow:auto}.qa-sheet-head,.qa-sheet-row{grid-template-columns:minmax(250px,.75fr) minmax(420px,1.25fr);display:grid}.qa-sheet-head{z-index:3;border-bottom:1px solid var(--border);color:var(--text-muted);letter-spacing:.04em;text-transform:uppercase;background:#f0f2f0;padding:11px 12px;font-size:12px;position:sticky;top:0}.qa-sheet-head strong+strong{padding-left:12px}.qa-sheet-row{border-top:1px solid var(--border);background:#fff;transition:background .15s,opacity .15s}.qa-sheet-row>textarea,.qa-answer-cell>textarea{width:100%;min-height:116px;color:var(--text);font:inherit;resize:vertical;background:0 0;border:0;border-radius:0;padding:13px 14px;line-height:1.5}.qa-sheet-row>textarea{border-right:1px solid var(--border)}.qa-sheet-row textarea:focus{z-index:1;outline:2px solid var(--focus);outline-offset:-2px;background:#fbfdf9;position:relative}.qa-answer-cell{min-width:0}.qa-row-actions{border-top:1px solid #edf0ed;justify-content:flex-end;align-items:center;gap:8px;min-height:44px;padding:6px 10px 9px;display:flex}.qa-sheet-row--new{background:#f7faf4}.text-button--danger{color:#a5342a}.text-button--danger:hover{background:#fff2f0}.qa-bulk-actions{justify-content:flex-end;align-items:center;gap:16px;padding-top:16px;display:flex}.qa-bulk-actions .primary-button:disabled{opacity:.45;cursor:default}.general-text-editor{gap:14px;display:grid}.general-text-editor h3{margin:0;font-size:22px}.general-text-editor p{margin:5px 0 0}.general-text-editor>textarea{border:1px solid var(--border);width:100%;min-height:560px;color:var(--text);resize:vertical;background:#fff;border-radius:12px;padding:16px;font:14px/1.55 Manrope,Arial,sans-serif}.general-text-editor>textarea:focus{outline:3px solid color-mix(in srgb, var(--focus) 22%, transparent);border-color:var(--focus)}.escalation-editor{gap:12px;display:grid}.escalation-editor .panel-heading{margin-bottom:0}.escalation-editor>p{margin:-2px 0 0}.escalation-editor label{color:var(--text-muted);gap:7px;font-size:13px;font-weight:700;display:grid}.escalation-editor textarea{border:1px solid var(--border);width:100%;color:var(--text);font:inherit;resize:vertical;background:#fff;border-radius:12px;padding:12px 14px;line-height:1.5}.escalation-editor textarea:focus{outline:3px solid color-mix(in srgb, var(--focus) 22%, transparent);border-color:var(--focus)}.app-loading{min-height:100vh;color:var(--text-muted);place-items:center;display:grid}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid color-mix(in srgb, var(--focus) 45%, transparent);outline-offset:3px}@media (width<=767px){.page-shell{padding:0 16px 40px}.site-header{height:64px}.brand{font-size:18px;line-height:24px}.public-main{margin-top:10px}.hero-section{align-items:center;gap:8px;min-height:144px;padding:0 2px 8px 0}h1{max-width:210px;font-size:32px;line-height:35px}.subtitle{max-width:210px;font-size:16px;line-height:24px}.mascot{flex-basis:112px;width:112px;height:96px}.mascot img{width:100%;height:100%;inset:0}.mascot__signal{transform-origin:100% 100%;top:15px;left:-6px;transform:scale(.72)}.chat-card{border-radius:17px;height:clamp(360px,56svh,460px);min-height:360px;padding:11px}.message-list{padding-right:2px}.message{max-width:86%;padding:11px 13px;font-size:14px;line-height:1.46}.mini-mascot{flex-basis:34px;width:34px;height:34px}.mini-mascot img{width:34px;height:34px}.empty-state{padding:12px 4px}.suggestions{flex-direction:column;align-items:stretch;width:100%}.composer{padding:6px}.composer button{flex-basis:44px;width:44px;height:44px}.faq-section{margin-top:24px}.faq-section h2{font-size:23px;line-height:30px}.site-footer{flex-wrap:wrap;justify-content:flex-start;margin-top:26px}.new-chat-button{display:none}.login-dialog{padding:26px 20px}.admin-header{padding:0 16px}.admin-main{padding:26px 16px 48px}.admin-title h1{font-size:32px;line-height:38px}.admin-title .secondary-button{display:none}.admin-grid{grid-template-columns:1fr}.knowledge-toolbar{flex-direction:column;align-items:stretch;gap:0}.qa-toolbar-actions{justify-content:space-between}.qa-sheet{overflow-x:auto}.qa-sheet-head,.qa-sheet-row{min-width:760px}.general-text-editor>textarea{min-height:430px}.conversation-detail{position:static}.admin-table{overflow-x:auto}.admin-table__head,.admin-table__row{min-width:700px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.field-row{grid-template-columns:1fr}.export-menu{display:none}.page-shell--embed{padding:8px}.page-shell--embed .public-main{height:calc(100dvh - 16px);margin:0}.page-shell--embed .hero-section{flex-basis:82px;min-height:82px;padding:0 2px 6px}.page-shell--embed .hero-section h1{max-width:none;font-size:24px;line-height:28px}.page-shell--embed .subtitle{display:none}.page-shell--embed .mascot{flex-basis:66px;width:66px;height:62px}.page-shell--embed .embed-new-chat{min-height:34px;padding:6px 10px;font-size:12px;display:block}.page-shell--embed .chat-card{height:auto;min-height:320px}.page-shell--widget{padding:0}.page-shell--widget .public-main{height:100dvh}.page-shell--widget .chat-card{min-height:100dvh}}@media (width<=390px){.hero-section{min-height:134px}h1{max-width:190px;font-size:29px;line-height:32px}.subtitle{max-width:190px;font-size:14px;line-height:21px}.mascot{flex-basis:94px;width:94px;height:82px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}
