.thor-chat,.thor-chat[data-theme=light]{--thor-chat-background:#f3f8fa;--thor-chat-foreground:#111c22;--thor-chat-card:#fdffff;--thor-chat-card-foreground:#111c22;--thor-chat-popover:#fdffff;--thor-chat-popover-foreground:#111c22;--thor-chat-primary:#246d85;--thor-chat-primary-foreground:#f7fbfd;--thor-chat-secondary:#e9f2f5;--thor-chat-secondary-foreground:#182c35;--thor-chat-muted:#ebf1f4;--thor-chat-muted-foreground:#58666c;--thor-chat-accent:#e3eff4;--thor-chat-accent-foreground:#112d38;--thor-chat-destructive:#e7000b;--thor-chat-destructive-foreground:#fff;--thor-chat-success:#047857;--thor-chat-success-foreground:#fff;--thor-chat-warning:#b45309;--thor-chat-warning-foreground:#fff;--thor-chat-info:#1d4ed8;--thor-chat-info-foreground:#fff;--thor-chat-border:#dce2e5;--thor-chat-input:#d4dce0;--thor-chat-ring:#4b90ab;--thor-chat-radius-sm:.45rem;--thor-chat-radius-md:.6rem;--thor-chat-radius-lg:.75rem;--thor-chat-font-sans:ui-sans-serif, system-ui, sans-serif;--thor-chat-font-mono:ui-monospace, SFMono-Regular, monospace;--thor-chat-font-size-base:1rem;--thor-chat-font-size-xs:.75rem;--thor-chat-font-size-sm:.875rem;--thor-chat-font-size-lg:1rem;--thor-chat-font-size-min:.75rem;--thor-chat-line-height:1.5;--thor-chat-line-height-prose:1.6;--thor-chat-font-weight-body:400;--thor-chat-font-weight-title:600;--thor-chat-space-1:.25rem;--thor-chat-space-2:.5rem;--thor-chat-space-3:.75rem;--thor-chat-space-4:1rem;--thor-chat-space-5:1.25rem;--thor-chat-space-6:1.5rem;--thor-chat-touch-target:2.75rem;--thor-chat-bubble-max-width:42rem;--thor-chat-bubble-max-ratio:.85;--thor-chat-bubble-padding-y:.625rem;--thor-chat-bubble-padding-x:.875rem;--thor-chat-bubble-radius:var(--thor-chat-radius-lg);--thor-chat-bubble-user-background:var(--thor-chat-primary);--thor-chat-bubble-user-foreground:var(--thor-chat-primary-foreground);--thor-chat-bubble-user-border:#0000;--thor-chat-bubble-assistant-background:var(--thor-chat-card);--thor-chat-bubble-assistant-foreground:var(--thor-chat-card-foreground);--thor-chat-bubble-assistant-border:var(--thor-chat-border);--thor-chat-composer-padding:var(--thor-chat-space-3);--thor-chat-composer-min-height:var(--thor-chat-touch-target);--thor-chat-composer-input-padding-y:.625rem;--thor-chat-composer-input-padding-x:.75rem;--thor-chat-header-min-height:var(--thor-chat-touch-target);--thor-chat-header-padding-y:.5rem;--thor-chat-header-padding-x:.75rem;--thor-chat-header-background:var(--thor-chat-card);--thor-chat-header-foreground:var(--thor-chat-card-foreground);--thor-chat-header-border:var(--thor-chat-border);--thor-chat-header-title-size:1rem;--thor-chat-header-subtitle-size:.8125rem;--thor-chat-action-padding-y:.75rem;--thor-chat-action-padding-x:.875rem;--thor-chat-action-title-size:.9375rem;--thor-chat-button-padding-x:.875rem;--thor-chat-thinking-padding-y:.875rem;--thor-chat-action-step-padding-x:.625rem;--thor-chat-focus-ring-width:2px;--thor-chat-focus-ring-offset:2px;--thor-chat-quote-border-width:2px;--thor-chat-link-underline-offset:4px;--thor-chat-action-accent-width:4px;--thor-chat-scroll-latest-shadow-y:2px;--thor-chat-scroll-latest-shadow-blur:8px;--thor-chat-scroll-latest-shadow-color:#0000001f;--thor-chat-sidebar-min-width:12rem;--thor-chat-sidebar-max-width:18rem}.thor-chat[data-theme=dark]{--thor-chat-background:#0a1014;--thor-chat-foreground:#eef3f5;--thor-chat-card:#121a1e;--thor-chat-card-foreground:#eef3f5;--thor-chat-popover:#161e22;--thor-chat-popover-foreground:#eef3f5;--thor-chat-primary:#64b8d2;--thor-chat-primary-foreground:#081319;--thor-chat-secondary:#1f282d;--thor-chat-secondary-foreground:#eef3f5;--thor-chat-muted:#1d252a;--thor-chat-muted-foreground:#98a8ae;--thor-chat-accent:#1e2e35;--thor-chat-accent-foreground:#eef3f5;--thor-chat-destructive:#ff6467;--thor-chat-destructive-foreground:#450a0a;--thor-chat-success:#34d399;--thor-chat-success-foreground:#022c22;--thor-chat-warning:#fbbf24;--thor-chat-warning-foreground:#451a03;--thor-chat-info:#60a5fa;--thor-chat-info-foreground:#172554;--thor-chat-border:#c1d1d81f;--thor-chat-input:#c1d1d829;--thor-chat-ring:#438ba2;--thor-chat-radius-sm:.45rem;--thor-chat-radius-md:.6rem;--thor-chat-radius-lg:.75rem;--thor-chat-font-sans:ui-sans-serif, system-ui, sans-serif;--thor-chat-font-mono:ui-monospace, SFMono-Regular, monospace;--thor-chat-font-size-base:1rem;--thor-chat-font-size-xs:.75rem;--thor-chat-font-size-sm:.875rem;--thor-chat-font-size-lg:1rem;--thor-chat-font-size-min:.75rem;--thor-chat-line-height:1.5;--thor-chat-line-height-prose:1.6;--thor-chat-font-weight-body:400;--thor-chat-font-weight-title:600;--thor-chat-space-1:.25rem;--thor-chat-space-2:.5rem;--thor-chat-space-3:.75rem;--thor-chat-space-4:1rem;--thor-chat-space-5:1.25rem;--thor-chat-space-6:1.5rem;--thor-chat-touch-target:2.75rem;--thor-chat-bubble-max-width:42rem;--thor-chat-bubble-max-ratio:.85;--thor-chat-bubble-padding-y:.625rem;--thor-chat-bubble-padding-x:.875rem;--thor-chat-bubble-radius:var(--thor-chat-radius-lg);--thor-chat-bubble-user-background:var(--thor-chat-primary);--thor-chat-bubble-user-foreground:var(--thor-chat-primary-foreground);--thor-chat-bubble-user-border:#0000;--thor-chat-bubble-assistant-background:var(--thor-chat-card);--thor-chat-bubble-assistant-foreground:var(--thor-chat-card-foreground);--thor-chat-bubble-assistant-border:var(--thor-chat-border);--thor-chat-composer-padding:var(--thor-chat-space-3);--thor-chat-composer-min-height:var(--thor-chat-touch-target);--thor-chat-composer-input-padding-y:.625rem;--thor-chat-composer-input-padding-x:.75rem;--thor-chat-header-min-height:var(--thor-chat-touch-target);--thor-chat-header-padding-y:.5rem;--thor-chat-header-padding-x:.75rem;--thor-chat-header-background:var(--thor-chat-card);--thor-chat-header-foreground:var(--thor-chat-card-foreground);--thor-chat-header-border:var(--thor-chat-border);--thor-chat-header-title-size:1rem;--thor-chat-header-subtitle-size:.8125rem;--thor-chat-action-padding-y:.75rem;--thor-chat-action-padding-x:.875rem;--thor-chat-action-title-size:.9375rem;--thor-chat-button-padding-x:.875rem;--thor-chat-thinking-padding-y:.875rem;--thor-chat-action-step-padding-x:.625rem;--thor-chat-focus-ring-width:2px;--thor-chat-focus-ring-offset:2px;--thor-chat-quote-border-width:2px;--thor-chat-link-underline-offset:4px;--thor-chat-action-accent-width:4px;--thor-chat-scroll-latest-shadow-y:2px;--thor-chat-scroll-latest-shadow-blur:8px;--thor-chat-scroll-latest-shadow-color:#0000001f;--thor-chat-sidebar-min-width:12rem;--thor-chat-sidebar-max-width:18rem}@media (prefers-color-scheme:dark){.thor-chat:not([data-theme=light]){--thor-chat-background:#0a1014;--thor-chat-foreground:#eef3f5;--thor-chat-card:#121a1e;--thor-chat-card-foreground:#eef3f5;--thor-chat-popover:#161e22;--thor-chat-popover-foreground:#eef3f5;--thor-chat-primary:#64b8d2;--thor-chat-primary-foreground:#081319;--thor-chat-secondary:#1f282d;--thor-chat-secondary-foreground:#eef3f5;--thor-chat-muted:#1d252a;--thor-chat-muted-foreground:#98a8ae;--thor-chat-accent:#1e2e35;--thor-chat-accent-foreground:#eef3f5;--thor-chat-destructive:#ff6467;--thor-chat-destructive-foreground:#450a0a;--thor-chat-success:#34d399;--thor-chat-success-foreground:#022c22;--thor-chat-warning:#fbbf24;--thor-chat-warning-foreground:#451a03;--thor-chat-info:#60a5fa;--thor-chat-info-foreground:#172554;--thor-chat-border:#c1d1d81f;--thor-chat-input:#c1d1d829;--thor-chat-ring:#438ba2;--thor-chat-radius-sm:.45rem;--thor-chat-radius-md:.6rem;--thor-chat-radius-lg:.75rem;--thor-chat-font-sans:ui-sans-serif, system-ui, sans-serif;--thor-chat-font-mono:ui-monospace, SFMono-Regular, monospace;--thor-chat-font-size-base:1rem;--thor-chat-font-size-xs:.75rem;--thor-chat-font-size-sm:.875rem;--thor-chat-font-size-lg:1rem;--thor-chat-font-size-min:.75rem;--thor-chat-line-height:1.5;--thor-chat-line-height-prose:1.6;--thor-chat-font-weight-body:400;--thor-chat-font-weight-title:600;--thor-chat-space-1:.25rem;--thor-chat-space-2:.5rem;--thor-chat-space-3:.75rem;--thor-chat-space-4:1rem;--thor-chat-space-5:1.25rem;--thor-chat-space-6:1.5rem;--thor-chat-touch-target:2.75rem;--thor-chat-bubble-max-width:42rem;--thor-chat-bubble-max-ratio:.85;--thor-chat-bubble-padding-y:.625rem;--thor-chat-bubble-padding-x:.875rem;--thor-chat-bubble-radius:var(--thor-chat-radius-lg);--thor-chat-bubble-user-background:var(--thor-chat-primary);--thor-chat-bubble-user-foreground:var(--thor-chat-primary-foreground);--thor-chat-bubble-user-border:#0000;--thor-chat-bubble-assistant-background:var(--thor-chat-card);--thor-chat-bubble-assistant-foreground:var(--thor-chat-card-foreground);--thor-chat-bubble-assistant-border:var(--thor-chat-border);--thor-chat-composer-padding:var(--thor-chat-space-3);--thor-chat-composer-min-height:var(--thor-chat-touch-target);--thor-chat-composer-input-padding-y:.625rem;--thor-chat-composer-input-padding-x:.75rem;--thor-chat-header-min-height:var(--thor-chat-touch-target);--thor-chat-header-padding-y:.5rem;--thor-chat-header-padding-x:.75rem;--thor-chat-header-background:var(--thor-chat-card);--thor-chat-header-foreground:var(--thor-chat-card-foreground);--thor-chat-header-border:var(--thor-chat-border);--thor-chat-header-title-size:1rem;--thor-chat-header-subtitle-size:.8125rem;--thor-chat-action-padding-y:.75rem;--thor-chat-action-padding-x:.875rem;--thor-chat-action-title-size:.9375rem;--thor-chat-button-padding-x:.875rem;--thor-chat-thinking-padding-y:.875rem;--thor-chat-action-step-padding-x:.625rem;--thor-chat-focus-ring-width:2px;--thor-chat-focus-ring-offset:2px;--thor-chat-quote-border-width:2px;--thor-chat-link-underline-offset:4px;--thor-chat-action-accent-width:4px;--thor-chat-scroll-latest-shadow-y:2px;--thor-chat-scroll-latest-shadow-blur:8px;--thor-chat-scroll-latest-shadow-color:#0000001f;--thor-chat-sidebar-min-width:12rem;--thor-chat-sidebar-max-width:18rem}}.thor-chat[data-preset=compact]{--thor-chat-font-size-base:.875rem;--thor-chat-bubble-padding-y:.375rem;--thor-chat-bubble-padding-x:.625rem;--thor-chat-composer-padding:var(--thor-chat-space-2);--thor-chat-header-padding-y:.25rem;--thor-chat-header-title-size:.9375rem}.thor-chat[data-preset=drawer]{max-height:100vh}.thor-chat[data-preset=fullscreen]{height:100vh}@supports (height:100dvh){.thor-chat[data-preset=drawer]{max-height:var(--thor-chat-viewport-height,100dvh)}.thor-chat[data-preset=fullscreen]{height:var(--thor-chat-viewport-height,100dvh)}}.thor-chat{box-sizing:border-box;min-width:0;height:100%;min-height:0;font-family:var(--thor-chat-font-sans);font-size:var(--thor-chat-font-size-base);font-weight:var(--thor-chat-font-weight-body);color:var(--thor-chat-foreground);background:var(--thor-chat-background);flex-direction:column;display:flex}.thor-chat>.thor-chat-layout,.thor-chat>.thor-chat-main{flex:1;min-height:0}.thor-chat *,.thor-chat :before,.thor-chat :after{box-sizing:inherit}.thor-chat-sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.thor-chat-loading{gap:var(--thor-chat-space-2);padding:var(--thor-chat-space-4);flex-direction:column;display:flex}.thor-chat-skeleton{min-height:var(--thor-chat-touch-target);border-radius:var(--thor-chat-radius-md);background:var(--thor-chat-muted);animation:1.6s ease-in-out infinite thor-chat-pulse}@keyframes thor-chat-pulse{50%{opacity:.5}}@media (prefers-reduced-motion:reduce){.thor-chat-skeleton{animation:none}}.thor-chat-state{padding:var(--thor-chat-space-6) var(--thor-chat-space-4);text-align:center;color:var(--thor-chat-muted-foreground);margin:0}.thor-chat-day{align-items:center;gap:var(--thor-chat-space-3);font-size:max(var(--thor-chat-font-size-min), var(--thor-chat-font-size-xs));color:var(--thor-chat-muted-foreground);display:flex}.thor-chat-day:before,.thor-chat-day:after{content:"";border-top:1px solid var(--thor-chat-border);flex:1}.thor-chat-alert{justify-content:space-between;align-items:center;gap:var(--thor-chat-space-2);margin:var(--thor-chat-space-2) 0;padding:var(--thor-chat-space-3) var(--thor-chat-space-4);border:1px solid var(--thor-chat-destructive);border-radius:var(--thor-chat-radius-md);color:var(--thor-chat-destructive);flex-wrap:wrap;display:flex}.thor-chat-button{min-height:var(--thor-chat-touch-target);padding:var(--thor-chat-space-2) var(--thor-chat-button-padding-x);font:inherit;color:var(--thor-chat-secondary-foreground);background:var(--thor-chat-secondary);border:1px solid var(--thor-chat-border);border-radius:var(--thor-chat-radius-md);cursor:pointer;transition:background-color .15s,opacity .15s}.thor-chat-button:hover:not(:disabled){background:var(--thor-chat-accent);color:var(--thor-chat-accent-foreground)}.thor-chat-button:disabled{opacity:.5;cursor:not-allowed}.thor-chat-button-primary{color:var(--thor-chat-primary-foreground);background:var(--thor-chat-primary);border-color:#0000}.thor-chat-button-destructive{color:var(--thor-chat-destructive-foreground);background:var(--thor-chat-destructive);border-color:#0000}.thor-chat-button:focus-visible,.thor-chat-input:focus-visible{outline:var(--thor-chat-focus-ring-width) solid var(--thor-chat-ring);outline-offset:var(--thor-chat-focus-ring-offset)}.thor-chat-threads{gap:var(--thor-chat-space-2);padding:var(--thor-chat-space-2);flex-direction:column;margin:0;list-style:none;display:flex}.thor-chat-thread{width:100%;min-height:var(--thor-chat-touch-target);text-align:start;overflow-wrap:anywhere;flex-direction:column;align-items:flex-start;display:flex}.thor-chat-thread[aria-current=true]{color:var(--thor-chat-accent-foreground);background:var(--thor-chat-accent);border-color:var(--thor-chat-ring)}.thor-chat-messages{gap:var(--thor-chat-space-3);min-width:0;padding:var(--thor-chat-space-4);flex-direction:column;display:flex;overflow-y:auto}.thor-chat-scroll-sentinel{height:1px;margin-top:calc(-1 * var(--thor-chat-space-3));flex-shrink:0}.thor-chat-scroll-anchor{height:0;position:relative}.thor-chat-scroll-latest{bottom:var(--thor-chat-space-2);box-shadow:0 var(--thor-chat-scroll-latest-shadow-y) var(--thor-chat-scroll-latest-shadow-blur) var(--thor-chat-scroll-latest-shadow-color);border-radius:999px;position:absolute;left:50%;transform:translate(-50%)}.thor-chat-thinking{align-self:flex-start;gap:var(--thor-chat-space-1);padding:var(--thor-chat-thinking-padding-y) var(--thor-chat-space-4);background:var(--thor-chat-card);border:1px solid var(--thor-chat-border);border-radius:var(--thor-chat-radius-lg);display:inline-flex}.thor-chat-thinking-dot{width:calc(var(--thor-chat-space-1) * 1.5);height:calc(var(--thor-chat-space-1) * 1.5);background:var(--thor-chat-muted-foreground);border-radius:999px;animation:1.2s ease-in-out infinite thor-chat-thinking}.thor-chat-thinking-dot:nth-child(2){animation-delay:.2s}.thor-chat-thinking-dot:nth-child(3){animation-delay:.4s}@keyframes thor-chat-thinking{0%,to{opacity:.3}50%{opacity:1}}@media (prefers-reduced-motion:reduce){.thor-chat-thinking-dot{opacity:.6;animation:none}}.thor-chat-bubble{min-width:0;max-width:min(var(--thor-chat-bubble-max-width), calc(var(--thor-chat-bubble-max-ratio) * 100%));padding:var(--thor-chat-bubble-padding-y) var(--thor-chat-bubble-padding-x);color:var(--thor-chat-bubble-assistant-foreground);background:var(--thor-chat-bubble-assistant-background);border:1px solid var(--thor-chat-bubble-assistant-border);border-radius:var(--thor-chat-bubble-radius);overflow-wrap:anywhere;align-self:flex-start;transition:opacity .15s}.thor-chat-bubble[data-role=user]{color:var(--thor-chat-bubble-user-foreground);background:var(--thor-chat-bubble-user-background);border-color:var(--thor-chat-bubble-user-border);align-self:flex-end}.thor-chat-bubble[data-status=PENDING]{opacity:.7}.thor-chat-bubble[data-status=FAILED]{border-color:var(--thor-chat-destructive)}.thor-chat-text{white-space:pre-wrap;margin:0}.thor-chat-meta{align-items:center;gap:var(--thor-chat-space-2);margin-top:var(--thor-chat-space-1);font-size:max(var(--thor-chat-font-size-min), var(--thor-chat-font-size-xs));color:var(--thor-chat-muted-foreground);flex-wrap:wrap;display:flex}.thor-chat-bubble[data-role=user] .thor-chat-meta{color:inherit;opacity:.8}.thor-chat-markdown>:first-child{margin-top:0}.thor-chat-markdown>:last-child{margin-bottom:0}.thor-chat-markdown :is(p,ul,ol,blockquote,pre){margin:var(--thor-chat-space-2) 0;line-height:var(--thor-chat-line-height-prose)}.thor-chat-markdown :is(ul,ol){padding-inline-start:var(--thor-chat-space-5)}.thor-chat-markdown :is(h1,h2,h3){margin:var(--thor-chat-space-3) 0 var(--thor-chat-space-2);font-size:var(--thor-chat-font-size-lg);font-weight:var(--thor-chat-font-weight-title)}.thor-chat-markdown blockquote{color:var(--thor-chat-muted-foreground);border-inline-start:var(--thor-chat-quote-border-width) solid var(--thor-chat-border);padding-inline-start:var(--thor-chat-space-3)}.thor-chat-markdown a{color:var(--thor-chat-primary);text-underline-offset:var(--thor-chat-link-underline-offset);text-decoration:underline}.thor-chat-markdown code{font-family:var(--thor-chat-font-mono);font-size:.85em}.thor-chat-markdown pre{padding:var(--thor-chat-space-3);background:var(--thor-chat-background);border:1px solid var(--thor-chat-border);border-radius:var(--thor-chat-radius-md);overflow-x:auto}.thor-chat-table{margin:var(--thor-chat-space-2) 0;overflow-x:auto}.thor-chat-table table{width:100%;font-size:max(var(--thor-chat-font-size-min), var(--thor-chat-font-size-xs));border-collapse:collapse}.thor-chat-table :is(th,td){padding:var(--thor-chat-space-1) var(--thor-chat-space-2);text-align:start;border:1px solid var(--thor-chat-border)}.thor-chat-composer{gap:var(--thor-chat-space-1);padding:var(--thor-chat-composer-padding);border-top:1px solid var(--thor-chat-border);flex-direction:column;display:flex}.thor-chat-composer-line{align-items:flex-end;gap:var(--thor-chat-space-2);display:flex}.thor-chat-input{min-width:0;min-height:var(--thor-chat-composer-min-height);padding:var(--thor-chat-composer-input-padding-y) var(--thor-chat-composer-input-padding-x);font:inherit;line-height:var(--thor-chat-line-height);color:inherit;background:var(--thor-chat-background);border:1px solid var(--thor-chat-input);border-radius:var(--thor-chat-radius-md);resize:none;flex:1;overflow-y:hidden}.thor-chat-input:disabled{opacity:.6;cursor:not-allowed}.thor-chat-icon-button{min-width:var(--thor-chat-touch-target);min-height:var(--thor-chat-touch-target);flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.thor-chat-icon{flex:none;display:block}.thor-chat-composer-status{align-items:baseline;gap:var(--thor-chat-space-2);padding-inline:var(--thor-chat-space-1);flex-wrap:wrap;display:flex}.thor-chat-blocked{font-size:max(var(--thor-chat-font-size-min), var(--thor-chat-font-size-xs));color:var(--thor-chat-destructive);margin:0}.thor-chat-counter{font-size:max(var(--thor-chat-font-size-min), var(--thor-chat-font-size-xs));font-variant-numeric:tabular-nums;color:var(--thor-chat-muted-foreground);margin-inline-start:auto}.thor-chat-counter[data-limit=true]{color:var(--thor-chat-destructive)}.thor-chat-attachments{gap:var(--thor-chat-space-2);flex-direction:column;display:flex}.thor-chat-attach{justify-content:center;align-self:flex-start;align-items:center;display:inline-flex}.thor-chat-composer-line>.thor-chat-attach{align-self:flex-end}.thor-chat-attach[data-disabled=true]{opacity:.5;cursor:not-allowed}.thor-chat-attach:focus-within{outline:var(--thor-chat-focus-ring-width) solid var(--thor-chat-ring);outline-offset:var(--thor-chat-focus-ring-offset)}.thor-chat-attachment-list{gap:var(--thor-chat-space-1);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.thor-chat-attachment{align-items:center;gap:var(--thor-chat-space-2);padding:var(--thor-chat-space-1) var(--thor-chat-space-2);border:1px solid var(--thor-chat-border);border-radius:var(--thor-chat-radius-md);flex-wrap:wrap;display:flex}.thor-chat-attachment[data-status=FAILED]{border-color:var(--thor-chat-destructive)}.thor-chat-attachment-name{overflow-wrap:anywhere;min-width:0}.thor-chat-attachment-error{font-size:max(var(--thor-chat-font-size-min), var(--thor-chat-font-size-xs));color:var(--thor-chat-destructive)}.thor-chat-layout{flex-direction:column;min-width:0;height:100%;display:flex}.thor-chat-layout[data-layout=columns]{grid-template-columns:minmax(var(--thor-chat-sidebar-min-width), var(--thor-chat-sidebar-max-width)) minmax(0, 1fr);display:grid}.thor-chat-sidebar{gap:var(--thor-chat-space-2);min-width:0;padding:var(--thor-chat-space-2);border-inline-end:1px solid var(--thor-chat-border);flex-direction:column;display:flex}.thor-chat-header{align-items:center;gap:var(--thor-chat-space-2);min-width:0;padding:var(--thor-chat-header-padding-y) var(--thor-chat-header-padding-x);border-bottom:1px solid var(--thor-chat-header-border);background:var(--thor-chat-header-background);color:var(--thor-chat-header-foreground);display:flex}.thor-chat-header-leading{flex-shrink:0;align-items:center;display:flex}.thor-chat-header-text{flex:1;min-width:0}.thor-chat-header-title{font-size:var(--thor-chat-header-title-size);font-weight:var(--thor-chat-font-weight-title);text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.thor-chat-header-subtitle{font-size:var(--thor-chat-header-subtitle-size);color:var(--thor-chat-muted-foreground);text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.thor-chat-header-actions{align-items:center;gap:var(--thor-chat-space-1);flex-shrink:0;display:flex}.thor-chat-header-button{min-width:var(--thor-chat-touch-target);min-height:var(--thor-chat-header-min-height);justify-content:center;align-items:center;display:inline-flex}.thor-chat-panel{gap:var(--thor-chat-space-2);padding:var(--thor-chat-space-2);border-bottom:1px solid var(--thor-chat-border);flex-direction:column;display:flex}.thor-chat-panel .thor-chat-sidebar{border-inline-end:0;padding:0}.thor-chat-main{flex-direction:column;min-width:0;min-height:0;display:flex}.thor-chat-main>.thor-chat-messages{flex:1}.thor-chat-tools{gap:var(--thor-chat-space-2);padding:0 var(--thor-chat-space-3);flex-direction:column;display:flex}.thor-chat-tools[data-position=top]{padding-top:var(--thor-chat-space-3)}.thor-chat-mode{min-width:0;padding:var(--thor-chat-space-2) var(--thor-chat-space-3) 0;align-items:center;display:flex}.thor-chat-mode-label{min-width:0;padding:var(--thor-chat-space-1) var(--thor-chat-space-3);font-size:var(--thor-chat-font-size-sm);color:var(--thor-chat-secondary-foreground);background:var(--thor-chat-secondary);border:1px solid var(--thor-chat-border);border-radius:var(--thor-chat-radius-lg);overflow-wrap:anywhere}.thor-chat-mode-card{gap:var(--thor-chat-space-2);min-width:0;margin:0 var(--thor-chat-space-3);padding:var(--thor-chat-action-padding-y) var(--thor-chat-action-padding-x);color:var(--thor-chat-card-foreground);background:var(--thor-chat-card);border:1px solid var(--thor-chat-border);border-radius:var(--thor-chat-radius-lg);overflow-wrap:anywhere;flex-direction:column;display:flex}.thor-chat-mode-card-title{font-size:var(--thor-chat-action-title-size);font-weight:var(--thor-chat-font-weight-title);margin:0}.thor-chat-mode-card-error{font-size:var(--thor-chat-font-size-sm);color:var(--thor-chat-destructive);margin:0}.thor-chat-mode-card-actions{gap:var(--thor-chat-space-2);flex-wrap:wrap;display:flex}.thor-chat-mode-card-actions>.thor-chat-button{flex:auto;min-width:0}.thor-chat-quick-actions{gap:var(--thor-chat-space-2);flex-wrap:wrap;display:flex}.thor-chat-quick-actions>.thor-chat-button{min-height:var(--thor-chat-touch-target)}.thor-chat-quick-actions [aria-pressed=true]{color:var(--thor-chat-primary-foreground);background:var(--thor-chat-primary);border-color:#0000}.thor-chat-proposal{align-self:stretch;min-width:0}.thor-chat-action{align-self:flex-start;gap:var(--thor-chat-space-2);min-width:0;width:min(var(--thor-chat-bubble-max-width), 100%);padding:var(--thor-chat-action-padding-y) var(--thor-chat-action-padding-x);color:var(--thor-chat-card-foreground);background:var(--thor-chat-card);border:1px solid var(--thor-chat-border);border-inline-start-width:var(--thor-chat-action-accent-width);border-radius:var(--thor-chat-radius-lg);overflow-wrap:anywhere;flex-direction:column;transition:opacity .15s;display:flex}.thor-chat-action[data-status=open]{border-inline-start-color:var(--thor-chat-primary)}.thor-chat-action[data-status=running]{border-inline-start-color:var(--thor-chat-info);opacity:.8}.thor-chat-action[data-status=DONE]{border-inline-start-color:var(--thor-chat-success)}.thor-chat-action[data-status=FAILED],.thor-chat-action[data-status=DENIED]{border-inline-start-color:var(--thor-chat-destructive)}.thor-chat-action[data-status=PENDING_APPROVAL]{border-inline-start-color:var(--thor-chat-warning)}.thor-chat-action[data-status=CANCELLED]{border-inline-start-color:var(--thor-chat-muted-foreground)}.thor-chat-action-name{font-family:var(--thor-chat-font-mono);font-size:var(--thor-chat-font-size-sm);font-weight:var(--thor-chat-font-weight-title);margin:0}.thor-chat-action-title{font-size:var(--thor-chat-action-title-size);font-weight:var(--thor-chat-font-weight-title);margin:0}.thor-chat-action-summary,.thor-chat-action-reason,.thor-chat-action-step-body{font-size:var(--thor-chat-font-size-sm);margin:0}.thor-chat-action-reason{color:var(--thor-chat-muted-foreground)}.thor-chat-action-step{gap:var(--thor-chat-space-1);padding:var(--thor-chat-space-2) var(--thor-chat-action-step-padding-x);border:1px solid var(--thor-chat-border);border-radius:var(--thor-chat-radius-md);flex-direction:column;display:flex}.thor-chat-action-step-title{font-size:var(--thor-chat-font-size-sm);font-weight:var(--thor-chat-font-weight-title);margin:0}.thor-chat-action-args{gap:var(--thor-chat-space-1);font-size:var(--thor-chat-font-size-sm);margin:0;display:grid}.thor-chat-action-args>div{gap:var(--thor-chat-space-1) var(--thor-chat-space-2);flex-wrap:wrap;min-width:0;display:flex}.thor-chat-action-args dt{color:var(--thor-chat-muted-foreground)}.thor-chat-action-args dd{min-width:0;margin:0}.thor-chat-action-buttons{gap:var(--thor-chat-space-2);flex-wrap:wrap;display:flex}.thor-chat-action-status{font-size:var(--thor-chat-font-size-sm);color:var(--thor-chat-muted-foreground);margin:0}.thor-chat-action-results{align-self:flex-end;align-items:center;gap:var(--thor-chat-space-2);max-width:min(var(--thor-chat-bubble-max-width), calc(var(--thor-chat-bubble-max-ratio) * 100%));font-size:max(var(--thor-chat-font-size-min), var(--thor-chat-font-size-xs));color:var(--thor-chat-muted-foreground);overflow-wrap:anywhere;flex-wrap:wrap;display:flex}.thor-chat-action-results ul{margin:0;padding:0;list-style:none}.thor-chat-action-results[data-status=FAILED]{color:var(--thor-chat-destructive)}
