:root{--bg:#090a10;--surface:#11131c;--surface-raised:#181b27;--surface-soft:#131620;--border:#303447;--border-soft:#222636;--text:#f7f4fb;--text-muted:#bbb4c8;--text-faint:#81798e;--accent:#c084fc;--accent-strong:#9333ea;--accent-soft:#9333ea29;--success:#34d399;--danger:#fb7185;font-synthesis:none;text-rendering:optimizelegibility;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#app{min-height:100%;margin:0}body{color:#000000e0;background:#fff;min-width:320px}button,textarea{font:inherit}button,summary{cursor:pointer}button{touch-action:manipulation}.app-shell svg{stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.anticon svg{stroke:none;stroke-width:0;width:1em;height:1em}.skip-link{z-index:1000;color:#fff;background:var(--accent-strong);border-radius:8px;padding:12px 16px;position:fixed;top:-64px;left:16px}.skip-link:focus{top:16px}button:focus-visible,textarea:focus-visible,summary:focus-visible{outline-offset:2px;outline:3px solid #c084fca6}.visually-hidden{clip:rect(0, 0, 0, 0)!important;white-space:nowrap!important;border:0!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;position:absolute!important;overflow:hidden!important}.app-shell{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;min-height:100dvh;color:var(--text);background:radial-gradient(circle at 82% 4%, #9333ea1c, transparent 30%), var(--bg)}.topbar{border-bottom:1px solid var(--border-soft);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#090a10db;justify-content:space-between;align-items:center;gap:24px;height:76px;padding:0 clamp(20px,4vw,56px);display:flex}.brand-block,.topbar-actions{align-items:center;gap:14px;display:flex}.brand-mark{width:42px;height:42px;color:var(--accent);background:var(--accent-soft);border:1px solid #c084fc59;border-radius:12px;place-items:center;display:grid}.brand-mark svg{width:25px;height:25px}.eyebrow{color:var(--accent);letter-spacing:.18em;margin:0 0 4px;font:700 11px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace}h1{margin:0;font-size:18px;line-height:1.2}.framework-badge{color:#ead7ff;background:var(--accent-soft);letter-spacing:.08em;border:1px solid #c084fc47;border-radius:999px;align-items:center;gap:8px;min-height:30px;padding:0 10px;font:700 11px ui-monospace,monospace;display:inline-flex}.status-dot{background:var(--success);width:7px;height:7px;box-shadow:0 0 10px var(--success);border-radius:50%}.ghost-button{min-height:44px;color:var(--text-muted);border:1px solid var(--border);background:0 0;border-radius:10px;align-items:center;gap:8px;padding:0 14px;transition:all .18s;display:inline-flex}.ghost-button:hover{color:var(--text);background:var(--surface-raised);border-color:#514c62}.workspace{grid-template-columns:250px minmax(0,1fr);gap:16px;width:min(1240px,100% - 40px);height:calc(100dvh - 108px);min-height:580px;margin:16px auto;display:grid}.info-panel,.chat-card{border:1px solid var(--border-soft);background:#11131ce6;box-shadow:0 24px 80px #00000038}.info-panel{border-radius:20px;flex-direction:column;min-height:0;padding:18px 14px;display:flex;overflow:hidden}.panel-heading{justify-content:space-between;align-items:center;margin:0 6px 14px;font-size:14px;font-weight:700;display:flex}.session-count{min-width:24px;min-height:24px;color:var(--text-muted);background:var(--surface-raised);border:1px solid var(--border);border-radius:999px;place-items:center;padding:0 7px;font:700 10px ui-monospace,monospace;display:inline-grid}.session-list{scrollbar-color:#443b51 transparent;flex-direction:column;flex:auto;gap:6px;min-height:0;padding:2px;display:flex;overflow-y:auto}.session-entry{min-height:62px;color:var(--text-muted);background:0 0;border:1px solid #0000;border-radius:11px;grid-template-columns:minmax(0,1fr);align-items:center;transition:all .16s;display:grid}.session-entry.deletable{grid-template-columns:minmax(0,1fr) 44px}.session-entry:hover{color:var(--text);background:var(--surface-raised);border-color:var(--border)}.session-entry.active{color:var(--text);background:var(--accent-soft);border-color:#c084fc5c}.session-item{min-width:0;min-height:60px;color:inherit;text-align:left;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:stretch;gap:7px;padding:10px 4px 10px 11px;display:flex}.session-item-title{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:650;line-height:1.45;overflow:hidden}.session-item-meta{color:var(--text-faint);justify-content:space-between;align-items:center;gap:8px;font:9px/1.3 ui-monospace,monospace;display:flex}.session-report-badge{color:#a7f3d0;background:#34d39917;border:1px solid #34d39938;border-radius:5px;padding:2px 5px}.session-delete-button{width:44px;height:44px;color:var(--text-faint);opacity:.72;background:0 0;border:0;border-radius:9px;place-items:center;transition:all .16s;display:grid}.session-delete-button:hover:not(:disabled),.session-delete-button:focus-visible{color:#fecdd3;opacity:1;background:#f43f5e1f}.session-delete-button:disabled{opacity:.35;cursor:not-allowed}.session-delete-button svg{stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7px;width:17px;height:17px}.session-delete-spinner{animation:.8s linear infinite spin}.session-list-status{color:var(--text-faint);margin:10px 6px;font-size:11px;line-height:1.6}.session-list-status.error{color:#fecdd3}.session-list-status button{color:#ead7ff;text-underline-offset:2px;background:0 0;border:0;margin-left:5px;padding:0;text-decoration:underline}.chat-card{border-radius:20px;grid-template-rows:minmax(0,1fr) auto auto;min-width:0;display:grid;overflow:hidden}.message-scroll{scrollbar-color:#443b51 transparent;min-height:0;padding:clamp(20px,4vw,48px);position:relative;overflow-y:auto}.empty-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;max-width:710px;min-height:100%;margin:auto;display:flex}.empty-icon{width:64px;height:64px;color:var(--accent);background:linear-gradient(145deg,#9333ea38,#9333ea0d);border:1px solid #c084fc47;border-radius:18px;place-items:center;margin-bottom:22px;display:grid;box-shadow:0 16px 40px #9333ea1f}.empty-icon svg{width:30px;height:30px}.empty-state h2{letter-spacing:-.04em;margin:4px 0 10px;font-size:clamp(26px,4vw,38px);line-height:1.15}.empty-state>p:not(.eyebrow){color:var(--text-muted);margin:0;font-size:15px;line-height:1.7}.suggestion-grid{grid-template-columns:repeat(2,1fr);gap:10px;width:100%;margin-top:32px;display:grid}.suggestion-grid button{min-height:54px;color:var(--text-muted);text-align:left;background:var(--surface-soft);border:1px solid var(--border);border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;transition:all .18s;display:flex}.suggestion-grid button:hover{color:var(--text);background:var(--accent-soft);border-color:#c084fc80}.suggestion-grid svg{flex:none;width:17px}.message{max-width:780px;margin:0 auto 28px}.message.user{flex-direction:column;align-items:flex-end;display:flex}.message.has-package-cards,.message.has-report-answer{max-width:920px}.message-label{color:var(--text-faint);letter-spacing:.14em;margin:0 8px 7px;font:700 9px ui-monospace,monospace}.message-bubble{border:1px solid var(--border);background:var(--surface-raised);border-radius:4px 14px 14px;max-width:min(88%,700px);padding:16px 18px}.message.has-package-cards .message-bubble,.message.has-report-answer .message-bubble{width:100%;max-width:100%;padding:20px}.message.user .message-bubble{background:var(--accent-soft);border-color:#c084fc47;border-radius:14px 4px 14px 14px}.message-bubble>p{color:#ede8f2;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:15px;line-height:1.75}.package-recommendation{gap:18px;display:grid}.package-recommendation-heading{align-items:flex-start;gap:13px;display:flex}.package-heading-icon{width:40px;height:40px;color:var(--accent);background:var(--accent-soft);border:1px solid #c084fc4d;border-radius:11px;flex:none;place-items:center;display:grid}.package-heading-icon svg{width:21px;height:21px}.package-kicker{color:var(--accent);letter-spacing:.12em;margin:0 0 5px;font:700 9px/1.3 ui-monospace,monospace}.package-recommendation h3{color:var(--text);margin:0;font-size:18px;line-height:1.35}.package-recommendation-heading>div>p:last-child{color:var(--text-muted);margin:6px 0 0;font-size:13px;line-height:1.6}.package-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.package-card{background:linear-gradient(145deg,#9333ea1a,#131620b8);border:1px solid #c084fc38;border-radius:13px;min-width:0;padding:16px}.package-card header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.package-category,.package-demo{border-radius:999px;align-items:center;min-height:24px;padding:0 8px;font-size:10px;font-weight:700;line-height:1;display:inline-flex}.package-category{color:#ead7ff;background:var(--accent-soft)}.package-demo{color:#fde68a;background:#fbbf241a;border:1px solid #fbbf2438}.package-card h4{color:var(--text);margin:14px 0 5px;font-size:15px;line-height:1.5}.package-card>code{color:var(--text-faint);overflow-wrap:anywhere;font:10px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;display:block}.package-genes{border-top:1px solid var(--border-soft);margin-top:14px;padding-top:13px}.package-genes>p{color:var(--text-muted);margin:0 0 8px;font-size:11px;font-weight:700}.package-genes ul{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.package-genes li{color:#e9d5ff;background:#9333ea24;border:1px solid #c084fc2e;border-radius:6px;padding:4px 7px;font:700 10px/1.25 ui-monospace,monospace}.package-description{color:var(--text-muted);margin:13px 0 0;font-size:12px;line-height:1.65}.package-notice{color:#d8d1df;border-left:3px solid var(--accent);background:#ffffff08;border-radius:0 8px 8px 0;margin:0;padding:11px 13px;font-size:12px;line-height:1.6}.answer-sources{border-top:1px solid var(--border);margin-top:16px;padding-top:14px}.answer-sources-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px;display:flex}.answer-sources-heading h3{color:var(--text-muted);align-items:center;gap:7px;margin:0;font-size:12px;line-height:1.4;display:flex}.answer-sources-heading p{color:var(--text-faint);margin:4px 0 0;font-size:10px;line-height:1.45}.answer-source-count{color:#e9d5ff;background:var(--accent-soft);border:1px solid #c084fc3d;border-radius:999px;place-items:center;min-width:22px;height:22px;padding:0 6px;font:700 10px/1 ui-monospace,monospace;display:inline-grid}.answer-sources-toggle{color:#d8b4fe;background:0 0;border:1px solid #0000;border-radius:8px;flex:none;align-items:center;gap:3px;min-height:44px;padding:0 8px 0 12px;font-size:11px;font-weight:650;transition:all .18s;display:inline-flex}.answer-sources-toggle:hover{color:#f3e8ff;background:var(--accent-soft);border-color:#c084fc47}.answer-sources-toggle svg{width:16px;height:16px;transition:transform .18s}.answer-sources-toggle svg.expanded{transform:rotate(180deg)}.answer-sources ol{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0;padding:0;list-style:none;display:grid}.answer-sources li{min-width:0}.answer-source-link,.answer-source-static{color:#ede8f2;border:1px solid var(--border-soft);overflow-wrap:anywhere;background:#ffffff08;border-radius:8px;flex-direction:column;gap:3px;min-width:0;padding:9px 10px;font-size:12px;line-height:1.45;display:flex}.answer-source-link{cursor:pointer;text-decoration:none;transition:all .18s}.answer-source-link:hover{color:#fff;background:var(--accent-soft);border-color:#c084fc73}.answer-source-link:focus-visible{outline-offset:2px;outline:3px solid #c084fca6}.answer-source-link small{color:#c4b5fd;text-overflow:ellipsis;white-space:nowrap;font:10px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;overflow:hidden}.answer-source-static{color:var(--text-muted)}.trace-panel{border-top:1px solid var(--border);margin-top:15px;padding-top:12px}.trace-panel summary{min-height:32px;color:var(--text-muted);justify-content:space-between;align-items:center;gap:12px;font:600 11px ui-monospace,monospace;list-style:none;display:flex}.trace-panel summary::-webkit-details-marker{display:none}.trace-panel ol{gap:12px;margin:12px 0 0;padding:0;list-style:none;display:grid}.trace-panel li{grid-template-columns:10px 1fr;gap:10px;display:grid}.trace-state{border:2px solid var(--text-faint);border-radius:50%;width:8px;height:8px;margin-top:5px}.trace-state.success{border-color:var(--success);background:var(--success)}.trace-state.error{border-color:var(--danger);background:var(--danger)}.trace-state.empty,.trace-state.skipped{background:#fbbf24;border-color:#fbbf24}.trace-state.running{border-color:var(--accent);animation:1.2s ease-in-out infinite pulse}.trace-panel strong{color:#e8dfef;font-size:12px;display:block}.trace-panel small{color:var(--text-faint);margin-top:3px;font:10px ui-monospace,monospace;display:block}.trace-panel li p{color:var(--text-muted);margin:5px 0 0;font-size:12px;line-height:1.5}.source-list{flex-wrap:wrap;gap:6px;margin-top:7px;display:flex}.source-list span,.source-list a{color:#ead7ff;background:var(--accent-soft);border-radius:5px;padding:3px 7px;font-size:10px}.source-list a{text-underline-offset:2px;text-decoration:underline}.thinking-row{max-width:780px;color:var(--text-faint);align-items:center;gap:5px;margin:0 auto;display:flex}.thinking-row span{background:var(--accent);border-radius:50%;width:5px;height:5px;animation:1.2s ease-in-out infinite pulse}.thinking-row span:nth-child(2){animation-delay:.12s}.thinking-row span:nth-child(3){animation-delay:.24s}.thinking-row p{margin-left:6px;font-size:12px}.report-status-card{color:var(--text-muted);background:#181b27e0;border:1px solid #c084fc4d;border-radius:14px;margin:0 clamp(18px,4vw,40px) 12px;padding:14px 16px;box-shadow:0 12px 32px #00000029}.report-status-card.ready{border-color:#34d39959}.report-status-card.warning{border-color:#fbbf246b}.report-status-card.failed{border-color:#fb71856b}.report-status-card.compact{padding:8px 12px}.report-status-heading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.report-status-card.compact .report-status-heading{align-items:center}.report-file{flex:260px;align-items:center;gap:11px;min-width:0;display:flex}.report-file>div{min-width:0}.report-file-icon{width:36px;height:36px;color:var(--accent);background:var(--accent-soft);border-radius:10px;flex:none;place-items:center;display:grid}.report-file-icon svg{width:19px;height:19px}.report-file p{color:var(--text);overflow-wrap:anywhere;margin:0;font-size:13px;font-weight:700;line-height:1.4}.report-file small{color:var(--text-faint);overflow-wrap:anywhere;margin-top:3px;font-size:10px;line-height:1.45;display:block}.report-status-card.compact .report-file p,.report-status-card.compact .report-file small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.report-status-controls{flex:none;align-items:center;gap:8px;display:flex}.report-stage-badge{color:#ead7ff;background:var(--accent-soft);border:1px solid #c084fc40;border-radius:999px;flex:none;align-items:center;gap:7px;min-height:28px;padding:0 9px;font:700 10px ui-monospace,monospace;display:inline-flex}.report-status-action{min-width:44px;min-height:44px;color:var(--text-muted);border:1px solid var(--border);background:0 0;border-radius:9px;padding:0 11px;font-size:11px;font-weight:700;transition:all .18s}.report-status-action:hover:not(:disabled){color:var(--text);background:var(--surface-raised);border-color:#514c62}.report-status-action:disabled{opacity:.45;cursor:not-allowed}.report-status-action svg{stroke:currentColor;stroke-linecap:round;stroke-width:1.8px;width:16px;height:16px}.report-status-close{place-items:center;padding:0;display:inline-grid}.report-stage-dot{background:currentColor;border-radius:50%;width:7px;height:7px}.report-stage-dot.polling{animation:1.2s ease-in-out infinite pulse}.report-status-card.ready .report-stage-badge{color:#a7f3d0;background:#34d3991a;border-color:#34d3993d}.report-status-card.warning .report-stage-badge{color:#fde68a;background:#fbbf241a;border-color:#fbbf2447}.report-status-card.failed .report-stage-badge{color:#fecdd3;background:#f43f5e1a;border-color:#fb718547}.report-progress{background:var(--border-soft);border-radius:999px;height:5px;margin-top:13px;overflow:hidden}.report-progress span{background:linear-gradient(90deg, var(--accent-strong), var(--accent));border-radius:inherit;height:100%;transition:width .24s ease-out;display:block}.report-status-card.ready .report-progress span{background:var(--success)}.report-status-card.warning .report-progress span{background:#fbbf24}.report-status-card.failed .report-progress span{background:var(--danger)}.report-stage-list{color:var(--text-faint);grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:7px;font:9px ui-monospace,monospace;display:grid}.report-stage-list span:nth-child(2),.report-stage-list span:nth-child(3){text-align:center}.report-stage-list span:last-child{text-align:right}.report-stage-list .active{color:var(--text);font-weight:700}.report-status-message{color:var(--text-muted);margin:10px 0 0;font-size:11px;line-height:1.5}.report-status-message.error{color:#fecdd3}.report-retry-actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;display:flex}.report-retry-actions .report-status-message{flex:240px;margin:0}.report-retry-actions button{color:#fff1f2;background:#f43f5e24;border:1px solid #fb718561;border-radius:9px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:0 13px;font-size:12px;font-weight:700;transition:all .18s;display:inline-flex}.report-retry-actions button:hover:not(:disabled){background:#f43f5e3b;border-color:#fb718599}.report-retry-actions button:disabled{opacity:.48;cursor:not-allowed}.report-retry-actions button svg{width:17px;height:17px}.report-warning{color:#fde68a;background:#fbbf2414;border-radius:8px;margin-top:10px;padding:9px 11px;font-size:11px;line-height:1.5}.report-warning strong{display:block}.report-warning ul{margin:5px 0 0;padding-left:18px}.report-binding{color:#a7f3d0;align-items:center;gap:7px;margin:10px 0 0;font-size:11px;font-weight:600;line-height:1.5;display:flex}.report-binding svg{flex:none;width:16px;height:16px}.error-banner{color:#fecdd3;background:#f43f5e1a;border:1px solid #fb71854d;border-radius:10px;margin:0 24px 12px;padding:11px 14px;font-size:13px}.composer{border-top:1px solid var(--border-soft);background:#0b0c12eb;padding:18px clamp(18px,4vw,40px) 16px}.composer label{color:var(--text-muted);margin:0 0 8px 3px;font-size:12px;font-weight:600;display:block}.composer-row{grid-template-columns:48px minmax(0,1fr) 48px;gap:10px;display:grid}.composer textarea{resize:vertical;width:100%;min-height:50px;max-height:150px;color:var(--text);caret-color:var(--accent);background:var(--surface-raised);border:1px solid var(--border);border-radius:12px;padding:13px 15px;line-height:1.5}.composer textarea::placeholder{color:#746b7e}.composer textarea:disabled{opacity:.55;cursor:not-allowed}.attachment-button{width:48px;min-height:48px;color:var(--text-muted);background:var(--surface-raised);border:1px solid var(--border);border-radius:12px;place-items:center;transition:all .18s;display:grid}.attachment-button:hover:not(:disabled){color:var(--text);background:var(--accent-soft);border-color:#c084fc80}.attachment-button:disabled{opacity:.45;cursor:not-allowed}.upload-spinner{animation:.8s linear infinite spin}.upload-feedback{color:var(--text-muted);overflow-wrap:anywhere;margin:0 3px 10px;font-size:12px;line-height:1.5}.upload-feedback.success{color:#a7f3d0}.upload-feedback.error{color:#fecdd3}.send-button{color:#fff;background:var(--accent-strong);border:0;border-radius:12px;place-items:center;width:48px;min-height:48px;transition:all .18s;display:grid}.send-button:hover:not(:disabled){background:#a855f7;box-shadow:0 8px 24px #9333ea40}.send-button:disabled{opacity:.4;cursor:not-allowed}.send-button.stop{color:#fecdd3;background:#f43f5e29;border:1px solid #fb71854d}.composer>p{color:var(--text-faint);margin:8px 2px 0;font-size:10px}@keyframes pulse{0%,to{opacity:.28;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=820px){.workspace{grid-template-columns:1fr;width:min(100% - 24px,760px);height:calc(100dvh - 100px);min-height:0}.info-panel{display:none}.topbar{height:68px;padding:0 16px}.framework-badge{display:none}.message-scroll{padding:24px 18px}.package-grid{grid-template-columns:1fr}}@media (width<=520px){.brand-mark{width:38px;height:38px}h1{font-size:16px}.ghost-button{justify-content:center;width:44px;padding:0}.ghost-button span{display:none}.workspace{width:100%;height:calc(100dvh - 68px);min-height:0;margin:0}.chat-card{border:0;border-radius:0}.suggestion-grid{grid-template-columns:1fr}.empty-state{justify-content:flex-start;padding-top:8vh}.message-bubble{max-width:94%}.message.has-package-cards .message-bubble,.message.has-report-answer .message-bubble{padding:15px}.answer-sources-heading{align-items:flex-start}.answer-sources ol{grid-template-columns:1fr}.package-recommendation-heading{gap:10px}.package-heading-icon{width:36px;height:36px}.report-status-card{margin:0 14px 10px;padding:12px}.report-status-heading{flex-wrap:wrap;gap:10px}.report-status-controls{justify-content:flex-end;width:100%}.report-status-card.compact .report-file{flex-basis:calc(100% - 120px)}.report-status-card.compact .report-status-controls{width:auto;margin-left:auto}.report-status-card.compact .report-stage-badge{display:none}.report-status-card.compact .report-status-action{padding:0 8px}.report-file-icon{width:32px;height:32px}.report-stage-badge{min-height:26px;padding:0 7px}.report-stage-list{gap:4px;font-size:8px}.composer{padding:14px 14px max(14px, env(safe-area-inset-bottom))}.composer>p{display:none}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
