.ai-assistant-toggle{position:fixed;bottom:2rem;right:2rem;width:56px;height:56px;border-radius:50%;background:var(--fab-bg, var(--color-primary));color:var(--fab-color, white);border:none;cursor:pointer;box-shadow:0 4px 12px #00000026;display:flex;align-items:center;justify-content:center;z-index:1000;transition:transform .2s,box-shadow .2s}.ai-assistant-toggle:hover:not(:disabled){transform:scale(1.1);box-shadow:0 6px 16px #0003}.ai-assistant-toggle:disabled{opacity:.5;cursor:not-allowed}.ai-assistant{position:fixed;bottom:2rem;right:2rem;width:400px;max-width:calc(100vw - 4rem);height:600px;max-height:calc(100vh - 4rem);background:var(--color-surface, #ffffff);border:1px solid var(--color-border, #e5e7eb);border-radius:var(--radius-lg, 12px);box-shadow:0 20px 60px #0000004d;display:flex;flex-direction:column;z-index:1001;overflow:hidden}.ai-assistant-header{display:flex;justify-content:space-between;align-items:center;padding:1rem;border-bottom:1px solid var(--color-border, #e5e7eb);background:var(--color-bg, #f9fafb)}.ai-assistant-header h3{margin:0;font-size:1.1rem;font-weight:600;color:var(--color-text, #111827)}.ai-assistant-header-actions{display:flex;align-items:center;gap:.5rem}.ai-assistant-back-immersive{background:none;border:none;font-size:.85rem;font-weight:500;color:var(--color-primary, #667eea);cursor:pointer;padding:.25rem .5rem;text-decoration:none;white-space:nowrap;transition:color .2s}.ai-assistant-back-immersive:hover{color:var(--color-primary-hover, #5a67d8);text-decoration:underline}.close-button{background:none;border:none;font-size:1.5rem;color:var(--color-text-secondary, #6b7280);cursor:pointer;padding:.25rem .5rem;line-height:1;transition:color .2s}.close-button:hover{color:var(--color-text, #111827)}.ai-assistant-messages{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:1rem}.welcome-message{padding:1rem;text-align:center;color:var(--color-text-secondary, #6b7280)}.message{display:flex;flex-direction:column;gap:.25rem;max-width:80%}.message-user{align-self:flex-end}.message-assistant{align-self:flex-start}.message-content{padding:.75rem 1rem;border-radius:var(--radius-md, 8px);word-wrap:break-word}.message-user .message-content{background:var(--color-primary, #3b82f6);color:#fff}.message-assistant .message-content{background:var(--color-bg, #f9fafb);color:var(--color-text, #111827);border:1px solid var(--color-border, #e5e7eb);display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;flex-wrap:wrap}.message-assistant .message-content :global(p){margin:0 0 .5em}.message-assistant .message-content :global(p:last-child){margin-bottom:0}.message-assistant .message-content :global(ul),.message-assistant .message-content :global(ol){margin:.5em 0;padding-left:1.25em}.message-assistant .message-content :global(h2),.message-assistant .message-content :global(h3){margin:.75em 0 .25em;font-size:1rem;font-weight:600}.message-assistant .message-content :global(strong){font-weight:600}.message-assistant .message-content .loading-text{font-size:.875rem;color:var(--color-text-secondary, #6b7280);font-style:italic}.message-navigation-button{margin-top:.5rem;padding:.375rem .75rem;background:var(--color-primary, #3b82f6);color:#fff;border:none;border-radius:var(--radius-sm, 4px);font-size:.8125rem;font-weight:500;cursor:pointer;transition:background .2s;width:100%;text-align:center}.message-navigation-button:hover{background:var(--color-primary-dark, #2563eb)}.message-time{font-size:.75rem;color:var(--color-text-secondary, #6b7280);padding:0 .5rem}.ai-assistant-error{padding:.75rem 1rem;background:var(--color-danger, #ef4444);color:#fff;display:flex;justify-content:space-between;align-items:center;font-size:.875rem}.ai-assistant-error button{background:#fff3;border:none;color:#fff;padding:.25rem .5rem;border-radius:var(--radius-sm, 4px);cursor:pointer;font-size:.875rem}.ai-assistant-input{display:flex;gap:.5rem;padding:1rem;border-top:1px solid var(--color-border, #e5e7eb);background:var(--color-bg, #f9fafb)}.ai-assistant-input textarea{flex:1;padding:.75rem;border:1px solid var(--color-border, #e5e7eb);border-radius:var(--radius-md, 8px);resize:none;font-family:inherit;font-size:.875rem;background:var(--color-surface, #ffffff);color:var(--color-text, #111827)}.ai-assistant-input textarea:disabled{opacity:.5;cursor:not-allowed}.send-button{padding:.75rem 1.5rem;background:var(--color-primary, #3b82f6);color:#fff;border:none;border-radius:var(--radius-md, 8px);cursor:pointer;font-weight:500;transition:background .2s}.send-button:hover:not(:disabled){background:var(--color-primary-dark, #2563eb)}.send-button:disabled{opacity:.5;cursor:not-allowed}@media (max-width: 768px){.ai-assistant{width:calc(100vw - 2rem);height:calc(100vh - 2rem);bottom:1rem;right:1rem}.ai-assistant-toggle{bottom:1rem;right:1rem}}.ai-suggestion-toast{position:fixed;top:1rem;right:1rem;max-width:400px;min-width:320px;background:var(--color-surface, #ffffff);border:1px solid var(--color-border, #e5e7eb);border-left:4px solid var(--color-primary, #3b82f6);border-radius:var(--radius-lg, 12px);box-shadow:0 8px 24px #0000001f;z-index:1000;animation:slideInRight .3s ease-out;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}@keyframes slideInRight{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}.ai-suggestion-toast-content{display:flex;gap:.75rem;padding:1rem;align-items:flex-start}.ai-suggestion-icon{font-size:1.5rem;line-height:1;flex-shrink:0}.ai-suggestion-text{flex:1;min-width:0}.ai-suggestion-title{margin:0 0 .25rem;font-size:.9375rem;font-weight:600;color:var(--color-text, #111827);line-height:1.3}.ai-suggestion-description{margin:0;font-size:.8125rem;color:var(--color-text-secondary, #6b7280);line-height:1.4}.ai-suggestion-close{background:none;border:none;color:var(--color-text-secondary, #6b7280);font-size:1.25rem;line-height:1;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:var(--border-radius-sm);transition:all .2s;flex-shrink:0}.ai-suggestion-close:hover{background:var(--color-bg, #f9fafb);color:var(--color-text, #111827)}.ai-suggestion-toast-actions{display:flex;gap:.5rem;padding:0 1rem 1rem;justify-content:flex-end}.ai-suggestion-button{padding:.5rem 1rem;border:1px solid var(--color-border, #e5e7eb);border-radius:var(--border-radius-sm);background:var(--color-surface, #ffffff);color:var(--color-text, #111827);cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s}.ai-suggestion-button.accept{background:var(--color-primary, #3b82f6);color:#fff;border-color:var(--color-primary, #3b82f6)}.ai-suggestion-button.accept:hover{background:var(--color-primary-dark, #2563eb)}.ai-suggestion-button.dismiss:hover{background:var(--color-bg, #f9fafb)}.ai-suggestion-button.new{background:transparent;color:var(--color-primary, #3b82f6);border-color:var(--color-primary, #3b82f6)}.ai-suggestion-button.new:hover{background:var(--color-primary, #3b82f6);color:#fff}.ai-debug-panel{position:fixed;background:#0f172af2;color:#e2e8f0;padding:.75rem;font-size:.7rem;z-index:9998;border-radius:var(--radius-md, 8px);max-width:280px;min-width:200px;font-family:Monaco,Menlo,Courier New,monospace;box-shadow:0 4px 12px #0006;border:1px solid rgba(148,163,184,.2);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);line-height:1.4;cursor:move;-webkit-user-select:none;user-select:none;transition:opacity .2s,transform .2s}.ai-debug-panel.dragging{opacity:.8;transform:scale(.98);cursor:grabbing}.ai-debug-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;padding-bottom:.5rem;border-bottom:1px solid rgba(148,163,184,.3);cursor:move}.ai-debug-title{font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.5px;color:#cbd5e1}.ai-debug-header-actions{display:flex;align-items:center;gap:.5rem}.ai-debug-close-button{background:none;border:none;color:#94a3b899;font-size:1.2rem;line-height:1;cursor:pointer;padding:.25rem;transition:color .2s;display:flex;align-items:center;justify-content:center}.ai-debug-close-button:hover{color:#cbd5e1}.ai-debug-tabs-container{margin-bottom:.75rem;border-bottom:1px solid rgba(148,163,184,.2);overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,.3) transparent}.ai-debug-tabs-container::-webkit-scrollbar{height:4px}.ai-debug-tabs-container::-webkit-scrollbar-track{background:transparent}.ai-debug-tabs-container::-webkit-scrollbar-thumb{background:#94a3b84d;border-radius:2px}.ai-debug-tabs-container::-webkit-scrollbar-thumb:hover{background:#94a3b880}.ai-debug-tabs{display:flex;gap:.15rem;min-width:max-content}.ai-debug-tab{background:none!important;border:none!important;color:#94a3b899!important;font-size:.65rem;padding:.35rem .5rem;cursor:pointer;border-bottom:2px solid transparent;transition:all .2s;display:flex;align-items:center;gap:.25rem;white-space:nowrap;flex-shrink:0}.ai-debug-tab:hover{color:#cbd5e1!important}.ai-debug-tab.active{color:#4ade80!important;border-bottom-color:#4ade80!important}.ai-debug-tab-icon{font-size:.75rem;line-height:1;color:inherit!important}.ai-debug-tab-label{font-size:.65rem;text-transform:uppercase;letter-spacing:.3px;color:inherit!important}.ai-debug-content{max-height:300px;overflow-y:auto}.ai-debug-section{display:flex;flex-direction:column;gap:.5rem}.ai-debug-select{appearance:none;-webkit-appearance:none;-moz-appearance:none;min-width:8rem;padding:.2rem 1.5rem .2rem .4rem;background:#94a3b833;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .35rem center;color:#cbd5e1;border:1px solid rgba(148,163,184,.3);border-radius:var(--border-radius-sm);font-size:.75rem;font-family:Monaco,Menlo,Courier New,monospace;cursor:pointer}.ai-debug-select:hover{background:#94a3b84d;border-color:#94a3b880}.ai-debug-select:focus{outline:2px solid rgba(148,163,184,.5);outline-offset:1px}.ai-debug-select option{background:#0f172afa;color:#cbd5e1}.ai-debug-subsection{display:flex;flex-direction:column;gap:.25rem;padding:.5rem 0;border-bottom:1px solid rgba(148,163,184,.1)}.ai-debug-subsection:last-child{border-bottom:none}.ai-debug-subsection-title{font-size:.7rem;font-weight:600;color:#94a3b8cc;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.25rem}.ai-debug-drag-handle{font-size:.875rem;color:#94a3b899;cursor:grab;-webkit-user-select:none;user-select:none;line-height:1;letter-spacing:-2px}.ai-debug-drag-handle:active{cursor:grabbing}.ai-debug-item{margin:.25rem 0;display:flex;justify-content:space-between;align-items:center;gap:.5rem;color:#cbd5e1}.ai-debug-item>span:last-of-type{flex:1;text-align:right;display:flex;align-items:center;justify-content:flex-end;gap:.5rem}.ai-debug-item span{color:#4ade80;font-weight:500;text-shadow:0 0 4px rgba(74,222,128,.3)}.ai-debug-item-label{font-size:.75rem;font-weight:400;color:#cbd5e1;cursor:pointer;flex-shrink:0}.ai-debug-item-label--row{display:flex;justify-content:space-between;align-items:center;gap:.5rem;width:100%}.ai-debug-item-label .ai-debug-item-label-text{flex-shrink:0;color:#cbd5e1;font-weight:400;text-transform:none;text-shadow:none;letter-spacing:normal}.ai-debug-toggle-wrap{display:inline-flex;align-items:center;flex-shrink:0}.ai-debug-toggle-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.ai-debug-toggle-track{display:inline-block;width:2.25rem;height:1.125rem;flex-shrink:0;border-radius:999px;background:#94a3b833;border:1px solid rgba(148,163,184,.3);cursor:pointer;position:relative;transition:background .2s ease,border-color .2s ease}.ai-debug-toggle-track:after{content:"";position:absolute;left:2px;top:2px;width:calc(1.125rem - 4px);height:calc(1.125rem - 4px);border-radius:50%;background:#94a3b8;transition:transform .2s ease,background .2s ease}.ai-debug-toggle-input:hover+.ai-debug-toggle-track{background:#94a3b84d;border-color:#94a3b880}.ai-debug-toggle-input:focus-visible+.ai-debug-toggle-track{outline:2px solid rgba(148,163,184,.5);outline-offset:1px}.ai-debug-toggle-input:checked+.ai-debug-toggle-track{background:#4ade8059;border-color:#4ade80}.ai-debug-toggle-input:checked+.ai-debug-toggle-track:after{transform:translate(calc(2.25rem - 100% - 4px));background:#4ade80;box-shadow:0 0 6px #4ade8066}.ai-debug-action-button{background:#94a3b833;border:1px solid rgba(148,163,184,.3);border-radius:var(--border-radius-sm);color:#cbd5e1;cursor:pointer;padding:.2rem .4rem;font-size:.75rem;line-height:1;transition:all .2s;display:inline-flex;align-items:center;justify-content:center;margin-left:.25rem}.ai-debug-action-button:hover:not(:disabled){background:#94a3b84d;border-color:#94a3b880;transform:scale(1.1)}.ai-debug-action-button:disabled{opacity:.4;cursor:not-allowed}.ai-debug-prompt{margin-top:.5rem;padding-top:.5rem;border-top:1px solid rgba(148,163,184,.2)}.ai-debug-prompt-value{color:#94a3b8;font-size:.65rem;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:help}.ai-debug-json{margin:.5rem 0 0;padding:.5rem;background:var(--gray-50, #f8fafc);border:1px solid var(--gray-200, #e2e8f0);border-radius:var(--border-radius-sm);font-size:.75rem;font-family:Monaco,Menlo,Courier New,monospace;color:var(--gray-800, #1e293b);max-height:200px;overflow-y:auto;white-space:pre-wrap;word-break:break-word}.ai-question-badge{position:fixed;bottom:5.5rem;right:1rem;z-index:999}.ai-question-badge.expanded{z-index:1001}.ai-question-badge-trigger{display:flex;align-items:center;gap:0;padding:.625rem;background:var(--color-secondary, #10b981);color:#fff;border:none;border-radius:var(--radius-full, 9999px);cursor:pointer;font-weight:500;font-size:.875rem;box-shadow:0 4px 12px #10b9814d;transition:all .3s ease;width:48px;height:48px;justify-content:center;overflow:hidden;position:relative;animation:pulse 2s ease-in-out infinite}.ai-question-badge-trigger.hovered{width:auto;padding:.625rem 1rem;gap:.5rem}.ai-question-badge-text{white-space:nowrap;opacity:0;transform:translate(-10px);transition:opacity .3s ease,transform .3s ease;max-width:0;overflow:hidden}.ai-question-badge-trigger.hovered .ai-question-badge-text{opacity:1;transform:translate(0);max-width:200px}.ai-question-badge-trigger:hover:not(:disabled){background:var(--color-secondary-dark, #059669);transform:translateY(-2px);box-shadow:0 6px 16px #10b98166}@keyframes pulse{0%,to{transform:scale(1);box-shadow:0 4px 12px #10b9814d}50%{transform:scale(1.05);box-shadow:0 6px 16px #10b98180}}.ai-question-badge-trigger:disabled{opacity:.6;cursor:not-allowed}.ai-question-icon{font-size:1.125rem;line-height:1}.ai-question-badge-text{white-space:nowrap}.ai-question-popup{position:absolute;bottom:calc(100% + .5rem);right:0;width:320px;background:var(--color-surface, #ffffff);border:1px solid var(--color-border, #e5e7eb);border-radius:var(--radius-lg, 12px);box-shadow:0 8px 24px #0000001f;padding:1rem;animation:slideUp .2s ease-out;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.ai-question-popup-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;padding-bottom:.75rem;border-bottom:1px solid var(--color-border, #e5e7eb)}.ai-question-popup-header h4{margin:0;font-size:.9375rem;font-weight:600;color:var(--color-text, #111827)}.ai-question-close{background:none;border:none;color:var(--color-text-secondary, #6b7280);font-size:1.25rem;line-height:1;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm, 4px);transition:all .2s}.ai-question-close:hover{background:var(--color-bg, #f9fafb);color:var(--color-text, #111827)}.ai-question-text{font-size:.9375rem;font-weight:500;color:var(--color-text, #111827);line-height:1.6;margin:0 0 .75rem;padding:.75rem;background:var(--color-bg, #f9fafb);border-left:3px solid var(--color-primary, #3b82f6);border-radius:var(--radius-sm, 4px)}.ai-question-category{display:inline-block;padding:.25rem .75rem;background:var(--color-primary, #3b82f6);color:#fff;border-radius:var(--radius-full, 9999px);font-size:.75rem;font-weight:500;text-transform:capitalize}.ai-question-popup-actions{display:flex;gap:.5rem;justify-content:flex-end;margin-top:.75rem}.ai-question-button{padding:.5rem 1rem;border:1px solid var(--color-border, #e5e7eb);border-radius:var(--radius-sm, 4px);background:var(--color-surface, #ffffff);color:var(--color-text, #111827);cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s}.ai-question-button.dismiss:hover{background:var(--color-bg, #f9fafb)}.ai-question-button.new{background:var(--color-primary, #3b82f6);color:#fff;border-color:var(--color-primary, #3b82f6)}.ai-question-button.new:hover{background:var(--color-primary-dark, #2563eb)}.toast.svelte-17ms9yv{position:fixed;top:1rem;right:1rem;min-width:300px;max-width:500px;background:var(--layout-surface, #ffffff);border:1px solid var(--toast-border);border-left:4px solid var(--toast-border);border-radius:var(--border-radius-md, 8px);box-shadow:0 4px 12px #00000026;z-index:1000;opacity:0;transform:translate(100%);transition:opacity .3s ease-out,transform .3s ease-out}.toast-visible.svelte-17ms9yv{opacity:1;transform:translate(0)}.toast-content.svelte-17ms9yv{display:flex;align-items:center;gap:.75rem;padding:1rem 1.25rem}.toast-icon.svelte-17ms9yv{font-size:1.25rem;line-height:1;flex-shrink:0}.toast-message.svelte-17ms9yv{flex:1;font-size:.9375rem;font-weight:500;color:var(--theme-text, #111827);line-height:1.4}.toast-close.svelte-17ms9yv{background:none;border:none;color:var(--theme-text-secondary, #6b7280);font-size:1.5rem;line-height:1;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:var(--border-radius-sm, 4px);transition:all .2s;flex-shrink:0}.toast-close.svelte-17ms9yv:hover{background:var(--theme-bg, #f9fafb);color:var(--theme-text, #111827)}@media (max-width: 640px){.toast.svelte-17ms9yv{right:.5rem;left:.5rem;min-width:auto;max-width:none}}.toast-container.svelte-r5t6lc{position:fixed;top:1rem;right:1rem;z-index:1000;display:flex;flex-direction:column;gap:.5rem;pointer-events:none}.toast-container.svelte-r5t6lc .toast{pointer-events:auto}
