body{color:#1f2937;background:#f5f7fa;font-family:Inter,Pretendard,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,textarea{font:inherit}:root{color:#1f2937;font-synthesis:none;text-rendering:optimizelegibility;background:#f5f7fb;font-family:Inter,Pretendard,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{width:100%;min-width:320px;min-height:100%;margin:0}body{background:#f5f7fb;min-height:100vh}button,textarea,input{font:inherit}button{border:0}.app-shell{width:100%;min-height:100vh;display:flex}.sidebar{z-index:30;color:#fff;background:#111827;border-right:1px solid #ffffff14;flex-direction:column;width:280px;height:100vh;padding:22px 16px;display:flex;position:fixed;top:0;left:0}.sidebar-header{padding:2px 6px 18px}.sidebar-header h2{letter-spacing:-.02em;margin:0 0 6px;font-size:18px;font-weight:700}.sidebar-header p{color:#9ca3af;margin:0;font-size:13px;line-height:1.5}.new-chat-button{color:#111827;cursor:pointer;background:#fff;border:1px solid #ffffff21;border-radius:10px;width:100%;margin-bottom:18px;padding:12px 14px;font-weight:700;transition:transform .15s,background .15s}.new-chat-button:hover:not(:disabled){background:#f3f4f6;transform:translateY(-1px)}.new-chat-button:disabled{opacity:.6;cursor:not-allowed}.conversation-list{flex-direction:column;gap:7px;min-height:0;padding-right:2px;display:flex;overflow-y:auto}.conversation-list::-webkit-scrollbar{width:5px}.conversation-list::-webkit-scrollbar-thumb{background:#374151;border-radius:999px}.conversation-empty{color:#9ca3af;text-align:center;padding:22px 10px;font-size:13px;line-height:1.6}.conversation-item{color:#d1d5db;text-align:left;cursor:pointer;background:0 0;border-radius:9px;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:11px 10px;transition:background .15s,color .15s;display:flex}.conversation-item:hover:not(:disabled){color:#fff;background:#1f2937}.conversation-item.active{color:#fff;background:#253047}.conversation-item:disabled{cursor:default}.conversation-info{flex-direction:column;flex:1;gap:5px;min-width:0;display:flex}.conversation-title{white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:600;overflow:hidden}.conversation-date{color:#9ca3af;font-size:11px}.conversation-delete{color:#9ca3af;cursor:pointer;border-radius:7px;flex-shrink:0;justify-content:center;align-items:center;width:27px;height:27px;font-size:19px;line-height:1;transition:background .15s,color .15s;display:flex}.conversation-delete:hover{color:#fca5a5;background:#ef444429}.main-panel{flex-direction:column;width:calc(100% - 280px);min-height:100vh;margin-left:280px;display:flex}.app-header{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff5;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;gap:20px;padding:20px 32px;display:flex}.header-left{align-items:center;gap:13px;display:flex}.app-header h1{color:#111827;letter-spacing:-.035em;margin:0;font-size:21px;font-weight:750}.app-header p{color:#6b7280;margin:5px 0 0;font-size:13px}.header-new-chat-button{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:9px;padding:9px 14px;font-size:13px;font-weight:650;transition:border-color .15s,background .15s}.header-new-chat-button:hover:not(:disabled){background:#f9fafb;border-color:#9ca3af}.header-new-chat-button:disabled{opacity:.55;cursor:not-allowed}.sidebar-toggle{color:#374151;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:9px;width:38px;height:38px;font-size:19px;display:none}.chat-container{flex:1;width:min(900px,100% - 40px);min-height:500px;margin:0 auto;padding:32px 0 18px}.empty-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:500px;padding:40px 20px;display:flex}.empty-icon{background:#fff;border:1px solid #e5e7eb;border-radius:18px;justify-content:center;align-items:center;width:68px;height:68px;margin-bottom:22px;font-size:32px;display:flex;box-shadow:0 7px 25px #0f172a0f}.empty-state h2{color:#111827;letter-spacing:-.04em;margin:0 0 10px;font-size:25px;font-weight:750}.empty-state>p{color:#6b7280;max-width:520px;margin:0;font-size:14px;line-height:1.75}.example-questions{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(700px,100%);margin-top:28px;display:grid}.example-questions button{color:#374151;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:12px;min-height:70px;padding:14px 16px;font-size:13px;font-weight:600;line-height:1.5;transition:transform .15s,border-color .15s,box-shadow .15s;box-shadow:0 3px 12px #0f172a09}.example-questions button:hover:not(:disabled){border-color:#c7d2fe;transform:translateY(-2px);box-shadow:0 8px 22px #0f172a12}.example-questions button:disabled{opacity:.6;cursor:not-allowed}.message-list{flex-direction:column;gap:20px;display:flex}.chat-message,.message{gap:12px;display:flex}.chat-message.user,.message.user,.user-message{justify-content:flex-end}.chat-message.assistant,.message.assistant,.assistant-message{justify-content:flex-start}.message-avatar,.chat-avatar{color:#fff;background:#111827;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:11px;font-weight:750;display:flex}.message-content,.chat-message-content{color:#1f2937;background:#fff;border:1px solid #e5e7eb;border-radius:14px;max-width:760px;padding:16px 18px;font-size:14px;line-height:1.75;box-shadow:0 3px 12px #0f172a09}.user-message .message-content,.chat-message.user .message-content,.message.user .message-content{color:#fff;background:#111827;border-color:#111827}.message-category,.category-badge{color:#4338ca;background:#eef2ff;border-radius:999px;margin-bottom:10px;padding:4px 8px;font-size:11px;font-weight:700;display:inline-flex}.markdown-content{min-width:0}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.markdown-content h1,.markdown-content h2,.markdown-content h3{color:#111827;margin:22px 0 10px;line-height:1.35}.markdown-content h2{font-size:17px}.markdown-content h3{font-size:15px}.markdown-content p{margin:9px 0}.markdown-content ul,.markdown-content ol{margin:10px 0;padding-left:22px}.markdown-content li{margin:5px 0}.markdown-content strong{color:#111827}.markdown-content code{background:#f3f4f6;border-radius:5px;padding:2px 5px;font-size:.92em}.markdown-content pre{color:#f9fafb;background:#111827;border-radius:10px;padding:14px;overflow-x:auto}.markdown-content pre code{color:inherit;background:0 0;padding:0}.sources,.sources-section,.source-list{flex-direction:column;gap:8px;margin-top:14px;display:flex}.sources-title{color:#6b7280;margin:0 0 2px;font-size:12px;font-weight:700}.source-card{background:#f9fafb;border:1px solid #e5e7eb;border-radius:9px;overflow:hidden}.source-card summary,.source-summary{color:#374151;cursor:pointer;padding:10px 12px;font-size:12px;font-weight:650}.source-card-content,.source-content{color:#4b5563;white-space:pre-wrap;padding:0 12px 12px;font-size:12px;line-height:1.7}.loading-message{align-items:flex-start;gap:12px;display:flex}.loading-avatar{color:#fff;background:#111827;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:10px;font-weight:750;display:flex}.loading-content{background:#fff;border:1px solid #e5e7eb;border-radius:14px;align-items:center;gap:6px;min-height:52px;padding:15px 18px;display:flex}.loading-content span{background:#9ca3af;border-radius:50%;width:7px;height:7px;animation:1.15s ease-in-out infinite loading-dot}.loading-content span:nth-child(2){animation-delay:.15s}.loading-content span:nth-child(3){animation-delay:.3s}@keyframes loading-dot{0%,60%,to{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}.chat-input-wrapper,.input-section{width:min(900px,100% - 40px);margin:0 auto;padding:10px 0 8px}.chat-input-container,.input-container{background:#fff;border:1px solid #d1d5db;border-radius:14px;align-items:flex-end;gap:10px;padding:10px;display:flex;box-shadow:0 6px 24px #0f172a0f}.chat-input,.input-container textarea,.chat-input-container textarea{resize:none;color:#111827;background:0 0;border:0;outline:none;flex:1;min-height:46px;max-height:160px;padding:11px 12px;font-size:14px;line-height:1.55}.chat-input::placeholder,.input-container textarea::placeholder,.chat-input-container textarea::placeholder{color:#9ca3af}.send-button{color:#fff;cursor:pointer;background:#111827;border-radius:10px;flex-shrink:0;min-width:72px;height:44px;padding:0 15px;font-size:13px;font-weight:700;transition:background .15s,transform .15s}.send-button:hover:not(:disabled){background:#1f2937;transform:translateY(-1px)}.send-button:disabled{opacity:.5;cursor:not-allowed}.error-message{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;width:min(900px,100% - 40px);margin:0 auto 8px;padding:11px 14px;font-size:13px}.app-footer{color:#9ca3af;text-align:center;width:min(900px,100% - 40px);margin:0 auto;padding:8px 0 20px;font-size:11px;line-height:1.6}.sidebar-overlay{display:none}@media (width<=900px){.sidebar{width:280px;transition:transform .22s;transform:translate(-100%)}.sidebar.sidebar-open{transform:translate(0)}.sidebar-overlay{z-index:20;cursor:default;background:#0f172a73;width:100%;height:100%;display:block;position:fixed;inset:0}.main-panel{width:100%;margin-left:0}.sidebar-toggle{justify-content:center;align-items:center;display:inline-flex}.app-header{padding:17px 20px}.header-new-chat-button{display:none}}@media (width<=700px){.app-header h1{font-size:18px}.app-header p{display:none}.chat-container{width:calc(100% - 28px);padding-top:22px}.empty-state{min-height:430px}.empty-state h2{font-size:21px}.example-questions{grid-template-columns:1fr;width:100%}.example-questions button{min-height:54px}.chat-input-wrapper,.input-section,.error-message,.app-footer{width:calc(100% - 28px)}.message-content,.chat-message-content{max-width:calc(100vw - 72px);padding:14px 15px}}@media (width<=420px){.sidebar{width:min(86vw,300px)}.app-header{padding:14px}.chat-container,.chat-input-wrapper,.input-section,.error-message,.app-footer{width:calc(100% - 20px)}.conversation-row{border-radius:9px;align-items:center;gap:4px;width:100%;display:flex}.conversation-row:hover{background:#1f2937}.conversation-row.active{background:#253047}.conversation-row .conversation-item{flex:1;width:auto;min-width:0}.conversation-row .conversation-delete{background:0 0;border:0;flex-shrink:0;margin-right:8px}.conversation-delete:disabled{opacity:.5;cursor:not-allowed}.conversation-select:focus-visible,.conversation-item:focus-visible,.conversation-delete:focus-visible{outline-offset:2px;outline:2px solid #93c5fd}}
