.chat-loading-container.svelte-1oad7o0{display:flex;flex-direction:column;align-items:center;justify-content:center;height:calc(100vh - 120px);gap:1rem;color:var(--termo-text-secondary, #6b7280)}.chat-loading-spinner.svelte-1oad7o0{width:40px;height:40px;border:3px solid var(--termo-border-default, #e5e7eb);border-top-color:var(--termo-brand-primary, #8b5cf6);border-radius:50%;animation:svelte-1oad7o0-spin .8s linear infinite}@keyframes svelte-1oad7o0-spin{to{transform:rotate(360deg)}}.pro-lock-overlay.svelte-1oad7o0{display:flex;align-items:center;justify-content:center;height:calc(100vh - 120px);background:var(--termo-surface-base, #f8fafc);padding:2rem}.pro-lock-card.svelte-1oad7o0{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:400px;padding:2.5rem;background:var(--termo-surface-card, white);border-radius:1.5rem;box-shadow:0 25px 50px -12px #00000026}.dark .pro-lock-card.svelte-1oad7o0{background:#1f2937;box-shadow:0 25px 50px -12px #0006}.pro-lock-badge.svelte-1oad7o0{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .75rem;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;background:#8b5cf626;color:#8b5cf6;border-radius:9999px;margin-bottom:1rem}.pro-lock-badge.wallet.svelte-1oad7o0{background:#f59e0b26;color:#d97706}.dark .pro-lock-badge.svelte-1oad7o0{background:#8b5cf640;color:#a78bfa}.pro-lock-icon.svelte-1oad7o0{display:flex;align-items:center;justify-content:center;width:var(--spacing-20, 5rem);height:var(--spacing-20, 5rem);border-radius:50%;margin-bottom:1.5rem}.pro-lock-icon.subscription.svelte-1oad7o0{background:linear-gradient(135deg,#8b5cf6,#6366f1);color:#fff}.pro-lock-icon.balance.svelte-1oad7o0{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff}.pro-lock-title.svelte-1oad7o0{font-size:1.5rem;font-weight:700;color:var(--termo-text-primary, #111827);margin:0 0 .75rem}.dark .pro-lock-title.svelte-1oad7o0{color:#f9fafb}.pro-lock-description.svelte-1oad7o0{font-size:1rem;color:var(--termo-text-secondary, #6b7280);margin:0 0 1.5rem;line-height:1.6}.dark .pro-lock-description.svelte-1oad7o0{color:#9ca3af}.pro-lock-cta.svelte-1oad7o0{display:inline-flex;align-items:center;gap:.5rem;padding:.875rem 2rem;font-size:1rem;font-weight:600;color:#fff;text-decoration:none;border-radius:.75rem;transition:transform .15s ease,box-shadow .15s ease}.pro-lock-cta.subscription.svelte-1oad7o0{background:linear-gradient(135deg,#8b5cf6,#6366f1)}.pro-lock-cta.balance.svelte-1oad7o0{background:linear-gradient(135deg,#f59e0b,#d97706)}.pro-lock-cta.svelte-1oad7o0:hover{transform:translateY(-2px);box-shadow:0 10px 25px -5px #0003}.pro-lock-features.svelte-1oad7o0{display:flex;flex-direction:column;gap:.5rem;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--termo-border-default, #e5e7eb);width:100%}.dark .pro-lock-features.svelte-1oad7o0{border-top-color:#374151}.pro-lock-feature.svelte-1oad7o0{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--termo-text-secondary, #6b7280)}.dark .pro-lock-feature.svelte-1oad7o0{color:#9ca3af}.pro-lock-feature-icon.svelte-1oad7o0{color:#10b981;flex-shrink:0}.chat-container.svelte-1oad7o0{display:flex;flex-direction:column;height:calc(100vh - 120px);max-height:900px;background:var(--termo-surface-base);position:relative}.chat-header.svelte-1oad7o0{display:flex;align-items:center;justify-content:center;padding:.75rem 1.5rem;background:var(--termo-surface-card);border-bottom:1px solid var(--termo-border-default);flex-shrink:0}.chat-header-content.svelte-1oad7o0{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:800px}.chat-model-selector.svelte-1oad7o0{display:flex;align-items:center;gap:.5rem}.model-name.svelte-1oad7o0{font-size:1.125rem;font-weight:700;color:var(--termo-text-primary)}.model-version.svelte-1oad7o0{font-size:.75rem;font-weight:600;padding:.125rem .5rem;background:var(--termo-brand-primary);color:var(--termo-text-inverse);border-radius:9999px}.chat-actions.svelte-1oad7o0{display:flex;align-items:center;gap:.5rem}.new-chat-header-btn.svelte-1oad7o0{display:flex;align-items:center;gap:.375rem;padding:.5rem .875rem;background:var(--termo-brand-primary);color:var(--termo-text-inverse);border:none;border-radius:8px;font-size:.8125rem;font-weight:600;cursor:pointer;transition:all .15s}.new-chat-header-btn.svelte-1oad7o0:hover{background:var(--termo-brand-primary-hover);transform:translateY(-1px)}.header-btn.svelte-1oad7o0{width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:var(--termo-surface-muted);border:1px solid var(--termo-border-default);border-radius:8px;font-size:1.125rem;cursor:pointer;transition:all .15s}.header-btn.svelte-1oad7o0:hover{background:var(--termo-surface-highlight);border-color:var(--termo-border-strong)}.persona-modal-overlay.svelte-1oad7o0{position:fixed;inset:0;background:#00000080;z-index:1000;animation:svelte-1oad7o0-fadeIn .2s ease-out}.persona-modal.svelte-1oad7o0{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:90%;max-width:500px;background:var(--termo-surface-card);border-radius:var(--spacing-4, 1rem);box-shadow:var(--termo-shadow-xl);z-index:1001;animation:svelte-1oad7o0-modalSlideIn .3s ease-out}@keyframes svelte-1oad7o0-modalSlideIn{0%{opacity:0;transform:translate(-50%,-50%) scale(.9)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.persona-modal-header.svelte-1oad7o0{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid var(--termo-border-default)}.persona-modal-title.svelte-1oad7o0{font-size:1.25rem;font-weight:700;color:var(--termo-text-primary);margin:0}.persona-modal-close.svelte-1oad7o0{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:6px;font-size:1.5rem;color:var(--termo-text-secondary);cursor:pointer;transition:all .15s;line-height:1}.persona-modal-close.svelte-1oad7o0:hover{background:var(--termo-surface-muted);color:var(--termo-text-primary)}.persona-modal-body.svelte-1oad7o0{padding:1.5rem}.persona-description.svelte-1oad7o0{font-size:.875rem;color:var(--termo-text-secondary);margin:0 0 1rem}.persona-textarea.svelte-1oad7o0{width:100%;padding:.875rem 1rem;background:var(--termo-input-bg);border:1px solid var(--termo-input-border);border-radius:10px;font-size:.875rem;color:var(--termo-input-text);resize:vertical;min-height:120px;font-family:inherit}.persona-textarea.svelte-1oad7o0:focus{outline:none;border-color:var(--termo-border-focus);box-shadow:0 0 0 3px #22c55e1a}.persona-textarea.svelte-1oad7o0::placeholder{color:var(--termo-input-placeholder)}.persona-presets.svelte-1oad7o0{margin-top:1.25rem}.persona-presets-title.svelte-1oad7o0{font-size:.8125rem;font-weight:600;color:var(--termo-text-secondary);margin:0 0 .75rem}.persona-presets-grid.svelte-1oad7o0{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}.preset-btn.svelte-1oad7o0{padding:.625rem .875rem;background:var(--termo-surface-muted);border:1px solid var(--termo-border-default);border-radius:8px;font-size:.8125rem;font-weight:500;color:var(--termo-text-primary);cursor:pointer;transition:all .15s;text-align:left}.preset-btn.svelte-1oad7o0:hover{background:var(--termo-surface-highlight);border-color:var(--termo-brand-primary);color:var(--termo-brand-primary)}.persona-modal-footer.svelte-1oad7o0{display:flex;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid var(--termo-border-default);background:var(--termo-surface-elevated);border-radius:0 0 var(--spacing-4, 1rem) var(--spacing-4, 1rem)}.persona-btn.svelte-1oad7o0{padding:.625rem 1.25rem;border-radius:8px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .15s}.persona-btn-cancel.svelte-1oad7o0{background:transparent;border:1px solid var(--termo-border-default);color:var(--termo-text-secondary)}.persona-btn-cancel.svelte-1oad7o0:hover{background:var(--termo-surface-muted);color:var(--termo-text-primary)}.persona-btn-save.svelte-1oad7o0{background:var(--termo-brand-primary);border:none;color:var(--termo-text-inverse)}.persona-btn-save.svelte-1oad7o0:hover{background:var(--termo-brand-primary-hover)}.hero-immagine.svelte-1oad7o0{width:min(180px,50vw);height:auto;display:block}.empty-state.svelte-1oad7o0{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem}.chat-hero.svelte-1oad7o0{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem}.hero-title.svelte-1oad7o0{font-size:2.25rem;font-weight:700;color:var(--termo-brand-primary, #22C55E);margin:0 0 .75rem}.hero-subtitle.svelte-1oad7o0{font-size:1rem;color:var(--termo-text-secondary, #757575);margin:0;max-width:400px}.messages-container.svelte-1oad7o0{flex:1;overflow-y:auto;padding:1.5rem;background:var(--termo-surface-base)}.messages-list.svelte-1oad7o0{max-width:800px;margin:0 auto;display:flex;flex-direction:column;gap:1rem}.message-wrapper.svelte-1oad7o0{display:flex;animation:svelte-1oad7o0-messageSlideIn .3s ease-out}.message-wrapper.user.svelte-1oad7o0{justify-content:flex-end}.message-wrapper.assistant.svelte-1oad7o0{justify-content:flex-start}@keyframes svelte-1oad7o0-messageSlideIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message-bubble.svelte-1oad7o0{max-width:75%;padding:1rem 1.25rem;border-radius:var(--spacing-4, 1rem);background:var(--termo-surface-elevated);border:1px solid var(--termo-border-default)}.message-wrapper.user.svelte-1oad7o0 .message-bubble:where(.svelte-1oad7o0){background:var(--termo-brand-primary);border-color:var(--termo-brand-primary);color:var(--termo-text-inverse)}.message-bubble.loading.svelte-1oad7o0{background:var(--termo-surface-elevated);border-color:var(--termo-border-default)}.message-header.svelte-1oad7o0{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;gap:1rem}.message-role.svelte-1oad7o0{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;opacity:.8}.message-time.svelte-1oad7o0{font-size:.6875rem;opacity:.6}.message-content.svelte-1oad7o0{font-size:.9375rem;line-height:1.6;white-space:pre-wrap;word-wrap:break-word}.message-wrapper.user.svelte-1oad7o0 .message-content:where(.svelte-1oad7o0){color:var(--termo-text-inverse)}.message-citations.svelte-1oad7o0{margin-top:1rem;padding:.75rem;background:var(--termo-surface-info);border:1px solid var(--termo-border-info);border-radius:8px}.citations-header.svelte-1oad7o0{display:flex;align-items:center;gap:.5rem;font-size:.75rem;font-weight:600;color:var(--termo-brand-primary);margin-bottom:.75rem}.citations-list.svelte-1oad7o0{display:flex;flex-direction:column;gap:.5rem}.citation-item.svelte-1oad7o0{display:flex;gap:.75rem;padding:.5rem;background:var(--termo-surface-card);border:1px solid var(--termo-border-default);border-radius:6px;font-size:.8125rem}.citation-badge.svelte-1oad7o0{width:var(--spacing-6, 1.5rem);height:var(--spacing-6, 1.5rem);display:flex;align-items:center;justify-content:center;background:var(--termo-brand-primary);color:var(--termo-text-inverse);border-radius:50%;font-size:.6875rem;font-weight:700;flex-shrink:0}.citation-info.svelte-1oad7o0{flex:1;min-width:0}.citation-code.svelte-1oad7o0{font-weight:600;color:var(--termo-brand-primary)}.citation-page.svelte-1oad7o0,.citation-section.svelte-1oad7o0{color:var(--termo-text-secondary);font-size:.75rem;margin-left:.5rem}.citation-title.svelte-1oad7o0{font-size:.75rem;color:var(--termo-text-secondary);margin-top:.25rem}.citation-excerpt.svelte-1oad7o0{font-size:.75rem;color:var(--termo-text-muted);font-style:italic;margin-top:.375rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.citation-images.svelte-1oad7o0{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem}.citation-image-btn.svelte-1oad7o0{position:relative;padding:0;border:0;background:none;line-height:0;cursor:zoom-in;border-radius:4px}.citation-image-btn.svelte-1oad7o0:focus-visible{outline:2px solid var(--termo-color-primary, #2563eb);outline-offset:2px}.citation-image.svelte-1oad7o0{max-width:200px;max-height:150px;border-radius:4px;border:1px solid var(--termo-border-default);transition:transform .15s,box-shadow .15s}.citation-image-btn.svelte-1oad7o0:hover .citation-image:where(.svelte-1oad7o0),.citation-image-btn.svelte-1oad7o0:focus-visible .citation-image:where(.svelte-1oad7o0){transform:scale(1.05);box-shadow:var(--termo-shadow-md)}.citation-image-zoom.svelte-1oad7o0{position:absolute;right:4px;bottom:4px;padding:1px 5px;border-radius:3px;font-size:.7rem;line-height:1.4;color:#fff;background:#0000008c;opacity:0;transition:opacity .15s}.citation-image-btn.svelte-1oad7o0:hover .citation-image-zoom:where(.svelte-1oad7o0),.citation-image-btn.svelte-1oad7o0:focus-visible .citation-image-zoom:where(.svelte-1oad7o0){opacity:1}.fig-viewer-overlay.svelte-1oad7o0{position:fixed;inset:0;background:#000000d1;z-index:3000}.fig-viewer.svelte-1oad7o0{position:fixed;inset:3vh 3vw;z-index:3001;display:flex;flex-direction:column;background:var(--termo-bg-surface, #fff);border-radius:10px;box-shadow:var(--termo-shadow-lg, 0 20px 60px rgba(0, 0, 0, .4));overflow:hidden}.fig-viewer-bar.svelte-1oad7o0{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border-bottom:1px solid var(--termo-border-default);font-size:.8rem;flex-wrap:wrap}.fig-viewer-src.svelte-1oad7o0{font-weight:600}.fig-viewer-count.svelte-1oad7o0,.fig-viewer-zoom.svelte-1oad7o0{color:var(--termo-text-muted, #667);font-variant-numeric:tabular-nums}.fig-viewer-spacer.svelte-1oad7o0{flex:1}.fig-btn.svelte-1oad7o0{padding:.15rem .5rem;border:1px solid var(--termo-border-default);border-radius:4px;background:var(--termo-bg-subtle, #f5f5f5);color:inherit;font-size:.8rem;line-height:1.5;cursor:pointer;text-decoration:none}.fig-btn.svelte-1oad7o0:hover{background:var(--termo-bg-hover, #ebebeb)}.fig-btn-close.svelte-1oad7o0{font-weight:700}.fig-viewer-stage.svelte-1oad7o0{flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden;background:repeating-conic-gradient(var(--termo-bg-subtle, #f0f0f0) 0% 25%,transparent 0% 50%) 50% / 20px 20px;touch-action:none}.fig-viewer-stage.zoomed.svelte-1oad7o0{cursor:grab}.fig-viewer-stage.dragging.svelte-1oad7o0{cursor:grabbing}.fig-viewer-img.svelte-1oad7o0{max-width:100%;max-height:100%;object-fit:contain;transform-origin:center center;transition:transform .08s linear;user-select:none;-webkit-user-drag:none}.fig-nav.svelte-1oad7o0{position:absolute;top:50%;transform:translateY(-50%);width:2.2rem;height:3.2rem;border:0;border-radius:6px;background:#00000059;color:#fff;font-size:1.6rem;line-height:1;cursor:pointer}.fig-nav.svelte-1oad7o0:hover{background:#0000008c}.fig-nav-prev.svelte-1oad7o0{left:.75rem}.fig-nav-next.svelte-1oad7o0{right:.75rem}.fig-viewer-hint.svelte-1oad7o0{margin:0;padding:.35rem .75rem;border-top:1px solid var(--termo-border-default);font-size:.72rem;color:var(--termo-text-muted, #667);text-align:center}@media(max-width:640px){.fig-viewer.svelte-1oad7o0{inset:0;border-radius:0}.fig-viewer-hint.svelte-1oad7o0{display:none}}.citation-similarity.svelte-1oad7o0{display:flex;align-items:center;gap:.5rem;margin-top:.375rem}.similarity-bar.svelte-1oad7o0{height:4px;background:var(--termo-brand-primary);border-radius:2px;transition:width .3s ease}.similarity-value.svelte-1oad7o0{font-size:.625rem;color:var(--termo-text-muted)}.message-tokens.svelte-1oad7o0{display:flex;align-items:center;gap:.375rem;margin-top:.5rem;padding-top:.5rem;font-size:.6875rem;color:var(--termo-text-muted)}.message-tokens.svelte-1oad7o0 svg:where(.svelte-1oad7o0){opacity:.6}.session-token-stats.svelte-1oad7o0{display:flex;align-items:center;gap:.5rem;padding:.375rem .75rem;background:var(--termo-surface-muted);border:1px solid var(--termo-border-default);border-radius:6px;font-size:.75rem;color:var(--termo-text-secondary)}.session-token-stats.svelte-1oad7o0 svg:where(.svelte-1oad7o0){color:var(--termo-brand-primary)}.message-actions.svelte-1oad7o0{display:flex;gap:.5rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--termo-border-default)}.action-btn.svelte-1oad7o0{display:flex;align-items:center;gap:.375rem;padding:.375rem .75rem;background:transparent;border:1px solid var(--termo-border-default);border-radius:6px;color:var(--termo-text-secondary);font-size:.75rem;cursor:pointer;transition:all .15s}.action-btn.svelte-1oad7o0:hover{background:var(--termo-surface-muted);border-color:var(--termo-border-strong);color:var(--termo-text-primary)}.typing-indicator.svelte-1oad7o0{display:flex;gap:.375rem;padding:.5rem 0}.typing-indicator.svelte-1oad7o0 span:where(.svelte-1oad7o0){width:8px;height:8px;border-radius:50%;background:var(--termo-brand-primary);opacity:.6;animation:svelte-1oad7o0-typingBounce 1.4s infinite}.typing-indicator.svelte-1oad7o0 span:where(.svelte-1oad7o0):nth-child(2){animation-delay:.2s}.typing-indicator.svelte-1oad7o0 span:where(.svelte-1oad7o0):nth-child(3){animation-delay:.4s}@keyframes svelte-1oad7o0-typingBounce{0%,60%,to{transform:translateY(0);opacity:.6}30%{transform:translateY(-10px);opacity:1}}.input-container.svelte-1oad7o0{padding:1.5rem;background:var(--termo-surface-base);border-top:1px solid var(--termo-border-default)}.input-wrapper.svelte-1oad7o0{display:flex;align-items:center;gap:.75rem;max-width:800px;margin:0 auto;background:var(--termo-input-bg);border:1px solid var(--termo-input-border);border-radius:var(--spacing-6, 1.5rem);padding:.5rem 1rem;transition:border-color .15s}.input-wrapper.svelte-1oad7o0:focus-within{border-color:var(--termo-border-focus);box-shadow:0 0 0 3px #22c55e1a}.attach-btn.svelte-1oad7o0{width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:var(--termo-surface-muted);border:none;border-radius:50%;color:var(--termo-text-secondary);cursor:pointer;transition:all .15s;flex-shrink:0}.attach-btn.svelte-1oad7o0:hover:not(:disabled){background:var(--termo-surface-highlight);color:var(--termo-brand-primary)}.attach-btn.svelte-1oad7o0:disabled{opacity:.5;cursor:not-allowed}.chat-input.svelte-1oad7o0{flex:1;border:none;outline:none;font-size:.9375rem;color:var(--termo-input-text);background:transparent;min-width:0}.chat-input.svelte-1oad7o0::placeholder{color:var(--termo-input-placeholder)}.chat-input.svelte-1oad7o0:disabled{opacity:.5;cursor:not-allowed}.send-btn.svelte-1oad7o0{width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:var(--termo-brand-primary);border:none;border-radius:50%;color:var(--termo-text-inverse);cursor:pointer;transition:all .15s;flex-shrink:0}.send-btn.svelte-1oad7o0:hover:not(:disabled){background:var(--termo-brand-primary-hover);transform:scale(1.05)}.send-btn.svelte-1oad7o0:disabled{opacity:.4;cursor:not-allowed;transform:scale(1)}.input-footer.svelte-1oad7o0{text-align:center;margin-top:.75rem;max-width:800px;margin-left:auto;margin-right:auto}.disclaimer.svelte-1oad7o0{font-size:.75rem;color:var(--termo-text-muted);margin:0}.file-types.svelte-1oad7o0{font-size:.6875rem;color:var(--termo-text-muted);margin:.25rem 0 0;text-align:center}@media(max-width:768px){.chat-container.svelte-1oad7o0{height:calc(100vh - 100px)}.hero-title.svelte-1oad7o0{font-size:1.75rem}.hero-subtitle.svelte-1oad7o0{font-size:.875rem}.message-bubble.svelte-1oad7o0{max-width:85%}.messages-container.svelte-1oad7o0,.input-container.svelte-1oad7o0{padding:1rem}}.messages-container.svelte-1oad7o0{position:relative}.messages-container.dragging.svelte-1oad7o0:before{content:"";position:absolute;inset:0;background:var(--termo-brand-primary);opacity:.05;pointer-events:none;z-index:1}.drag-overlay.svelte-1oad7o0{position:absolute;inset:0;background:var(--termo-surface-base);opacity:.95;display:flex;align-items:center;justify-content:center;z-index:10;pointer-events:none}.drag-content.svelte-1oad7o0{text-align:center;color:var(--termo-brand-primary)}.drag-content.svelte-1oad7o0 svg:where(.svelte-1oad7o0){margin-bottom:1rem}.drag-content.svelte-1oad7o0 p:where(.svelte-1oad7o0){font-size:1.125rem;font-weight:600;margin:0}.message-attachments.svelte-1oad7o0{display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--termo-border-default)}.attachment-item.svelte-1oad7o0{display:flex;align-items:center;gap:.625rem;padding:.5rem .75rem;background:var(--termo-surface-muted);border:1px solid var(--termo-border-default);border-radius:8px;font-size:.8125rem}.message-wrapper.user.svelte-1oad7o0 .attachment-item:where(.svelte-1oad7o0){background:#ffffff26;border-color:#fff3}.attachment-icon.svelte-1oad7o0{font-size:1.25rem;flex-shrink:0}.attachment-info.svelte-1oad7o0{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.attachment-name.svelte-1oad7o0{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attachment-size.svelte-1oad7o0{font-size:.6875rem;opacity:.7}.attached-files-preview.svelte-1oad7o0{display:flex;flex-wrap:wrap;gap:.5rem;max-width:800px;margin:0 auto .75rem;padding:0 .5rem}.file-chip.svelte-1oad7o0{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:var(--termo-surface-elevated);border:1px solid var(--termo-border-default);border-radius:12px;font-size:.8125rem;position:relative;max-width:2var(--spacing-20,5rem);animation:svelte-1oad7o0-chipSlideIn .2s ease-out}@keyframes svelte-1oad7o0-chipSlideIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.file-chip-icon.svelte-1oad7o0{font-size:1.125rem;flex-shrink:0}.file-chip-info.svelte-1oad7o0{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.file-chip-name.svelte-1oad7o0{font-weight:500;color:var(--termo-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-chip-size.svelte-1oad7o0{font-size:.6875rem;color:var(--termo-text-secondary)}.file-chip-progress.svelte-1oad7o0{position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--termo-surface-muted);border-radius:0 0 12px 12px;overflow:hidden}.progress-bar.svelte-1oad7o0{height:100%;background:var(--termo-brand-primary);transition:width .3s ease}.file-chip-error.svelte-1oad7o0{font-size:1rem;flex-shrink:0}.file-chip-remove.svelte-1oad7o0{width:20px;height:20px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:50%;color:var(--termo-text-secondary);cursor:pointer;transition:all .15s;flex-shrink:0;padding:0}.file-chip-remove.svelte-1oad7o0:hover{background:var(--termo-surface-muted);color:var(--termo-text-primary)}.file-chip-context.svelte-1oad7o0{width:20px;height:20px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:50%;color:var(--termo-text-secondary);cursor:pointer;transition:all .15s;flex-shrink:0;padding:0}.file-chip-context.svelte-1oad7o0:hover{background:var(--termo-brand-primary);color:var(--termo-text-inverse)}.context-files-panel.svelte-1oad7o0{max-width:800px;margin:0 auto 1rem;padding:1rem;background:var(--termo-surface-card);border:1px solid var(--termo-border-default);border-radius:12px;box-shadow:var(--termo-shadow-sm)}.context-files-header.svelte-1oad7o0{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.context-files-title.svelte-1oad7o0{display:flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:600;color:var(--termo-text-primary)}.context-files-title.svelte-1oad7o0 svg:where(.svelte-1oad7o0){color:var(--termo-brand-primary)}.context-files-actions.svelte-1oad7o0{display:flex;align-items:center;gap:.375rem}.context-add-btn.svelte-1oad7o0,.context-clear-btn.svelte-1oad7o0{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--termo-surface-muted);border:1px solid var(--termo-border-default);border-radius:6px;color:var(--termo-text-secondary);cursor:pointer;transition:all .15s}.context-add-btn.svelte-1oad7o0:hover{background:var(--termo-brand-primary);border-color:var(--termo-brand-primary);color:var(--termo-text-inverse)}.context-clear-btn.svelte-1oad7o0:hover{background:#fef2f2;border-color:#fca5a5;color:#dc2626}.context-files-list.svelte-1oad7o0{display:flex;flex-direction:column;gap:.5rem}.context-file-item.svelte-1oad7o0{display:flex;align-items:center;gap:.625rem;padding:.625rem .75rem;background:var(--termo-surface-muted);border:1px solid var(--termo-border-default);border-radius:8px;transition:all .15s}.context-file-item.disabled.svelte-1oad7o0{opacity:.5;background:var(--termo-surface-base)}.context-file-checkbox.svelte-1oad7o0{position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer}.context-file-checkbox.svelte-1oad7o0 input:where(.svelte-1oad7o0){position:absolute;opacity:0;width:0;height:0}.context-file-checkbox.svelte-1oad7o0 .checkmark:where(.svelte-1oad7o0){width:18px;height:18px;background:var(--termo-surface-card);border:2px solid var(--termo-border-strong);border-radius:4px;display:flex;align-items:center;justify-content:center;transition:all .15s}.context-file-checkbox.svelte-1oad7o0 input:where(.svelte-1oad7o0):checked+.checkmark:where(.svelte-1oad7o0){background:var(--termo-brand-primary);border-color:var(--termo-brand-primary)}.context-file-checkbox.svelte-1oad7o0 input:where(.svelte-1oad7o0):checked+.checkmark:where(.svelte-1oad7o0):after{content:"";width:5px;height:9px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg);margin-bottom:2px}.context-file-icon.svelte-1oad7o0{font-size:1.125rem;flex-shrink:0}.context-file-info.svelte-1oad7o0{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.context-file-name.svelte-1oad7o0{font-size:.8125rem;font-weight:500;color:var(--termo-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.context-file-size.svelte-1oad7o0{font-size:.6875rem;color:var(--termo-text-secondary)}.context-file-remove.svelte-1oad7o0{width:var(--spacing-6, 1.5rem);height:var(--spacing-6, 1.5rem);display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:4px;color:var(--termo-text-muted);cursor:pointer;transition:all .15s;flex-shrink:0;opacity:0}.context-file-item.svelte-1oad7o0:hover .context-file-remove:where(.svelte-1oad7o0){opacity:1}.context-file-remove.svelte-1oad7o0:hover{background:#fef2f2;color:#dc2626}.context-files-hint.svelte-1oad7o0{font-size:.6875rem;color:var(--termo-text-muted);margin:.75rem 0 0;text-align:center;font-style:italic}.upload-error.svelte-1oad7o0{display:flex;align-items:center;gap:.5rem;max-width:800px;margin:0 auto .75rem;padding:.75rem 1rem;background:#fef2f2;border:1px solid #fca5a5;border-radius:8px;color:#dc2626;font-size:.8125rem;animation:svelte-1oad7o0-errorSlideIn .2s ease-out}@keyframes svelte-1oad7o0-errorSlideIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.upload-error.svelte-1oad7o0 svg:where(.svelte-1oad7o0){flex-shrink:0}.upload-error.svelte-1oad7o0 span:where(.svelte-1oad7o0){flex:1}.error-dismiss.svelte-1oad7o0{width:20px;height:20px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:50%;color:#dc2626;cursor:pointer;transition:all .15s;flex-shrink:0;padding:0}.error-dismiss.svelte-1oad7o0:hover{background:#dc26261a}.history-toggle-btn.svelte-1oad7o0{position:fixed;top:120px;right:var(--spacing-6, 1.5rem);width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:var(--termo-brand-primary);border:none;border-radius:50%;font-size:20px;cursor:pointer;box-shadow:var(--termo-shadow-lg);transition:all .2s;z-index:100}.history-toggle-btn.svelte-1oad7o0:hover{background:var(--termo-brand-primary-hover);transform:scale(1.05)}.history-overlay.svelte-1oad7o0{position:fixed;inset:0;background:#0006;z-index:998;animation:svelte-1oad7o0-fadeIn .2s ease-out}@keyframes svelte-1oad7o0-fadeIn{0%{opacity:0}to{opacity:1}}.history-sidebar.svelte-1oad7o0{position:fixed;top:0;right:0;width:2var(--spacing-20,5rem);height:var(--oasi-viewport-height, 100vh);background:var(--termo-surface-card);border-left:1px solid var(--termo-border-default);display:flex;flex-direction:column;transform:translate(100%);transition:transform .3s ease-out;z-index:999;box-shadow:var(--termo-shadow-xl)}.history-sidebar.open.svelte-1oad7o0{transform:translate(0)}.history-header.svelte-1oad7o0{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--termo-border-default);background:var(--termo-surface-elevated)}.history-title.svelte-1oad7o0{font-size:1rem;font-weight:700;color:var(--termo-text-primary);margin:0}.new-chat-btn.svelte-1oad7o0{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:var(--termo-brand-primary);border:none;border-radius:6px;color:var(--termo-text-inverse);cursor:pointer;transition:all .15s}.new-chat-btn.svelte-1oad7o0:hover{background:var(--termo-brand-primary-hover)}.history-content.svelte-1oad7o0{flex:1;overflow-y:auto;padding:1rem 0}.history-section-title.svelte-1oad7o0{font-size:.75rem;font-weight:600;color:var(--termo-text-secondary);margin:0 0 .75rem;padding:0 1.25rem;text-transform:uppercase;letter-spacing:.05em}.history-list.svelte-1oad7o0{display:flex;flex-direction:column}.history-item.svelte-1oad7o0{position:relative;display:flex;align-items:center;padding:0 .75rem;margin-bottom:.25rem}.history-item.active.svelte-1oad7o0{background:var(--termo-surface-highlight)}.history-item-btn.svelte-1oad7o0{flex:1;display:block;width:100%;text-align:left;background:transparent;border:none;border-radius:8px;cursor:pointer;transition:background .15s;padding:.75rem}.history-item-btn.svelte-1oad7o0:hover{background:var(--termo-surface-muted)}.history-item.active.svelte-1oad7o0 .history-item-btn:where(.svelte-1oad7o0){background:var(--termo-surface-highlight)}.history-item-content.svelte-1oad7o0{display:flex;flex-direction:column;gap:.25rem}.history-item-title.svelte-1oad7o0{font-size:.875rem;font-weight:500;color:var(--termo-text-primary);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.history-item-time.svelte-1oad7o0{font-size:.75rem;color:var(--termo-text-secondary)}.history-item-delete.svelte-1oad7o0{position:absolute;right:1rem;top:50%;transform:translateY(-50%);width:28px;height:28px;display:none;align-items:center;justify-content:center;background:var(--termo-surface-elevated);border:1px solid var(--termo-border-default);border-radius:6px;color:var(--termo-text-secondary);cursor:pointer;transition:all .15s}.history-item.svelte-1oad7o0:hover .history-item-delete:where(.svelte-1oad7o0){display:flex}.history-item-delete.svelte-1oad7o0:hover{background:#fef2f2;border-color:#fca5a5;color:#dc2626}.history-empty.svelte-1oad7o0{padding:2rem 1.25rem;text-align:center}.history-empty.svelte-1oad7o0 p:where(.svelte-1oad7o0){font-size:.875rem;color:var(--termo-text-secondary);margin:0}.history-footer.svelte-1oad7o0{padding:1rem 1.25rem;border-top:1px solid var(--termo-border-default);background:var(--termo-surface-elevated)}.clear-history-btn.svelte-1oad7o0{width:100%;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.625rem 1rem;background:transparent;border:1px solid var(--termo-border-default);border-radius:8px;color:var(--termo-text-secondary);font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s}.clear-history-btn.svelte-1oad7o0:hover:not(:disabled){background:#fef2f2;border-color:#fca5a5;color:#dc2626}.clear-history-btn.svelte-1oad7o0:disabled{opacity:.5;cursor:not-allowed}@media(max-width:768px){.history-toggle-btn.svelte-1oad7o0{top:var(--spacing-20, 5rem);right:var(--spacing-4, 1rem);width:44px;height:44px;font-size:18px}.history-sidebar.svelte-1oad7o0{width:100%;max-width:320px}.history-overlay.svelte-1oad7o0{display:block}}.history-content.svelte-1oad7o0::-webkit-scrollbar{width:6px}.history-content.svelte-1oad7o0::-webkit-scrollbar-track{background:transparent}.history-content.svelte-1oad7o0::-webkit-scrollbar-thumb{background:var(--termo-border-default);border-radius:3px}.history-content.svelte-1oad7o0::-webkit-scrollbar-thumb:hover{background:var(--termo-border-strong)}
