:root{color:#111827;background:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0;overflow:hidden}button,input,select{font:inherit}button{touch-action:manipulation}.app-shell{height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:#fff;justify-content:center;display:flex}.chat-card{background:#fff;border-left:1px solid #f3f4f6;border-right:1px solid #f3f4f6;grid-template-rows:auto 1fr auto;width:min(840px,100%);height:100dvh;display:grid}.sidebar{display:none}@media (width>=900px){.app-shell{justify-content:flex-start;gap:0}.sidebar{background:#fafafa;border-right:1px solid #f3f4f6;flex-direction:column;flex-shrink:0;gap:14px;width:280px;height:100dvh;padding:18px 14px 14px;display:flex;overflow:hidden}.chat-card{border-left:none;flex:1;width:auto;max-width:920px}.chat-header,.history-panel{display:none}}.sidebar-brand{border-bottom:1px solid #f3f4f6;justify-content:space-between;align-items:center;gap:10px;padding:0 4px 10px;display:flex}.sidebar-section{flex-direction:column;gap:5px;display:flex}.sidebar-label{letter-spacing:.06em;text-transform:uppercase;color:#9ca3af;padding-left:2px;font-size:10px;font-weight:650}.sidebar-select{color:#111827;cursor:pointer;appearance:none;background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>") right 12px center no-repeat;border:1px solid #e5e7eb;border-radius:8px;width:100%;padding:8px 10px;font-size:13px}.sidebar-select:hover{border-color:#d1d5db}.sidebar-select:focus{border-color:#0a0a0a;outline:none}.sidebar-new-chat{color:#fff;cursor:pointer;background:#0a0a0a;border:1px solid #0a0a0a;border-radius:999px;justify-content:center;align-items:center;gap:6px;width:100%;padding:9px 12px;font-size:12px;font-weight:550;transition:background .12s;display:inline-flex}.sidebar-new-chat:hover{background:#1f2937;border-color:#1f2937}.sidebar-history{flex-direction:column;flex:1;gap:8px;min-height:0;display:flex}.sidebar-history-head{letter-spacing:.06em;text-transform:uppercase;color:#9ca3af;justify-content:space-between;align-items:center;padding:0 2px;font-size:10px;font-weight:650;display:flex}.sidebar-history-count{color:#6b7280;letter-spacing:0;text-transform:none;background:#f3f4f6;border-radius:999px;padding:1px 7px;font-size:10px}.sidebar-history-list{flex:1;min-height:0;padding-right:2px;overflow-y:auto}.sidebar-history-list::-webkit-scrollbar{width:6px}.sidebar-history-list::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:999px}.sidebar-history-list::-webkit-scrollbar-thumb:hover{background:#d1d5db}.chat-header{z-index:4;background:#fff;border-bottom:1px solid #f3f4f6;flex-direction:column;justify-content:center;gap:8px;min-height:92px;padding:10px 18px;display:flex}.brand-row{justify-content:space-between;align-items:center;gap:14px;width:100%;display:flex}.agent-row{justify-content:flex-end;align-items:center;gap:6px;width:100%;display:flex}.new-chat{color:#6b7280;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:999px;justify-content:center;align-items:center;width:28px;height:28px;padding:0;transition:background .12s,color .12s;display:inline-flex}.new-chat:hover{color:#111827;background:#f9fafb}.new-chat:active{background:#f3f4f6}.cornelio-logo{color:#0a0a0a;letter-spacing:-.04em;align-items:center;gap:5px;font-size:22px;font-weight:650;line-height:1;display:inline-flex}.cornelio-logo canvas{flex:none;width:32px;height:32px;display:block}.cornelio-logo span{color:#0a0a0a}.connection{color:#6b7280;border:1px solid #e5e7eb;border-radius:999px;align-items:center;gap:6px;padding:7px 10px;font-size:12px;display:inline-flex}.connection.online{color:#059669;background:#ecfdf5;border-color:#d1fae5}.agent-selector{color:#374151;background:#fff;border:1px solid #e5e7eb;border-radius:999px;align-items:center;gap:7px;padding:6px 9px;font-size:12px;font-weight:650;display:inline-flex}.agent-selector span{color:#9ca3af;text-transform:uppercase;letter-spacing:.08em;font-size:10px}.agent-selector select{color:#111827;font:inherit;background:0 0;border:0;outline:0;max-width:122px}.timeline{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;z-index:2;background:#fff;flex-direction:column;gap:12px;min-height:0;padding:18px;display:flex;position:relative;overflow-y:auto}.empty{color:#9ca3af;text-align:center;margin:auto;font-size:16px}.bubble{color:#1f2937;background:#f9fafb;border:1px solid #f3f4f6;border-radius:20px;max-width:min(82%,640px);padding:12px 14px;font-weight:400;box-shadow:0 6px 18px #0f172a09}.bubble>span{text-transform:uppercase;letter-spacing:.12em;color:#9ca3af;margin-bottom:6px;font-size:10px;font-weight:800;display:block}.message-body{color:#374151;font-size:15px;font-weight:400;line-height:1.55}.message-body p,.message-body h3,.message-body ul,.message-body .rich-panel,.message-body .code-panel{margin:0}.message-body p+p,.message-body p+ul,.message-body ul+p,.message-body .rich-panel+p,.message-body p+.rich-panel,.message-body h3+p,.message-body h3+ul,.message-body p+.code-panel,.message-body .code-panel+p,.message-body .code-panel+.code-panel{margin-top:9px}.message-body h3{color:#111827;letter-spacing:-.02em;font-size:16px;font-weight:800;line-height:1.25}.message-body strong{color:#030712;font-weight:850}.message-body a{color:#111827;text-underline-offset:3px;overflow-wrap:anywhere;font-weight:750;text-decoration:underline;text-decoration-thickness:1.5px}.bubble.user .message-body a{color:#fff}.message-body ul{padding-left:18px}.message-body li{margin:5px 0}.rich-panel{color:#1f2937;background:#fff;border:1px solid #e5e7eb;border-left:3px solid #111827;border-radius:14px;padding:10px 11px}.code-panel{color:#f9fafb;background:#0b1020;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden}.code-toolbar{color:#d1d5db;text-transform:uppercase;letter-spacing:.08em;background:#ffffff0f;border-bottom:1px solid #ffffff17;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:11px;display:flex}.code-copy{color:#fff;cursor:pointer;background:#ffffff14;border:1px solid #ffffff29;border-radius:999px;align-items:center;gap:6px;padding:6px 9px;font-size:11px;display:inline-flex}.code-panel pre{-webkit-overflow-scrolling:touch;margin:0;padding:12px;overflow-x:auto}.code-panel code{white-space:pre;color:#f9fafb;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:13px;line-height:1.5}.bubble.user{color:#fff;background:#111827fa;border-color:#111827fa;align-self:flex-end;box-shadow:inset 0 1px #ffffff14,0 8px 22px #0f172a1f}.bubble.user>span{color:#d1d5db}.bubble.user .message-body{color:#f9fafb}.bubble.user .message-body strong{color:#fff}.bubble.user .rich-panel{color:#fff;background:#ffffff14;border-color:#ffffff2e}.bubble.assistant{align-self:flex-start}.bubble.streaming{background:#eff6ff;border-color:#dbeafe}.media-preview{object-fit:contain;background:#000;border-radius:16px;width:100%;max-height:420px;margin-top:10px;display:block}.attachment-card{color:inherit;background:#ffffffb8;border:1px solid #e5e7eb;border-radius:16px;grid-template-columns:auto 1fr;align-items:center;gap:10px;margin-top:10px;padding:10px;text-decoration:none;display:grid}.attachment-card:hover{border-color:#9ca3af}.attachment-icon{color:#374151;background:#f3f4f6;border-radius:50%;place-items:center;width:34px;height:34px;display:grid}.attachment-card strong,.attachment-card small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.attachment-card strong{color:#111827;font-size:13px}.attachment-card small{color:#6b7280;margin-top:2px;font-size:11px}.attachment-preview{object-fit:contain;background:#111827;border-radius:12px;grid-column:1/-1;width:100%;max-height:260px}.bubble.user .attachment-card{background:#ffffff14;border-color:#ffffff38}.bubble.user .attachment-icon{color:#fff;background:#ffffff24}.bubble.user .attachment-card strong{color:#fff}.bubble.user .attachment-card small{color:#d1d5db}.typing{color:#6b7280;align-self:flex-start;align-items:center;gap:5px;padding:4px 2px;font-size:13px;display:flex}.typing i{background:#9ca3af;border-radius:50%;width:5px;height:5px;animation:1.2s ease-in-out infinite pulse}.typing i:nth-child(2){animation-delay:.14s}.typing i:nth-child(3){animation-delay:.28s}@keyframes pulse{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}.assistant-audio-shell{background:#ffffff29;border-radius:999px;width:100%;margin-top:10px;padding:2px}.assistant-audio{border-radius:999px;width:100%;height:38px;display:block}.bubble.user .assistant-audio-shell{background:#ffffff1f}.lazy-audio-play{color:inherit;cursor:pointer;background:#ffffff38;border:none;border-radius:999px;align-items:center;gap:6px;padding:6px 14px;font-size:13px;transition:background .15s;display:inline-flex}.lazy-audio-play:hover{background:#ffffff52}.lazy-audio-play span{font-weight:500}.picker{background:#fafafa;border-top:1px solid #f3f4f6;flex-direction:column;gap:7px;padding:10px 14px 8px;display:flex}.picker-head{letter-spacing:.04em;color:#6b7280;text-transform:uppercase;justify-content:space-between;align-items:center;font-size:11px;font-weight:650;display:flex}.picker-close{color:#9ca3af;cursor:pointer;background:0 0;border:0;border-radius:999px;width:22px;height:22px;font-size:18px;line-height:1}.picker-close:hover{color:#111827;background:#f3f4f6}.picker-loading{color:#9ca3af;padding:6px 0;font-size:12px}.picker-row{flex-wrap:wrap;gap:5px;display:flex}.picker-models{max-height:168px;overflow-y:auto}.pill{color:#374151;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:5px 10px;font-size:11px;transition:all .12s}.pill:hover:not(:disabled){background:#f9fafb;border-color:#d1d5db}.pill-active{color:#fff;background:#0a0a0a;border-color:#0a0a0a}.pill-active:hover:not(:disabled){background:#1f2937;border-color:#1f2937}.pill:disabled{opacity:.5;cursor:not-allowed}.pill-model small{color:#9ca3af;margin-left:4px;font-weight:400}.pill-active small{color:#d1d5db}.new-chat.active{color:#fff;background:#0a0a0a;border-color:#0a0a0a}.new-chat.active:hover{background:#1f2937;border-color:#1f2937}.history-panel{background:#fafafa;border-top:1px solid #f3f4f6;flex-direction:column;gap:6px;max-height:280px;padding:10px 14px 8px;display:flex}.history-header{letter-spacing:.04em;color:#6b7280;text-transform:uppercase;justify-content:space-between;align-items:center;font-size:11px;font-weight:650;display:flex}.history-close{color:#9ca3af;cursor:pointer;background:0 0;border:0;border-radius:999px;width:22px;height:22px;font-size:18px;line-height:1}.history-close:hover{color:#111827;background:#f3f4f6}.history-empty{color:#9ca3af;padding:6px 0;font-size:12px}.history-list{flex-direction:column;gap:4px;display:flex;overflow-y:auto}.history-item{color:#374151;text-align:left;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:7px 10px;font-size:12px;transition:all .12s;display:flex}.history-item:hover{background:#f9fafb;border-color:#d1d5db}.history-item.active{color:#fff;background:#0a0a0a;border-color:#0a0a0a}.history-item.active:hover{background:#1f2937;border-color:#1f2937}.history-title{white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.history-meta{color:#9ca3af;flex-shrink:0;font-size:10px}.history-item.active .history-meta{color:#d1d5db}.composer{z-index:4;background:#fff;border-top:1px solid #f3f4f6;align-items:center;gap:8px;padding:10px 14px 16px;display:flex}.file-input{display:none}.composer input:not(.file-input){color:#111827;border:1px solid #e5e7eb;border-radius:999px;outline:none;flex:1;min-width:0;padding:12px 14px}.composer input:not(.file-input):focus{border-color:#111827}.composer button{border:0;border-radius:50%;flex:none;place-items:center;width:44px;height:44px;display:grid}.composer .attach-button{color:#374151;background:#fff;border:1px solid #e5e7eb}.composer-action{color:#fff;background:#111827}.composer-action.recording{color:#fff;background:#dc2626}@media (width<=560px){.chat-card{border:0}.timeline{padding:14px}.bubble{max-width:88%}.composer{padding:9px 14px 14px}}
