:root{--brand-accent: #fa233b;--text-primary: #1d1d1f;--text-secondary: #6e6e73;--bg-main: #f5f5f7;--surface-card: #f2f4f7;--surface-strong: #ffffff;--surface-glass: rgba(255, 255, 255, .72);--border-soft: #d7dee8;--border-quiet: rgba(29, 29, 31, .1);--toolbar-height: 3.5rem}html{color-scheme:light}html.dark{color-scheme:dark;--text-primary: #f5f5f7;--text-secondary: #b6bcc6;--bg-main: #0f1115;--surface-card: #1b2029;--surface-strong: #151a22;--surface-glass: rgba(15, 18, 26, .78);--border-soft: rgba(255, 255, 255, .14);--border-quiet: rgba(255, 255, 255, .1)}*{box-sizing:border-box}body{margin:0;overflow-x:hidden;min-height:100vh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--text-primary);background:var(--bg-main)}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled,textarea:disabled{cursor:not-allowed;opacity:.62}pre{font-family:SFMono-Regular,ui-monospace,Cascadia Code,Roboto Mono,Consolas,monospace}.glass{backdrop-filter:blur(30px) saturate(180%);-webkit-backdrop-filter:blur(30px) saturate(180%);background:var(--surface-glass)}.top-toolbar{position:fixed;top:0;left:0;right:0;z-index:40;height:var(--toolbar-height);display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0 1rem;border-bottom:1px solid var(--border-quiet)}.top-toolbar h1{margin:0;font-size:1.125rem;font-weight:600;letter-spacing:0;line-height:1}.toolbar-actions{display:flex;align-items:center;gap:.5rem}.theme-toggle{width:2.5rem;height:2.5rem;flex:0 0 2.5rem;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:999px;background:#0000000d;color:var(--text-primary);transition:background-color .16s ease}.theme-toggle:hover{background:#0000001a}html.dark .theme-toggle{background:#ffffff0d}html.dark .theme-toggle:hover{background:#ffffff1a}.theme-icon-svg{width:1rem;height:1rem}.chat-shell{min-height:100vh;padding:var(--toolbar-height) 0 0}.chat-window{height:calc(100vh - var(--toolbar-height));overflow-y:auto;padding-bottom:9.25rem}.message-stack{width:min(56rem,100%);min-height:100%;margin:0 auto;padding:3rem 1.5rem 0;overflow-x:hidden}.chat-shell-empty .message-stack{display:flex;align-items:center;justify-content:center;padding-bottom:8rem}.empty-state{max-width:42rem;text-align:center;transform:translateY(-5.5rem)}.empty-state h2{margin:0;font-size:2.25rem;font-weight:600;letter-spacing:0;line-height:1.08}.empty-state p{max-width:34rem;margin:1rem auto 0;color:var(--text-secondary);font-size:.95rem;line-height:1.6}.message-row{display:flex;margin-bottom:1.5rem;min-width:0}.message-row-user{justify-content:flex-end}.message-row-assistant,.message-row-system{justify-content:flex-start}.message-bubble{max-width:min(44rem,88%);min-width:0}.message-bubble-user{border-radius:1rem;background:#e5e7eb;color:#1d1d1f;padding:.85rem 1rem;box-shadow:0 12px 28px #0f172a14}html.dark .message-bubble-user{background:#ffffff14;color:#fff;box-shadow:0 14px 36px #0000002e}.message-bubble-assistant{width:min(44rem,100%);color:var(--text-primary)}.message-bubble-system{border:1px solid var(--border-quiet);border-radius:1rem;background:#00000008;color:var(--text-secondary);padding:.75rem .9rem}html.dark .message-bubble-system{background:#ffffff0d}.message-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9375rem;line-height:1.75;min-width:0}.thinking-panel{margin:0 0 1.1rem;color:var(--text-secondary)}.thinking-panel summary{display:inline-flex;align-items:center;gap:.45rem;list-style:none;cursor:pointer;color:var(--text-secondary);font-size:.9rem;font-weight:600}.thinking-panel summary::-webkit-details-marker{display:none}.thinking-panel summary:before{width:.52rem;height:.52rem;border-radius:999px;background:var(--brand-accent);content:"";opacity:.78}.thinking-text{margin-top:.7rem;border-left:1px solid var(--border-soft);padding-left:1rem;color:var(--text-secondary);font-size:.9rem;line-height:1.75}.answer-text{color:var(--text-primary);font-size:1rem;line-height:1.8;overflow-wrap:anywhere;white-space:normal}.answer-text p{margin:0 0 1rem}.answer-text strong{font-weight:700;color:var(--text-primary)}.answer-title{margin:0 0 1rem;font-size:1.35rem;font-weight:650;letter-spacing:-.02em;line-height:1.25}.answer-heading{margin:1.45rem 0 .65rem;color:var(--text-primary);font-size:1rem;font-weight:650;letter-spacing:-.01em;line-height:1.35}.answer-list{margin:0 0 1rem;padding-left:1.2rem}.answer-list li{margin:.55rem 0}.answer-list-item{display:grid;gap:.18rem}.answer-list-lead{font-weight:700;line-height:1.5}.answer-list-body{color:var(--text-primary);line-height:1.75}.thinking-inline{display:inline-flex;align-items:center;gap:.55rem;color:var(--text-secondary)}.thinking-dot{width:.55rem;height:.55rem;border-radius:999px;background:var(--brand-accent);animation:thinkingPulse 1.1s ease-in-out infinite}@keyframes thinkingPulse{0%,to{opacity:.35;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}.detail-stack{margin-top:1.15rem;display:grid;gap:.5rem;width:100%;min-width:0}.detail-label{color:var(--text-secondary);font-size:.6875rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.detail-card{border:1px solid var(--border-quiet);border-radius:.9rem;background:transparent;padding:.78rem .9rem;min-width:0;overflow:hidden}html.dark .detail-card{background:transparent}.detail-card summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;list-style:none;cursor:pointer;min-width:0}.detail-card summary::-webkit-details-marker{display:none}.detail-card summary span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-primary);font-size:.875rem;font-weight:600}.detail-card summary span:last-child{flex:0 0 auto;border-radius:999px;background:#0000000f;color:#4b5563;padding:.3rem .5rem;font-size:.625rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.workflow-card-body{margin-top:.9rem;color:var(--text-secondary);font-size:.8125rem;line-height:1.6;font-family:inherit;padding-left:.15rem}.workflow-paragraph{margin:0;line-height:inherit}.workflow-list,.workflow-analysis-list{margin:0;padding-left:1rem;display:grid;gap:.6rem}.workflow-list li,.workflow-analysis-list li{line-height:inherit;color:inherit}.workflow-list-numbered{padding-left:1.1rem}.workflow-analysis-item{display:grid;gap:.3rem}.workflow-analysis-claim{color:inherit}.workflow-analysis-evidence{color:inherit;line-height:inherit}.workflow-analysis-evidence span{font-weight:700;color:var(--text-primary)}html.dark .detail-card summary span:last-child{background:#ffffff14;color:#d1d5db}.detail-card p{margin:.75rem 0 0;color:var(--text-secondary);font-size:.8125rem;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}.source-card-body{margin-top:.9rem;display:grid;gap:.55rem;padding-left:.15rem}.source-meta{color:var(--text-secondary);font-size:.8rem;line-height:1.5}.source-card-body p{margin:0;color:var(--text-secondary);font-size:.8125rem;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}.source-link{width:fit-content;color:var(--text-primary);font-size:.875rem;font-weight:600;text-decoration:underline;text-underline-offset:.18rem}.source-link:hover{color:var(--brand-accent)}.composer-wrap{left:0;right:0;z-index:20;padding:0 1rem}.composer-wrap-bottom{position:fixed;bottom:0;padding-bottom:1rem;background:linear-gradient(180deg,rgba(245,245,247,0),var(--bg-main) 40%)}.composer-wrap-center{position:fixed;top:var(--toolbar-height);bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;transform:translateY(3.25rem)}.composer{width:min(56rem,100%);margin:0 auto;display:flex;align-items:flex-end;gap:.75rem;border:1px solid var(--border-quiet);border-radius:.75rem;background:#ffffffeb;padding:.625rem .75rem;box-shadow:0 18px 40px #0f172a1a;pointer-events:auto}html.dark .composer{background:#1f1f1ff2;box-shadow:0 24px 80px #00000047}.composer textarea{min-height:2.5rem;max-height:7rem;flex:1;resize:none;overflow-y:auto;border:none;background:transparent;color:var(--text-primary);padding:.55rem .25rem;outline:none;font-size:.9375rem;line-height:1.75}.composer textarea::placeholder{color:#9ca3af}.composer-send-button{width:2.25rem;height:2.25rem;flex:0 0 2.25rem;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:.75rem;background:#0000000d;color:#4b5563;transition:background-color .16s ease}.composer-send-button:hover{background:#0000001a}html.dark .composer-send-button{background:#ffffff0d;color:#d1d5db}html.dark .composer-send-button:hover{background:#ffffff1a}.composer-icon{width:1.25rem;height:1.25rem}.composer-note{width:min(56rem,100%);margin:.65rem auto 0;color:var(--text-secondary);font-size:.75rem;line-height:1.4;text-align:center;pointer-events:auto}@media(max-width:720px){.top-toolbar{padding:0 .75rem}.message-stack{padding:2rem 1rem 0}.empty-state h2{font-size:2rem}.message-bubble{max-width:94%}.detail-card summary{align-items:flex-start;flex-direction:column;gap:.5rem}.composer-wrap{padding:0 .75rem .75rem}.composer-wrap-center{transform:translateY(3.75rem)}.empty-state{transform:translateY(-5rem)}}
