:root{color-scheme:light dark;--bg: #f5f5f6;--surface: #ffffff;--surface-2: #fafafa;--border: #e6e6e8;--text: #111113;--muted: #61616b;--shadow: 0 10px 30px rgba(0, 0, 0, .08);--btn: #c1121f;--btnText: #ffffff;--bubbleClient: #f1f1f2;--bubbleSupport: #f7f7f8;--systemBg: #fff3cd;--systemText: #7a4f00;--overlay: rgba(0, 0, 0, .35)}@media(prefers-color-scheme:dark){:root{--bg: #0b0b0c;--surface: #111113;--surface-2: #0d0d0f;--border: #262629;--text: #f2f2f2;--muted: #a1a1aa;--shadow: 0 10px 35px rgba(0,0,0,.65);--btn: #c1121f;--btnText: #ffffff;--bubbleClient: #1a1a1d;--bubbleSupport: #141417;--systemBg: #2a2a2e;--systemText: #facc15;--overlay: rgba(0,0,0,.7)}}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;overflow:hidden}.page{height:100vh;padding:8px;overflow:hidden}.layout{height:calc(100vh - 16px);width:100%;max-width:none;margin:0;display:flex;gap:16px;align-items:stretch;position:relative;overflow:hidden}.sidebar{width:320px;background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden;box-shadow:var(--shadow);height:100%;display:flex;flex-direction:column;min-height:0}.sidebarHeader{padding:12px 14px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border)}.sidebarTitle{font-weight:700}.sidebarList{padding:10px;background:var(--surface-2);overflow-y:auto;flex:1;min-height:0}.sidebarEmpty{font-size:13px;color:var(--muted);padding:8px}.convoItem{width:100%;text-align:left;border:1px solid var(--border);background:var(--surface);padding:10px 12px;border-radius:14px;cursor:pointer;margin-bottom:10px;color:var(--text)}.convoItem.active{border-color:#c1121f}.convoTitle{font-size:14px;font-weight:600}.convoMeta{font-size:11px;color:var(--muted);margin-top:4px}.main{flex:1;min-width:0;height:100%;display:flex;justify-content:center;align-items:stretch;overflow:hidden}.chatCard{width:100%;max-width:460px;height:100%;background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden;min-height:0}.chatHeader{padding:12px 14px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;flex:0 0 auto}.brand{display:flex;align-items:center;gap:10px}.brandLogo{width:28px;height:28px;object-fit:contain}.brandTitle{font-weight:800}.languageRow{padding:12px 14px;border-bottom:1px solid var(--border);flex:0 0 auto}.languageRow select{width:100%}.setupPanel{padding:12px 14px;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:10px;flex:0 0 auto}select,input{width:100%;padding:11px 12px;border-radius:14px;border:1px solid var(--border);font-size:14px;outline:none;background:var(--surface);color:var(--text)}select:focus,input:focus{border-color:color-mix(in srgb,var(--text) 30%,var(--border))}.chatBody{flex:1 1 auto;min-height:0;overflow-y:auto;padding:12px 14px;background:var(--surface-2)}.composer{padding:12px 14px;border-top:1px solid var(--border);display:flex;gap:10px;background:var(--surface);flex:0 0 auto}.composer input{flex:1}.sendBtn{padding:11px 14px;border-radius:14px;border:0;background:var(--btn);color:var(--btnText);cursor:pointer;font-weight:600}.sendBtn:hover{filter:brightness(1.05)}.attach-button{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;transition:background .12s ease,border-color .12s ease,color .12s ease,transform 80ms ease}.attach-button:hover{border-color:var(--btn);background:color-mix(in srgb,var(--btn) 10%,var(--surface));color:var(--btn)}.attach-button:active{transform:scale(.96)}.attach-button:focus-visible{outline:none;border-color:var(--btn);box-shadow:0 0 0 3px color-mix(in srgb,var(--btn) 30%,transparent)}.composerMeta{font-size:11px;color:var(--muted);text-align:right;margin-bottom:4px;margin-right:20px}.iconBtn{border:0;background:transparent;cursor:pointer;padding:6px 8px;border-radius:10px;color:var(--text)}.iconBtn:hover{background:#c1121f1f}.bubbleWrap{max-width:86%;display:flex;flex-direction:column;margin-bottom:12px}.bubbleWrap.left{margin-right:auto;align-items:flex-start}.bubbleWrap.right{margin-left:auto;align-items:flex-end}.bubbleLabel{font-size:11px;color:var(--muted);margin-bottom:4px}.bubble{padding:10px 12px;border-radius:14px;font-size:14px;white-space:pre-wrap;word-break:break-word}.bubble.client{background:var(--bubbleClient)}.bubble.support{background:var(--bubbleSupport)}.systemWrap{width:100%;display:flex;flex-direction:column;align-items:center;margin:10px 0 16px}.systemLabel{width:100%;text-align:center;font-size:11px;color:var(--muted);margin-bottom:6px}.systemMsg{width:min(520px,92%);background:var(--systemBg);color:var(--systemText);border-radius:14px;padding:10px 12px;text-align:center;line-height:1.25}.attachmentRow{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:6px}.attachmentBtn{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;font-size:.85rem;line-height:1;transition:background .12s ease,border-color .12s ease,color .12s ease,transform 80ms ease}.attachmentBtn:hover{border-color:var(--btn);background:color-mix(in srgb,var(--btn) 10%,var(--surface));color:var(--btn)}.attachmentBtn:active{transform:scale(.97)}.attachmentBtn:focus-visible{outline:none;border-color:var(--btn);box-shadow:0 0 0 3px color-mix(in srgb,var(--btn) 30%,transparent)}.attachmentIcon{width:14px;height:14px;flex-shrink:0;opacity:.85}.attachmentText{white-space:nowrap}.overlay,.mobileOnly{display:none}@media(max-width:900px){.layout{gap:0}.mobileOnly{display:inline-flex}.sidebar{position:fixed;top:0;left:0;height:100vh;width:min(360px,92vw);border-radius:0;border:0;transform:translate(-100%);transition:transform .16s ease;z-index:50}.sidebar.open{transform:translate(0)}.overlay{position:fixed;inset:0;background:var(--overlay);z-index:40}.overlay.open{display:block}body{overflow:hidden}}
