@donkit-ai/design-system 1.4.65 → 1.4.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -19,4 +19,4 @@
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,O,V,J,V),E[V+O]=!0)}if(V=null,L!==void 0&&(n(L),V=""+L),i(T)&&(n(T.key),V=""+T.key),"key"in T){L={};for(var re in T)re!=="key"&&(L[re]=T[re])}else L=T;return V&&l(L,typeof m=="function"?m.displayName||m.name||"Unknown":m),u(m,V,L,o(),te,ne)}function h(m){x(m)?m._store&&(m._store.validated=1):typeof m=="object"&&m!==null&&m.$$typeof===U&&(m._payload.status==="fulfilled"?x(m._payload.value)&&m._payload.value._store&&(m._payload.value._store.validated=1):m._store&&(m._store.validated=1))}function x(m){return typeof m=="object"&&m!==null&&m.$$typeof===v}var f=c,v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),A=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),P=Symbol.for("react.client.reference"),q=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,B=Array.isArray,_=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(m){return m()}};var k,$={},z=f.react_stack_bottom_frame.bind(f,a)(),X=_(r(a)),E={};me.Fragment=N,me.jsx=function(m,T,L){var O=1e4>q.recentlyCreatedOwnerStacks++;return p(m,T,L,!1,O?Error("react-stack-top-frame"):z,O?_(r(m)):X)},me.jsxs=function(m,T,L){var O=1e4>q.recentlyCreatedOwnerStacks++;return p(m,T,L,!0,O?Error("react-stack-top-frame"):z,O?_(r(m)):X)}}()),me}process.env.NODE_ENV==="production"?Ne.exports=Ge():Ne.exports=Ke();var e=Ne.exports;function Pe({size:t="m",color:s="default",className:n="",...r}){return e.jsx("span",{className:["ds-spinner",`ds-spinner--${t}`,`ds-spinner--${s}`,n].filter(Boolean).join(" "),role:"status","aria-label":"Loading",...r})}const Je={xs:12,s:14,m:16,l:20};function ee({children:t,variant:s="primary",size:n="m",fullWidth:r=!1,icon:o,disabled:a=!1,state:i="idle",onClick:l,type:d="button",href:u,"aria-label":p,className:h="",...x}){const f=o&&!t,v=i==="loading",b=i==="success",N=i==="error",R=v||b||N,y=n==="xs"?"s":"m",j=s==="danger"?"on-accent":"default",A=Je[n]??16,D=v?e.jsx(Pe,{size:y,color:j}):b?e.jsx("span",{className:"ds-button__icon","aria-hidden":"true",children:e.jsx(S.Check,{size:A,strokeWidth:2.5})}):N?e.jsx("span",{className:"ds-button__icon","aria-hidden":"true",children:e.jsx(S.X,{size:A,strokeWidth:2.5})}):null,M=["ds-button",`ds-button--${s}`,`ds-button--${n}`,r&&"ds-button--full",f&&"ds-button--icon-only",h].filter(Boolean).join(" "),W=i!=="idle"?i:void 0,H=e.jsxs(e.Fragment,{children:[R?D:o&&e.jsx("span",{className:"ds-button__icon","aria-hidden":"true",children:o}),t]});if(u){const U=w=>{if(a||v){w.preventDefault();return}w.metaKey||w.ctrlKey||w.button===1||(w.preventDefault(),l==null||l(w))};return e.jsx("a",{className:M,href:a||v?void 0:u,onClick:U,"aria-label":p,"aria-disabled":a||v?"true":void 0,"aria-busy":v?"true":void 0,"data-state":W,...x,children:H})}return e.jsx("button",{type:d,className:M,disabled:a,onClick:v?void 0:l,"aria-label":p,"aria-busy":v?"true":void 0,"data-state":W,...x,children:H})}function Ze({label:t,error:s,hint:n,fullWidth:r=!0,icon:o,iconRight:a,onIconRightClick:i,size:l="m",disabled:d,id:u,...p}){const h=u||`input-${c.useId()}`,x=n?`${h}-hint`:void 0,f=s?`${h}-error`:void 0,v=f||x;return e.jsxs("div",{className:`ds-input-wrapper ${r?"ds-input-wrapper--full":""} ${d?"ds-input-wrapper--disabled":""} ${s?"ds-input-wrapper--error":""}`,children:[t&&e.jsx("label",{className:"ds-input-label",htmlFor:h,children:t}),e.jsxs("div",{className:"ds-input-container",children:[o&&e.jsx("span",{className:`ds-input-icon ds-input-icon--${l}`,"aria-hidden":"true",children:o}),e.jsx("input",{id:h,className:`ds-input ds-input--${l} ${o?"ds-input--with-icon":""} ${a?"ds-input--with-icon-right":""} ${s?"ds-input--error":""}`,disabled:d,"aria-invalid":s?"true":"false","aria-describedby":v,...p}),a&&e.jsx("button",{type:"button",className:`ds-input-icon-right ds-input-icon-right--${l}`,onClick:i,tabIndex:-1,"aria-label":"Toggle visibility",children:a})]}),n&&!s&&e.jsx("span",{id:x,className:"ds-input-hint",children:n}),e.jsx("div",{className:"ds-input-error-wrap",children:e.jsx("div",{className:"ds-input-error-inner",children:s&&e.jsx("span",{id:f,className:"ds-input-error",role:"alert",children:s})})})]})}function Qe({label:t,error:s,hint:n,fullWidth:r=!0,size:o="m",disabled:a,id:i,resize:l=!0,rows:d=3,...u}){const p=i||`textarea-${c.useId()}`,h=n?`${p}-hint`:void 0,x=s?`${p}-error`:void 0,f=x||h;return e.jsxs("div",{className:`ds-textarea-wrapper ${r?"ds-textarea-wrapper--full":""} ${a?"ds-textarea-wrapper--disabled":""}`,children:[t&&e.jsx("label",{className:"ds-textarea-label",htmlFor:p,children:t}),e.jsx("textarea",{id:p,className:`ds-textarea ds-textarea--${o} ${s?"ds-textarea--error":""} ${l?"":"ds-textarea--no-resize"}`,disabled:a,"aria-invalid":s?"true":"false","aria-describedby":f,rows:d,...u}),n&&!s&&e.jsx("span",{id:h,className:"ds-textarea-hint",children:n}),s&&e.jsx("span",{id:x,className:"ds-textarea-error",role:"alert",children:s})]})}function et({label:t,value:s,onChange:n,options:r=[],placeholder:o="Select option",error:a,fullWidth:i=!0,size:l="m",disabled:d=!1,id:u,...p}){const[h,x]=c.useState(!1),[f,v]=c.useState(!1),[b,N]=c.useState({}),[R,y]=c.useState("down"),[j,A]=c.useState(-1),D=c.useRef(null),M=c.useRef(null),W=c.useRef(null),H=c.useRef(null),U=u||`select-${c.useId()}`,w=`${U}-label`,P=a?`${U}-error`:void 0,q=150,F=(E=!1)=>{f||(v(!0),A(-1),H.current=setTimeout(()=>{var m;x(!1),v(!1),E&&((m=W.current)==null||m.focus())},q))},B=E=>{clearTimeout(H.current),v(!1);const m=E!==void 0?E:Math.max(r.findIndex(T=>T.value===s),0);A(m),x(!0)};c.useEffect(()=>()=>clearTimeout(H.current),[]);const _=()=>{var ne;const E=(ne=D.current)==null?void 0:ne.getBoundingClientRect();if(!E)return;const m=window.innerHeight,T=m-E.bottom,L=E.top,te=T<300&&L>T;y(te?"up":"down"),N(te?{bottom:m-E.top+4,left:E.left,width:E.width}:{top:E.bottom+4,left:E.left,width:E.width})};c.useEffect(()=>{if(h)return _(),window.addEventListener("scroll",_,!0),window.addEventListener("resize",_),()=>{window.removeEventListener("scroll",_,!0),window.removeEventListener("resize",_)}},[h]),c.useEffect(()=>{const E=m=>{D.current&&!D.current.contains(m.target)&&M.current&&!M.current.contains(m.target)&&F()};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[f]),c.useEffect(()=>{var m;if(!h||j<0||!M.current)return;(m=M.current.querySelectorAll(".ds-select-option")[j])==null||m.scrollIntoView({block:"nearest"})},[j,h]);const k=E=>{switch(E.key){case"ArrowDown":E.preventDefault(),h?A(m=>Math.min(m+1,r.length-1)):B();break;case"ArrowUp":E.preventDefault(),h?A(m=>Math.max(m-1,0)):B(r.length-1);break;case"Home":h&&(E.preventDefault(),A(0));break;case"End":h&&(E.preventDefault(),A(r.length-1));break;case"Enter":case" ":E.preventDefault(),h?j>=0&&(n==null||n(r[j].value),F(!0)):B();break;case"Escape":h&&(E.preventDefault(),F(!0));break;case"Tab":h&&F(!1);break}},$=r.find(E=>E.value===s),z=l==="xs"?C[1]:l==="small"?C[2]:C[3],X=h&&e.jsx("div",{ref:M,"data-ds-portal":"",role:"listbox","aria-labelledby":t?w:void 0,tabIndex:-1,className:["ds-select-dropdown ds-scrollable",`ds-select-dropdown--${l}`,`ds-select-dropdown--${R}`,f&&"ds-select-dropdown--closing"].filter(Boolean).join(" "),style:b,children:r.map((E,m)=>e.jsx("button",{id:`${U}-opt-${m}`,type:"button",role:"option",tabIndex:-1,"aria-selected":s===E.value,className:["ds-select-option",`ds-select-option--${l}`,s===E.value&&"ds-select-option--selected",m===j&&"ds-select-option--active"].filter(Boolean).join(" "),onClick:()=>{n==null||n(E.value),F(!0)},children:E.label},E.value))});return e.jsxs("div",{className:`ds-select-wrapper ${i?"ds-select-wrapper--full":""} ${d?"ds-select-wrapper--disabled":""}`,children:[t&&e.jsx("label",{id:w,className:"ds-select-label",children:t}),e.jsx("div",{className:"ds-select-container",ref:D,children:e.jsxs("button",{ref:W,type:"button",id:U,role:"combobox","aria-haspopup":"listbox","aria-expanded":h,"aria-activedescendant":h&&j>=0?`${U}-opt-${j}`:void 0,"aria-labelledby":t?w:void 0,"aria-invalid":a?"true":"false","aria-describedby":P,className:`ds-select-trigger ds-select-trigger--${l} ${a?"ds-select-trigger--error":""}`,onClick:()=>{d||(h?F():B())},onKeyDown:k,disabled:d,...p,children:[e.jsx("span",{className:$?"":"ds-select-placeholder",children:($==null?void 0:$.label)||o}),e.jsx(S.ChevronDown,{size:z,strokeWidth:1.5,className:`ds-select-icon ${h&&R==="down"?"ds-select-icon--open":""} ${h&&R==="up"?"ds-select-icon--up":""}`,"aria-hidden":"true"})]})}),a&&e.jsx("span",{id:P,className:"ds-select-error",role:"alert",children:a}),typeof document<"u"&&ue.createPortal(X,document.body)]})}function tt({label:t,value:s=0,onChange:n,min:r=0,max:o=100,step:a=1,size:i="m",disabled:l=!1,hint:d,error:u,...p}){const h=()=>{if(l)return;const R=Math.min(Number(s)+a,o);n==null||n(R)},x=()=>{if(l)return;const R=Math.max(Number(s)-a,r);n==null||n(R)},f=R=>{if(l)return;const y=R.target.value;if(y===""){n==null||n(r);return}const j=Number(y);if(!isNaN(j)){const A=Math.min(Math.max(j,r),o);n==null||n(A)}},v=["ds-stepper-wrapper",l&&"ds-stepper-wrapper--disabled",u&&"ds-stepper-wrapper--error"].filter(Boolean).join(" "),b=["ds-stepper",`ds-stepper--${i}`,l&&"ds-stepper--disabled"].filter(Boolean).join(" "),N=i==="xs"?C[1]:i==="small"?C[2]:C[3];return e.jsxs("div",{className:v,children:[t&&e.jsx("label",{className:"ds-stepper-label",children:t}),e.jsxs("div",{className:b,children:[e.jsx("button",{type:"button",className:"ds-stepper-button ds-stepper-button--minus",onClick:x,disabled:l||s<=r,"aria-label":"Decrease",children:e.jsx(S.Minus,{size:N,strokeWidth:1.5})}),e.jsx("input",{type:"number",className:"ds-stepper-input",value:s,onChange:f,min:r,max:o,step:a,disabled:l,...p}),e.jsx("button",{type:"button",className:"ds-stepper-button ds-stepper-button--plus",onClick:h,disabled:l||s>=o,"aria-label":"Increase",children:e.jsx(S.Plus,{size:N,strokeWidth:1.5})})]}),d&&!u&&e.jsx("div",{className:"ds-stepper-hint",children:d}),u&&e.jsx("div",{className:"ds-stepper-error",children:u})]})}function st({children:t,padding:s="m",variant:n="info",hover:r=!1,onClick:o,href:a,disabled:i=!1,...l}){const u=(r?"interactive":n)==="interactive"||o||a,p=["ds-card",`ds-card--${s}`,u&&"ds-card--interactive"].filter(Boolean).join(" ");if(a){const f=v=>{if(i){v.preventDefault();return}v.metaKey||v.ctrlKey||v.button===1||(v.preventDefault(),o==null||o(v))};return e.jsx("a",{className:p,href:i?void 0:a,onClick:f,"aria-disabled":i?"true":void 0,...l,children:t})}const h=u&&o?"button":"div",x=u&&o?{type:"button",onClick:o,disabled:i}:{};return e.jsx(h,{className:p,role:u&&!o?"article":void 0,...x,...l,children:t})}function nt({children:t,...s}){return e.jsx("h1",{className:"ds-h1",...s,children:t})}function rt({children:t,...s}){return e.jsx("h2",{className:"ds-h2",...s,children:t})}function at({children:t,...s}){return e.jsx("h3",{className:"ds-h3",...s,children:t})}function ot({children:t,...s}){return e.jsx("h4",{className:"ds-h4",...s,children:t})}function it({children:t,secondary:s=!1,...n}){return e.jsx("p",{className:`ds-p1 ${s?"ds-p1--secondary":""}`,...n,children:t})}function Le({children:t,secondary:s=!1,...n}){return e.jsx("p",{className:`ds-p2 ${s?"ds-p2--secondary":""}`,...n,children:t})}function Ee({children:t,secondary:s=!1,...n}){return e.jsx("p",{className:`ds-p3 ${s?"ds-p3--secondary":""}`,...n,children:t})}function oe({children:t,variant:s="default",size:n="m",role:r,...o}){const a=["ds-badge",`ds-badge--${s}`,`ds-badge--${n}`].filter(Boolean).join(" "),i=r||(["info","success","warning","error"].includes(s)?"status":void 0);return e.jsx("span",{className:a,role:i,...o,children:t})}const lt={info:S.Info,success:S.CheckCircle,warning:S.AlertTriangle,error:S.XCircle},ct=c.forwardRef(function({children:s,variant:n="info",title:r,onClose:o,role:a,...i},l){const d=lt[n],u=a||(n==="error"?"alert":"status");return e.jsxs("div",{ref:l,className:`ds-alert ds-alert--${n} ${r?"":"ds-alert--no-title"}`,role:u,...i,children:[d&&e.jsx("div",{className:"ds-alert__icon",children:e.jsx(d,{size:C[3],strokeWidth:1.5})}),e.jsxs("div",{className:"ds-alert__content",children:[r&&e.jsx("div",{className:"ds-alert__title",children:r}),s&&e.jsx("div",{className:"ds-alert__message",children:s})]}),o&&e.jsx("button",{type:"button",className:"ds-alert__close",onClick:o,"aria-label":"Close alert",children:e.jsx(S.X,{size:C[3],strokeWidth:1.5})})]})}),dt=200;function ut({children:t,title:s,onClose:n,size:r="m",scrollable:o=!1,subHeader:a,...i}){const l=c.useRef(null),d=c.useId(),[u,p]=c.useState(!1),h=()=>{!n||u||(p(!0),setTimeout(()=>{p(!1),n()},dt))};c.useEffect(()=>{const b=R=>{R.key==="Escape"&&h()},N=R=>{var j,A,D;const y=((A=(j=R.composedPath)==null?void 0:j.call(R))==null?void 0:A[0])??R.target;l.current&&!l.current.contains(y)&&!((D=y.closest)!=null&&D.call(y,"[data-ds-portal]"))&&h()};return document.addEventListener("keydown",b),document.addEventListener("mousedown",N),()=>{document.removeEventListener("keydown",b),document.removeEventListener("mousedown",N)}},[n,u]);const x=c.Children.toArray(t),f=x.find(b=>(b==null?void 0:b.type)===le),v=x.filter(b=>(b==null?void 0:b.type)!==le);return e.jsx("div",{className:["ds-modal-overlay",u&&"ds-modal-overlay--closing"].filter(Boolean).join(" "),...i,children:e.jsxs("div",{className:[`ds-modal ds-modal--${r}`,o&&"ds-modal--scrollable"].filter(Boolean).join(" "),ref:l,role:"dialog","aria-modal":"true","aria-labelledby":s?d:void 0,children:[n&&e.jsx(ee,{className:"ds-modal__close",variant:"ghost",size:"small",icon:e.jsx(S.X,{size:C[2],strokeWidth:1.5}),onClick:h,"aria-label":"Close modal"}),(s||a)&&e.jsxs("div",{className:"ds-modal__header",children:[s&&e.jsx("h3",{id:d,className:"ds-modal__title",children:s}),a&&e.jsx("div",{className:"ds-modal__subheader",children:a})]}),e.jsx("div",{className:"ds-modal__body ds-scrollable",children:v}),f]})})}function le({children:t}){return!t||c.Children.count(t)===0?null:e.jsx("div",{className:"ds-modal__footer",children:t})}const ft=320;function mt({children:t,title:s,onClose:n,subHeader:r,...o}){const a=c.useRef(null),i=c.useId(),[l,d]=c.useState(!1),u=()=>{!n||l||(d(!0),setTimeout(()=>{d(!1),n()},ft))};c.useEffect(()=>{const f=b=>{b.key==="Escape"&&u()},v=b=>{var R,y,j;const N=((y=(R=b.composedPath)==null?void 0:R.call(b))==null?void 0:y[0])??b.target;a.current&&!a.current.contains(N)&&!((j=N.closest)!=null&&j.call(N,"[data-ds-portal]"))&&u()};return document.addEventListener("keydown",f),document.addEventListener("mousedown",v),()=>{document.removeEventListener("keydown",f),document.removeEventListener("mousedown",v)}},[n,l]);const p=c.Children.toArray(t),h=p.find(f=>(f==null?void 0:f.type)===le),x=p.filter(f=>(f==null?void 0:f.type)!==le);return e.jsx("div",{className:["ds-bottom-sheet-overlay",l&&"ds-bottom-sheet-overlay--closing"].filter(Boolean).join(" "),...o,children:e.jsxs("div",{ref:a,className:["ds-bottom-sheet",l&&"ds-bottom-sheet--closing"].filter(Boolean).join(" "),role:"dialog","aria-modal":"true","aria-labelledby":s?i:void 0,children:[e.jsx("div",{className:"ds-bottom-sheet__handle","aria-hidden":"true"}),n&&e.jsx(ee,{className:"ds-bottom-sheet__close",variant:"ghost",size:"small",icon:e.jsx(S.X,{size:C[2],strokeWidth:1.5}),onClick:u,"aria-label":"Close"}),(s||r)&&e.jsxs("div",{className:"ds-bottom-sheet__header",children:[s&&e.jsx("h3",{id:i,className:"ds-bottom-sheet__title",children:s}),r&&e.jsx("div",{className:"ds-bottom-sheet__subheader",children:r})]}),e.jsx("div",{className:"ds-bottom-sheet__body ds-scrollable",children:x}),h]})})}function Me({children:t,title:s="Code",defaultExpanded:n=!1,expanded:r,onToggle:o,padding:a="s",className:i="",...l}){const[d,u]=c.useState(n),p=r!==void 0,h=p?r:d,x=()=>{p?o==null||o(!r):u(v=>!v)},f=["ds-code-accordion",`ds-code-accordion--${a}`,h&&"ds-code-accordion--expanded",i].filter(Boolean).join(" ");return e.jsxs("div",{className:f,...l,children:[e.jsxs("button",{type:"button",className:"ds-code-accordion__header",onClick:x,"aria-expanded":h,children:[e.jsx("span",{className:"ds-code-accordion__title",children:s}),e.jsx(S.ChevronDown,{size:C[2],strokeWidth:1.5,className:`ds-code-accordion__icon ${h?"ds-code-accordion__icon--expanded":""}`})]}),e.jsx("div",{className:"ds-code-accordion__content",children:e.jsx("div",{className:"ds-code-accordion__inner",children:e.jsx("pre",{className:"ds-code-accordion__pre ds-scrollable",children:e.jsx("code",{children:t})})})})]})}function pt({children:t,block:s=!1,collapsible:n=!1,title:r="Code",defaultExpanded:o=!1,...a}){return s?n?e.jsx(Me,{title:r,defaultExpanded:o,...a,children:t}):e.jsx("pre",{className:"ds-code-block ds-scrollable",...a,children:e.jsx("code",{children:t})}):e.jsx("code",{className:"ds-code-inline",...a,children:t})}function ht({href:t,children:s,onClick:n,target:r,rel:o,...a}){const l=r==="_blank"?o?`${o} noopener noreferrer`:"noopener noreferrer":o;return e.jsx("a",{href:t,className:"ds-link",onClick:n,target:r,rel:l,...a,children:s})}function xt({children:t,size:s="m",variant:n="ghost",...r}){return e.jsx("div",{className:"ds-tabs",role:"tablist",...r,children:c.Children.map(t,o=>c.isValidElement(o)?c.cloneElement(o,{size:s,variant:n}):o)})}function vt({children:t,selected:s=!1,onClick:n,size:r="m",variant:o="ghost",disabled:a=!1,icon:i,href:l,...d}){const u=i&&!t,p=["ds-tab",`ds-tab--${r}`,`ds-tab--${o}`,s&&"ds-tab--selected",u&&"ds-tab--icon-only"].filter(Boolean).join(" "),h=e.jsxs(e.Fragment,{children:[i&&e.jsx("span",{className:"ds-tab-icon",children:i}),t]});if(l){const x=f=>{if(a){f.preventDefault();return}f.metaKey||f.ctrlKey||f.button===1||(f.preventDefault(),n==null||n(f))};return e.jsx("a",{role:"tab","aria-current":s?"page":void 0,"aria-disabled":a?"true":void 0,className:p,href:a?void 0:l,onClick:x,...d,children:h})}return e.jsx("button",{role:"tab","aria-selected":s,className:p,onClick:n,disabled:a,...d,children:h})}function bt({options:t,value:s,onChange:n,size:r="m",disabled:o=!1}){const a=c.useRef(null),i=c.useRef(null),[l,d]=c.useState(!1),u=c.useRef(!1),p=c.useRef(null),h=c.useRef(null),x=()=>{if(!a.current)return;const f=a.current.querySelector(`[data-value="${s}"]`);if(!f)return;const v=a.current.getBoundingClientRect(),b=f.getBoundingClientRect(),N=b.left-v.left,R=b.width;i.current?(i.current.style.transition=u.current?"left var(--transition-normal), width var(--transition-normal)":"none",i.current.style.left=N+"px",i.current.style.width=R+"px",u.current=!1):(d(!0),requestAnimationFrame(()=>{if(!i.current||!a.current)return;const y=a.current.querySelector(`[data-value="${s}"]`);if(!y)return;const j=a.current.getBoundingClientRect(),A=y.getBoundingClientRect();i.current.style.transition="none",i.current.style.left=A.left-j.left+"px",i.current.style.width=A.width+"px"}))};return h.current=x,c.useLayoutEffect(()=>{const f=p.current!==s;p.current=s,u.current=l&&f,x()}),c.useEffect(()=>{if(!a.current)return;const f=new ResizeObserver(()=>{u.current=!1,h.current()});return f.observe(a.current),()=>f.disconnect()},[]),e.jsxs("div",{className:["ds-seg",`ds-seg--${r}`,o&&"ds-seg--disabled"].filter(Boolean).join(" "),ref:a,role:"group",children:[l&&e.jsx("div",{ref:i,className:"ds-seg__pill","aria-hidden":"true"}),t.map(f=>e.jsxs("button",{type:"button","data-value":f.value,className:["ds-seg__btn",s===f.value&&"ds-seg__btn--active"].filter(Boolean).join(" "),onClick:()=>!o&&n(f.value),"aria-pressed":s===f.value,disabled:o,children:[f.icon&&e.jsx("span",{className:"ds-seg__btn-icon","aria-hidden":"true",children:f.icon}),f.label]},f.value))]})}function xe({children:t,title:s,defaultExpanded:n=!1,expanded:r,onToggle:o,padding:a="m",...i}){const[l,d]=c.useState(n),u=r!==void 0,p=u?r:l,h=()=>{u?o==null||o(!r):d(f=>!f)},x=["ds-accordion",`ds-accordion--${a}`,p&&"ds-accordion--expanded"].filter(Boolean).join(" ");return e.jsxs("div",{className:x,...i,children:[e.jsxs("button",{type:"button",className:"ds-accordion__header",onClick:h,"aria-expanded":p,children:[e.jsx("span",{className:"ds-accordion__title",children:s}),e.jsx(S.ChevronDown,{size:C[2],strokeWidth:1.5,className:`ds-accordion__icon ${p?"ds-accordion__icon--expanded":""}`})]}),e.jsx("div",{className:"ds-accordion__content",children:e.jsx("div",{className:"ds-accordion__content-inner",children:e.jsx("div",{className:"ds-accordion__content-body",children:t})})})]})}const se=8,ce=8;function _t(t,s,n){const r=window.innerWidth;let o,a;switch(t){case"top":o=s.top-n.height-se,a=s.left+s.width/2-n.width/2;break;case"bottom":o=s.bottom+se,a=s.left+s.width/2-n.width/2;break;case"left":o=s.top+s.height/2-n.height/2,a=s.left-n.width-se;break;case"right":o=s.top+s.height/2-n.height/2,a=s.right+se;break;default:o=s.bottom+se,a=s.left}const i=Math.max(ce,Math.min(r-n.width-ce,a)),l=a-i;return{top:o,left:i,arrowOffset:l}}function jt(t,s,n){const r=window.innerWidth,o=window.innerHeight;if(t.top>=s+se+ce)return"top";if(o-t.bottom>=s+se+ce)return"bottom";if(r-t.right>=n+se+ce)return"right";if(t.left>=n+se+ce)return"left";const a=Math.max(t.top,o-t.bottom,t.left,r-t.right);return a===t.top?"top":a===o-t.bottom?"bottom":a===r-t.right?"right":"left"}function ve({children:t,content:s,position:n,...r}){const[o,a]=c.useState(!1),[i,l]=c.useState({visibility:"hidden"}),[d,u]=c.useState(n||"top"),p=c.useRef(null),h=c.useRef(null),x=c.useRef(!1),f=()=>{if(!p.current||!h.current)return;const b=p.current.getBoundingClientRect(),N=h.current.getBoundingClientRect(),R=n||jt(b,N.height,N.width),{top:y,left:j,arrowOffset:A}=_t(R,b,N);u(R),l({position:"fixed",top:y,left:j,visibility:"visible","--arrow-offset":`${A}px`})};if(c.useEffect(()=>{if(!o)return;l({position:"fixed",visibility:"hidden"});const b=requestAnimationFrame(f);return window.addEventListener("scroll",f,!0),window.addEventListener("resize",f),()=>{cancelAnimationFrame(b),window.removeEventListener("scroll",f,!0),window.removeEventListener("resize",f)}},[o,n]),c.useEffect(()=>{if(!o)return;const b=N=>{p.current&&!p.current.contains(N.target)&&a(!1)};return document.addEventListener("touchstart",b),()=>document.removeEventListener("touchstart",b)},[o]),!s)return t;const v=o&&e.jsx("div",{ref:h,"data-ds-portal":"",className:`ds-tooltip ds-tooltip--${d}`,role:"tooltip",style:i,children:s});return e.jsxs("div",{ref:p,className:"ds-tooltip-wrapper",onMouseEnter:()=>{x.current||a(!0)},onMouseLeave:()=>{x.current||a(!1)},onTouchStart:()=>{x.current=!0,a(b=>!b)},...r,children:[t,typeof document<"u"&&ue.createPortal(v,document.body)]})}function Nt({checked:t=!1,onChange:s,size:n="m",disabled:r=!1,label:o,id:a,...i}){const l=a||`toggle-${c.useId()}`,d=["ds-toggle",`ds-toggle--${n}`,r&&"ds-toggle--disabled"].filter(Boolean).join(" ");return e.jsxs("label",{className:d,htmlFor:l,children:[e.jsx("input",{type:"checkbox",id:l,className:"ds-toggle__input",checked:t,onChange:u=>s==null?void 0:s(u.target.checked),disabled:r,...i}),e.jsx("span",{className:"ds-toggle__track",children:e.jsx("span",{className:"ds-toggle__thumb"})}),o&&e.jsx("span",{className:"ds-toggle__label",children:o})]})}function gt({checked:t=!1,onChange:s,size:n="m",disabled:r=!1,label:o,id:a,...i}){const l=a||`checkbox-${c.useId()}`,d=["ds-checkbox",`ds-checkbox--${n}`,r&&"ds-checkbox--disabled"].filter(Boolean).join(" "),u=n==="xs"?10:n==="small"?14:n==="large"?20:16;return e.jsxs("label",{className:d,htmlFor:l,children:[e.jsx("input",{type:"checkbox",id:l,className:"ds-checkbox__input",checked:t,onChange:p=>s==null?void 0:s(p.target.checked),disabled:r,...i}),e.jsx("span",{className:"ds-checkbox__box",children:t&&e.jsx(S.Check,{size:u,strokeWidth:2.5,className:"ds-checkbox__icon"})}),o&&e.jsx("span",{className:"ds-checkbox__label",children:o})]})}function wt({checked:t=!1,onChange:s,size:n="m",disabled:r=!1,label:o,name:a,value:i,id:l,...d}){const u=l||`radio-${c.useId()}`,p=["ds-radio",`ds-radio--${n}`,r&&"ds-radio--disabled"].filter(Boolean).join(" ");return e.jsxs("label",{className:p,htmlFor:u,children:[e.jsx("input",{type:"radio",id:u,className:"ds-radio__input",checked:t,onChange:h=>s==null?void 0:s(h.target.checked),disabled:r,name:a,value:i,...d}),e.jsx("span",{className:"ds-radio__circle",children:e.jsx("span",{className:"ds-radio__dot"})}),o&&e.jsx("span",{className:"ds-radio__label",children:o})]})}function ze({width:t,height:s,shape:n="rect",aspectRatio:r,className:o="",style:a={},...i}){return e.jsx("span",{className:["ds-skeleton",`ds-skeleton--${n}`,o].filter(Boolean).join(" "),style:{width:t,height:s,aspectRatio:r,...a},"aria-hidden":"true",...i})}function yt({lines:t=1,lastLineWidth:s="70%",gap:n,className:r="",style:o={},...a}){return e.jsx("span",{className:["ds-skeleton-text",r].filter(Boolean).join(" "),style:{gap:n,...o},"aria-hidden":"true",...a,children:Array.from({length:t},(i,l)=>e.jsx("span",{className:"ds-skeleton ds-skeleton--text",style:l===t-1&&t>1?{width:s}:void 0},l))})}ze.Text=yt;function kt(t){let s=2166136261;for(let n=0;n<t.length;n++)s^=t.charCodeAt(n),s=Math.imul(s,16777619)>>>0;return s%360}function Et(t){if(!t)return"";const s=t.trim().split(/\s+/);return s.length>=2?(s[0][0]+s[1][0]).toUpperCase():t[0].toUpperCase()}function Rt({seed:t,icon:s,src:n,size:r=32,className:o="",style:a={},...i}){const l=kt(t??""),[d,u]=c.useState(!1),p=s??e.jsx("span",{className:"ds-avatar__initials",children:Et(t)});return e.jsx("div",{className:["ds-avatar",o].filter(Boolean).join(" "),style:{width:r,height:r,"--ds-avatar-h":l,...a},"aria-hidden":"true",...i,children:n&&!d?e.jsx("img",{src:n,alt:"",onError:()=>u(!0)}):p})}function St({children:t,size:s="compact",stickyTop:n,maxHeight:r,className:o="",style:a={},...i}){const l={...r?{maxHeight:r}:{},...n!==void 0?{"--ds-table-sticky-top":typeof n=="number"?`${n}px`:n}:{},...a};return e.jsx("div",{className:["ds-table-wrap","ds-scrollable",r?"ds-table-wrap--scroll":""].filter(Boolean).join(" "),style:l,children:e.jsx("table",{className:["ds-table",`ds-table--${s}`,o].filter(Boolean).join(" "),...i,children:t})})}function Tt({children:t,...s}){return e.jsx("thead",{...s,children:t})}function $t({children:t,...s}){return e.jsx("tbody",{...s,children:t})}function At({children:t,interactive:s,selected:n,subheader:r,exiting:o,updated:a,className:i="",onClick:l,...d}){return e.jsx("tr",{className:["ds-table-row",s||l?"ds-table-row--interactive":"",n?"ds-table-row--selected":"",r?"ds-table-row--subheader":"",o?"ds-table-row--exiting":"",a?"ds-table-row--updated":"",i].filter(Boolean).join(" "),onClick:l,...d,children:t})}function Bt({children:t,colSpan:s=999,...n}){return e.jsx("tr",{className:"ds-table-row ds-table-row--subheader",...n,children:e.jsx("td",{colSpan:s,children:t})})}function It({children:t,align:s="left",sortDir:n,onSort:r,width:o,className:a="",style:i={},...l}){const d=!!r||n!==void 0,u=n==="asc"?S.ChevronUp:n==="desc"?S.ChevronDown:S.ChevronsUpDown;return e.jsx("th",{className:["ds-th",d?"ds-th--sortable":"",n?"ds-th--sorted":"",s!=="left"?`ds-table-cell--${s}`:"",a].filter(Boolean).join(" "),onClick:r,style:{width:o,...i},...l,children:d?e.jsxs("span",{className:"ds-th__inner",children:[t,e.jsx("span",{className:"ds-th__sort-icon",children:e.jsx(u,{size:11,strokeWidth:2.5})})]}):t})}function Dt({children:t,align:s="left",secondary:n,muted:r,truncate:o,nowrap:a,className:i="",...l}){return e.jsx("td",{className:["ds-td",s!=="left"?`ds-table-cell--${s}`:"",n?"ds-table-cell--secondary":"",r?"ds-table-cell--muted":"",o?"ds-table-cell--truncate":"",a?"ds-table-cell--nowrap":"",i].filter(Boolean).join(" "),...l,children:t})}function Ct({icon:t,title:s,description:n,action:r,size:o="m",className:a="",...i}){return e.jsxs("div",{className:["ds-empty-state",`ds-empty-state--${o}`,a].filter(Boolean).join(" "),...i,children:[t&&e.jsx("div",{className:"ds-empty-state__icon",children:t}),e.jsx("div",{className:"ds-empty-state__title",children:s}),n&&e.jsx("div",{className:"ds-empty-state__description",children:n}),r&&e.jsx("div",{className:"ds-empty-state__action",children:r})]})}function Pt({label:t,hint:s,error:n,required:r=!1,disabled:o=!1,htmlFor:a,children:i,className:l="",style:d,...u}){const p=c.useId(),h=a??p,x=`${h}-hint`,f=`${h}-error`;return e.jsxs("div",{className:`ds-field${l?` ${l}`:""}`,"data-state":n?"error":void 0,"data-required":r?"":void 0,"data-disabled":o?"":void 0,style:d,...u,children:[t&&e.jsx("label",{className:"ds-field-label",htmlFor:h,children:t}),e.jsx("div",{className:"ds-field-control",children:i}),s&&!n&&e.jsx("p",{className:"ds-field-hint",id:x,children:s}),n&&e.jsx("p",{className:"ds-field-error",id:f,role:"alert",children:n})]})}function Lt({label:t,value:s,delta:n,size:r="m",inline:o=!1,className:a="",style:i,...l}){const d=n!=null&&n.startsWith("+")?"up":n!=null&&n.startsWith("-")?"down":"neutral";return e.jsxs("div",{className:["ds-stat",`ds-stat--${r}`,o&&"ds-stat--inline",a].filter(Boolean).join(" "),style:i,...l,children:[t&&e.jsx("span",{className:"ds-stat-label",children:t}),s!=null&&e.jsx("span",{className:"ds-stat-value",children:s}),n!=null&&e.jsx("span",{className:`ds-stat-delta ds-stat-delta--${d}`,children:n})]})}function Mt({children:t,separator:s="/","aria-label":n="Breadcrumb",className:r="",style:o,...a}){const i=c.Children.toArray(t).filter(Boolean);return e.jsx("nav",{className:`ds-breadcrumb${r?` ${r}`:""}`,"aria-label":n,style:o,...a,children:e.jsx("ol",{className:"ds-breadcrumb-list",children:i.map((l,d)=>e.jsxs("li",{className:"ds-breadcrumb-item",children:[l,d<i.length-1&&e.jsx("span",{className:"ds-breadcrumb-sep","aria-hidden":"true",children:s})]},d))})})}function zt({page:t,total:s,onChange:n,siblings:r=1,"aria-label":o="Pagination",className:a="",style:i,...l}){const d=Ft(t,s,r);return e.jsxs("nav",{className:`ds-pagination${a?` ${a}`:""}`,"aria-label":o,style:i,...l,children:[e.jsx("button",{className:"ds-pagination-arrow",onClick:()=>n==null?void 0:n(t-1),disabled:t<=1,"aria-label":"Previous page",children:e.jsx(S.ChevronLeft,{size:16})}),d.map((u,p)=>u==="…"?e.jsx("span",{className:"ds-pagination-gap","aria-hidden":"true",children:"…"},`gap-${p}`):e.jsx("button",{className:`ds-pagination-page${u===t?" ds-pagination-page--current":""}`,onClick:()=>u!==t&&(n==null?void 0:n(u)),"aria-current":u===t?"page":void 0,"aria-label":`Page ${u}`,children:u},u)),e.jsx("button",{className:"ds-pagination-arrow",onClick:()=>n==null?void 0:n(t+1),disabled:t>=s,"aria-label":"Next page",children:e.jsx(S.ChevronRight,{size:16})})]})}function Ft(t,s,n){if(s<=7)return Array.from({length:s},(i,l)=>l+1);const r=Math.max(2,t-n),o=Math.min(s-1,t+n),a=[1];r>2&&a.push("…");for(let i=r;i<=o;i++)a.push(i);return o<s-1&&a.push("…"),a.push(s),a}const Ot=200;function Wt({children:t,title:s,onClose:n,side:r="right",...o}){const a=c.useRef(null),i=c.useId(),[l,d]=c.useState(!1),u=()=>{!n||l||(d(!0),setTimeout(()=>{d(!1),n()},Ot))};c.useEffect(()=>{const f=b=>{b.key==="Escape"&&u()},v=b=>{var R,y,j;const N=((y=(R=b.composedPath)==null?void 0:R.call(b))==null?void 0:y[0])??b.target;a.current&&!a.current.contains(N)&&!((j=N.closest)!=null&&j.call(N,"[data-ds-portal]"))&&u()};return document.addEventListener("keydown",f),document.addEventListener("mousedown",v),()=>{document.removeEventListener("keydown",f),document.removeEventListener("mousedown",v)}},[n,l]);const p=c.Children.toArray(t),h=p.find(f=>(f==null?void 0:f.type)===ge),x=p.filter(f=>(f==null?void 0:f.type)!==ge);return e.jsx("div",{className:["ds-drawer-overlay",l&&"ds-drawer-overlay--closing"].filter(Boolean).join(" "),...o,children:e.jsxs("aside",{className:["ds-drawer",l&&"ds-drawer--closing"].filter(Boolean).join(" "),"data-side":r,ref:a,role:"dialog","aria-modal":"true","aria-labelledby":s?i:void 0,children:[e.jsxs("header",{className:"ds-drawer-header",children:[s&&e.jsx("h3",{id:i,className:"ds-drawer-title",children:s}),n&&e.jsx("button",{className:"ds-drawer-close",onClick:u,"aria-label":"Close drawer",children:e.jsx(S.X,{size:C[2],strokeWidth:1.5})})]}),e.jsx("div",{className:"ds-drawer-body ds-scrollable",children:x}),h]})})}function ge({children:t}){return e.jsx("footer",{className:"ds-drawer-footer",children:t})}const Ut=320;function Vt({children:t,title:s,onClose:n,subHeader:r,...o}){const a=c.useRef(null),i=c.useId(),[l,d]=c.useState(!1),u=()=>{!n||l||(d(!0),setTimeout(()=>{d(!1),n()},Ut))};c.useEffect(()=>{const f=b=>{b.key==="Escape"&&u()},v=b=>{var R,y,j;const N=((y=(R=b.composedPath)==null?void 0:R.call(b))==null?void 0:y[0])??b.target;a.current&&!a.current.contains(N)&&!((j=N.closest)!=null&&j.call(N,"[data-ds-portal]"))&&u()};return document.addEventListener("keydown",f),document.addEventListener("mousedown",v),()=>{document.removeEventListener("keydown",f),document.removeEventListener("mousedown",v)}},[n,l]);const p=c.Children.toArray(t),h=p.find(f=>(f==null?void 0:f.type)===we||(f==null?void 0:f.type)===le),x=p.filter(f=>(f==null?void 0:f.type)!==we&&(f==null?void 0:f.type)!==le);return e.jsx("div",{className:["ds-side-page-overlay",l&&"ds-side-page-overlay--closing"].filter(Boolean).join(" "),...o,children:e.jsxs("div",{ref:a,className:["ds-side-page",l&&"ds-side-page--closing"].filter(Boolean).join(" "),role:"dialog","aria-modal":"true","aria-labelledby":s?i:void 0,children:[n&&e.jsx(ee,{className:"ds-side-page__close",variant:"ghost",size:"small",icon:e.jsx(S.X,{size:C[2],strokeWidth:1.5}),onClick:u,"aria-label":"Close"}),(s||r)&&e.jsxs("div",{className:"ds-side-page__header",children:[s&&e.jsx("h3",{id:i,className:"ds-side-page__title",children:s}),r&&e.jsx("div",{className:"ds-side-page__subheader",children:r})]}),e.jsx("div",{className:"ds-side-page__body ds-scrollable",children:x}),h]})})}function we({children:t}){return!t||c.Children.count(t)===0?null:e.jsx("div",{className:"ds-side-page__footer",children:t})}const pe=c.createContext({collapsed:!1,side:"left"});function Xt({children:t,collapsed:s=!1,side:n="left",onExpand:r,className:o="",...a}){const i=["ds-nav-rail",s&&"ds-nav-rail--collapsed",`ds-nav-rail--${n}`,o].filter(Boolean).join(" "),l=c.useCallback(d=>{!s||!r||d.target.closest('button, a, input, select, textarea, [role="button"], [tabindex]')||r()},[s,r]);return e.jsx(pe.Provider,{value:{collapsed:s,side:n},children:e.jsx("nav",{className:i,onClick:l,...a,children:t})})}function Ht({icon:t,label:s,selected:n=!1,disabled:r=!1,href:o,onClick:a,count:i,updated:l=!1,open:d=!1,onboarding:u=!1,className:p="",...h}){const{collapsed:x,side:f}=c.useContext(pe),N={className:["ds-nav-rail__item",p].filter(Boolean).join(" "),onClick:r?void 0:a,"aria-current":n?"page":void 0,"aria-disabled":r?"true":void 0,"aria-label":x?s:void 0,tabIndex:r?-1:void 0,...{"data-selected":n||void 0,"data-disabled":r||void 0,"data-open":d||void 0,"data-onboarding":u||void 0},...h},R=i!=null,y=f==="left"?"right":"left",j=e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"ds-nav-rail__icon","aria-hidden":"true",children:t}),!x&&e.jsx("span",{className:"ds-nav-rail__label",children:s}),!x&&l&&e.jsx(oe,{size:"xs",variant:"accent",className:"ds-nav-rail__badge-expanded",children:"New"}),!x&&R&&e.jsx("span",{className:["ds-nav-rail__count",i===0&&"ds-nav-rail__count--zero"].filter(Boolean).join(" "),children:i}),x&&l&&e.jsx("span",{className:"ds-nav-rail__dot","aria-hidden":"true"})]}),A=o?e.jsx("a",{href:r?void 0:o,...N,children:j}):e.jsx("button",{type:"button",...N,children:j});return x?e.jsx(ve,{content:s,position:y,children:A}):A}function qt({children:t,className:s="",...n}){return e.jsx("div",{className:["ds-nav-rail__body","ds-scrollable",s].filter(Boolean).join(" "),...n,children:t})}function Yt({children:t,className:s="",...n}){return e.jsx("div",{className:["ds-nav-rail__header",s].filter(Boolean).join(" "),...n,children:t})}function Gt({children:t,className:s="",...n}){return e.jsx("div",{className:["ds-nav-rail__footer",s].filter(Boolean).join(" "),...n,children:t})}function Kt({className:t="",...s}){return e.jsx("hr",{className:["ds-nav-rail__divider",t].filter(Boolean).join(" "),...s})}function Jt({children:t,label:s="Recents",defaultOpen:n=!0,className:r="",...o}){const{collapsed:a}=c.useContext(pe),[i,l]=c.useState(n);return e.jsxs("div",{className:["ds-nav-rail__recents",r].filter(Boolean).join(" "),...o,children:[!a&&e.jsxs("button",{type:"button",className:["ds-nav-rail__recents-toggle",!i&&"ds-nav-rail__recents-toggle--closed"].filter(Boolean).join(" "),onClick:()=>l(d=>!d),"aria-expanded":i,children:[e.jsx("span",{className:"ds-nav-rail__recents-label",children:s}),e.jsx(S.ChevronDown,{size:12,strokeWidth:2,className:"ds-nav-rail__recents-chevron","aria-hidden":"true"})]}),(i||a)&&e.jsx("div",{className:"ds-nav-rail__recents-body",children:t})]})}const Zt=c.forwardRef(function({as:s="button",avatar:n,label:r,className:o="",...a},i){const{collapsed:l,side:d}=c.useContext(pe),u=d==="left"?"right":"left",p=["ds-nav-rail__item","ds-nav-rail__agent",o].filter(Boolean).join(" "),h=e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"ds-nav-rail__icon","aria-hidden":"true",children:n}),!l&&e.jsx("span",{className:"ds-nav-rail__label",children:r})]}),x=e.jsx(s,{ref:i,className:p,"aria-label":l?r:void 0,...s==="button"?{type:"button"}:{},...a,children:h});return l?e.jsx(ve,{content:r,position:u,children:x}):x});function Qt({avatar:t,label:s,selected:n=!1,disabled:r=!1,href:o,onClick:a,className:i="",...l}){const{collapsed:d,side:u}=c.useContext(pe),x={className:["ds-nav-rail__item","ds-nav-rail__agent",i].filter(Boolean).join(" "),onClick:r?void 0:a,"aria-current":n?"page":void 0,"aria-disabled":r?"true":void 0,tabIndex:r?-1:void 0,...{"data-selected":n||void 0,"data-disabled":r||void 0},...l},f=e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"ds-nav-rail__icon","aria-hidden":"true",children:t}),!d&&e.jsx("span",{className:"ds-nav-rail__label",children:s})]}),v=u==="left"?"right":"left",b=o?e.jsx("a",{href:r?void 0:o,...x,children:f}):e.jsx("button",{type:"button",...x,children:f});return d?e.jsx(ve,{content:s,position:v,children:b}):b}const es={info:S.Info,success:S.CheckCircle,warning:S.AlertTriangle,error:S.XCircle};function ts({children:t,variant:s="info",action:n,onAction:r,onDismiss:o,role:a,...i}){const l=es[s],d=a||(s==="error"?"alert":"status");return e.jsxs("div",{className:`ds-banner ds-banner--${s}`,role:d,...i,children:[l&&e.jsx("span",{className:"ds-banner-icon","aria-hidden":"true",children:e.jsx(l,{size:C[2],strokeWidth:1.5})}),e.jsx("span",{className:"ds-banner-text",children:t}),n&&e.jsx("button",{type:"button",className:"ds-banner-action",onClick:r,children:n}),o&&e.jsx("button",{type:"button",className:"ds-banner-dismiss",onClick:o,"aria-label":"Dismiss",children:e.jsx(S.X,{size:C[2],strokeWidth:1.5})})]})}function ss({trigger:t,items:s=[],open:n,onOpenChange:r,align:o="left",fullWidth:a=!1,className:i="",style:l,...d}){const[u,p]=c.useState(!1),[h,x]=c.useState(!1),f=n!==void 0,v=f?n:u,b=c.useRef(null),N=c.useRef(null),R=c.useRef(null),y=c.useRef(null),[j,A]=c.useState({}),D=c.useRef(null),M=150,W=()=>{if(f)r==null||r(!1);else{if(h)return;x(!0),D.current=setTimeout(()=>{p(!1),x(!1)},M)}},H=()=>{const _=!v;f?r==null||r(_):_?(clearTimeout(D.current),x(!1),p(!0)):W()},U=()=>{v||(f?r==null||r(!0):(clearTimeout(D.current),x(!1),p(!0)))};c.useEffect(()=>()=>clearTimeout(D.current),[]),c.useEffect(()=>{if(!v)return;const _=300,k=()=>{var E;const $=(E=b.current)==null?void 0:E.getBoundingClientRect();if(!$)return;const z=window.innerHeight-$.bottom,X=z<_+8&&$.top>z;A(o==="right"?X?{bottom:window.innerHeight-$.top+4,top:"auto",right:window.innerWidth-$.right}:{top:$.bottom+4,bottom:"auto",right:window.innerWidth-$.right}:X?{bottom:window.innerHeight-$.top+4,top:"auto",left:$.left}:{top:$.bottom+4,bottom:"auto",left:$.left})};return k(),window.addEventListener("scroll",k,!0),window.addEventListener("resize",k),()=>{window.removeEventListener("scroll",k,!0),window.removeEventListener("resize",k)}},[v,o]);const w=()=>{var k;const _=(k=R.current)==null?void 0:k.querySelector('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"]), input, select, textarea');_==null||_.focus()};c.useEffect(()=>{if(!v)return;const _=$=>{var z,X;!((z=b.current)!=null&&z.contains($.target))&&!((X=N.current)!=null&&X.contains($.target))&&W()},k=$=>{$.key==="Escape"&&(W(),w())};return document.addEventListener("mousedown",_),document.addEventListener("keydown",k),()=>{document.removeEventListener("mousedown",_),document.removeEventListener("keydown",k)}},[v]),c.useEffect(()=>{if(!v||!y.current||!N.current)return;const _=P(),k=y.current==="last"?_[_.length-1]:_[0];k==null||k.focus(),y.current=null},[v]);const P=()=>N.current?[...N.current.querySelectorAll('button:not([disabled]), a[href]:not([aria-disabled="true"]), [tabindex]:not([tabindex="-1"])')]:[],q=_=>{var k,$;if(_.key==="ArrowDown")_.preventDefault(),v?(k=P()[0])==null||k.focus():(y.current="first",U());else if(_.key==="ArrowUp")if(_.preventDefault(),!v)y.current="last",U();else{const z=P();($=z[z.length-1])==null||$.focus()}},F=_=>{var z,X,E,m;const k=P(),$=k.findIndex(T=>T===document.activeElement);switch(_.key){case"ArrowDown":_.preventDefault(),(z=k[Math.min($+1,k.length-1)])==null||z.focus();break;case"ArrowUp":_.preventDefault(),$<=0?w():(X=k[$-1])==null||X.focus();break;case"Home":_.preventDefault(),(E=k[0])==null||E.focus();break;case"End":_.preventDefault(),(m=k[k.length-1])==null||m.focus();break;case"Tab":W();break}},B=v&&e.jsx("div",{ref:N,role:"menu","data-ds-portal":"",className:["ds-dropdown__menu",`ds-dropdown__menu--${o}`,h&&"ds-dropdown__menu--closing"].filter(Boolean).join(" "),style:j,onKeyDown:F,children:s.map((_,k)=>{if(_.separator)return e.jsx("div",{className:"ds-dropdown__separator"},k);if(_.type==="section")return e.jsxs("div",{className:"ds-dropdown__section",children:[_.label&&e.jsx("div",{className:"ds-dropdown__section-label",children:_.label}),e.jsx("div",{className:"ds-dropdown__section-content",children:_.content})]},k);const $=!!_.href,z=$?"a":"button",X=$?{href:_.disabled?void 0:_.href,"aria-disabled":_.disabled?"true":void 0}:{type:"button",disabled:_.disabled};return e.jsxs(z,{role:"menuitem",className:["ds-dropdown__item",_.danger&&"ds-dropdown__item--danger"].filter(Boolean).join(" "),...X,onClick:()=>{var E;(E=_.onClick)==null||E.call(_),W()},children:[_.icon&&e.jsx("span",{className:"ds-dropdown__item-icon",children:_.icon}),e.jsx("span",{className:"ds-dropdown__item-label",children:_.label}),_.shortcut&&e.jsx("span",{className:"ds-dropdown__item-shortcut",children:_.shortcut})]},k)})});return e.jsxs("div",{ref:b,className:["ds-dropdown",a&&"ds-dropdown--full-width",i].filter(Boolean).join(" "),style:l,...d,children:[e.jsx("div",{ref:R,className:"ds-dropdown__trigger",onClick:H,onKeyDown:q,children:t}),typeof document<"u"&&ue.createPortal(B,document.body)]})}function ns({value:t=0,size:s="m",variant:n="default",showValue:r=!1,min:o=2,animate:a=!0}){const i=Math.min(100,Math.max(0,t)),l=Math.max(o,i),d=n==="auto"?i>=70?"success":i>=50?"warning":"danger":n;return e.jsxs("div",{className:["ds-progress",`ds-progress--${s}`,!a&&"ds-progress--instant"].filter(Boolean).join(" "),role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,children:[e.jsx("div",{className:"ds-progress__track",children:e.jsx("div",{className:`ds-progress__fill ds-progress__fill--${d}`,style:{width:`${l}%`}})}),r&&e.jsxs("span",{className:"ds-progress__value",children:[Math.round(i),"%"]})]})}const rs=t=>1-Math.pow(1-t,3),as=()=>typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function Fe(t,{duration:s=600}={}){const[n,r]=c.useState(t),o=c.useRef(t),a=c.useRef(null);return c.useEffect(()=>{if(as()){r(t),o.current=t;return}const i=o.current,l=t-i;if(l===0)return;let d=null;const u=p=>{d||(d=p);const h=Math.min((p-d)/s,1);r(i+l*rs(h)),h<1?a.current=requestAnimationFrame(u):o.current=t};return a.current=requestAnimationFrame(u),()=>cancelAnimationFrame(a.current)},[t,s]),n}function os({value:t,duration:s=600,decimals:n=0,prefix:r="",suffix:o=""}){const i=Fe(t,{duration:s}).toFixed(n);return`${r}${i}${o}`}function Oe({threshold:t=.1,rootMargin:s="0px",once:n=!1}={}){const r=c.useRef(null),[o,a]=c.useState(!1);return c.useEffect(()=>{const i=r.current;if(!i)return;const l=new IntersectionObserver(([d])=>{d.isIntersecting?(a(!0),n&&l.disconnect()):n||a(!1)},{threshold:t,rootMargin:s});return l.observe(i),()=>l.disconnect()},[t,s,n]),{ref:r,inView:o}}function is({children:t,as:s="div",once:n=!1,threshold:r=.1,rootMargin:o="0px",onEnter:a,onLeave:i,...l}){const{ref:d,inView:u}=Oe({threshold:r,rootMargin:o,once:n}),p=c.useRef(!1);return c.useEffect(()=>{u&&!p.current&&(a==null||a()),!u&&p.current&&(i==null||i()),p.current=u},[u]),e.jsx(s,{ref:d,...l,children:typeof t=="function"?t(u):t})}const Ae={default:S.Info,success:S.CheckCircle,warning:S.AlertTriangle,error:S.XCircle};let de=[];const ye=new Set;function We(){ye.forEach(t=>t([...de]))}function ls(t){de=[...de,t],We()}function cs(t){de=de.filter(s=>s.id!==t),We()}function ds(){const t=(s,n={})=>{ls({id:`${Date.now()}-${Math.random()}`,message:s,type:"default",duration:4e3,...n})};return t.success=(s,n)=>t(s,{...n,type:"success"}),t.error=(s,n)=>t(s,{...n,type:"error"}),t.warning=(s,n)=>t(s,{...n,type:"warning"}),{toast:t}}function us({data:t,onDismiss:s}){const[n,r]=c.useState(!1),o=c.useRef(null);c.useEffect(()=>(requestAnimationFrame(()=>r(!0)),t.duration>0&&(o.current=setTimeout(()=>a(),t.duration)),()=>clearTimeout(o.current)),[]);function a(){r(!1),setTimeout(()=>s(t.id),250)}const i=Ae[t.type]??Ae.default;return e.jsxs("div",{className:["ds-toast",`ds-toast--${t.type}`,n&&"ds-toast--visible"].filter(Boolean).join(" "),role:t.type==="error"?"alert":"status","aria-live":"polite",children:[e.jsx("div",{className:"ds-toast__icon",children:e.jsx(i,{size:C[3],strokeWidth:1.5})}),e.jsx("span",{className:"ds-toast__message",children:t.message}),e.jsx("button",{className:"ds-toast__close",onClick:a,"aria-label":"Закрыть",children:e.jsx(S.X,{size:C[3],strokeWidth:1.5})})]})}function fs({position:t="bottom-right"}){const[s,n]=c.useState(()=>[...de]);return c.useEffect(()=>(ye.add(n),()=>ye.delete(n)),[]),!s.length||typeof document>"u"?null:ue.createPortal(e.jsx("div",{"data-ds-portal":"",className:["ds-toast-container",`ds-toast-container--${t}`].join(" "),children:s.map(r=>e.jsx(us,{data:r,onDismiss:cs},r.id))}),document.body)}const ms={running:e.jsx(oe,{size:"xs",variant:"info",children:"Running..."}),success:e.jsx(oe,{size:"xs",variant:"success",children:"Done"}),error:e.jsx(oe,{size:"xs",variant:"error",children:"Error"})};function Ue({label:t,status:s="idle",icon:n,badge:r,defaultExpanded:o=!1,expanded:a,onToggle:i,children:l,className:d="",...u}){const p=s==="running",h=e.jsxs("span",{className:"ds-tool-card__title-row",children:[n&&e.jsx("span",{className:"ds-tool-card__icon",children:n}),e.jsx("span",{className:"ds-tool-card__label",children:t}),ms[s],r]});return l?e.jsx("div",{className:["ds-tool-card",p&&"ds-tool-card--running",d].filter(Boolean).join(" "),...u,children:e.jsx(xe,{title:h,padding:"s",defaultExpanded:o,expanded:p?!1:a,onToggle:p?void 0:i,children:e.jsx("div",{className:"ds-tool-card__body",children:l})})}):e.jsx("div",{className:["ds-tool-card","ds-tool-card--bubble",d].filter(Boolean).join(" "),...u,children:h})}function Ve({text:t,size:s="xs",timeout:n=800,"aria-label":r="Copy to clipboard",...o}){const[a,i]=c.useState(!1),l=d=>{d.currentTarget.blur(),navigator.clipboard.writeText(t).then(()=>{i(!0),setTimeout(()=>i(!1),n)})};return e.jsx(ee,{variant:"ghost",size:s,state:a?"success":"idle",icon:e.jsx(S.Copy,{size:C[1],strokeWidth:1.5}),"aria-label":r,onClick:l,...o})}function ps({content:t,streaming:s=!1,...n}){const[r,o]=c.useState(s);return c.useEffect(()=>{o(!!s)},[s]),e.jsx(xe,{expanded:r,onToggle:o,padding:"s",title:e.jsxs("div",{className:"ds-reasoning__title",children:[e.jsx(S.Brain,{size:C[1],strokeWidth:1.5,className:"ds-reasoning__icon"}),e.jsx(Le,{secondary:!0,children:"Thinking"})]}),...n,children:e.jsxs(Ee,{secondary:!0,style:{whiteSpace:"pre-wrap"},children:[t,s&&e.jsx("span",{className:"ds-cursor ds-cursor--line"})]})})}function hs({count:t,current:s=0,done:n=[],onChange:r,showCounter:o=!0,className:a="","aria-label":i="Steps",...l}){return e.jsxs("div",{className:["ds-step-indicator",a].filter(Boolean).join(" "),...l,children:[e.jsx("div",{className:"ds-step-indicator__dots",role:"tablist","aria-label":i,children:Array.from({length:t},(d,u)=>{const p=u===s,h=n.includes(u)&&!p,x=r&&(u<=s||n.includes(u)),f=["ds-step-indicator__dot",p&&"ds-step-indicator__dot--active",h&&"ds-step-indicator__dot--done"].filter(Boolean).join(" ");return e.jsx("button",{type:"button",className:f,role:"tab","aria-selected":p,"aria-label":`Step ${u+1}`,disabled:!x||u===s,onClick:()=>r==null?void 0:r(u),children:h?e.jsx(S.Check,{size:8,strokeWidth:3}):null},u)})}),o&&e.jsxs(Ee,{secondary:!0,className:"ds-step-indicator__counter",children:[s+1," / ",t]})]})}function xs({content:t,isStreaming:s=!1,cursor:n="line",onChunk:r,className:o="",...a}){const i=c.useRef(t);return c.useEffect(()=>{t!==i.current&&(r==null||r(t),i.current=t)},[t,r]),e.jsxs("span",{className:["ds-streaming-text",o].filter(Boolean).join(" "),...a,children:[t,s&&n!=="none"&&e.jsx("span",{className:`ds-cursor ds-cursor--${n}`,"aria-hidden":"true"})]})}function vs({role:t="assistant",header:s,footer:n,attachments:r,isStreaming:o=!1,children:a,className:i="",...l}){const d=["ds-chat-message",`ds-chat-message--${t}`,o&&"ds-chat-message--streaming",i].filter(Boolean).join(" ");return t==="system"?e.jsx("div",{className:d,...l,children:e.jsx("span",{className:"ds-chat-message__system-label",children:a})}):t==="user"?e.jsxs("div",{className:d,...l,children:[r&&e.jsx("div",{className:"ds-chat-message__attachments",children:r}),e.jsx("div",{className:"ds-chat-message__bubble",children:a}),n&&e.jsx("div",{className:"ds-chat-message__footer",children:n})]}):e.jsxs("div",{className:d,...l,children:[s&&e.jsx("div",{className:"ds-chat-message__header",children:s}),r&&e.jsx("div",{className:"ds-chat-message__attachments",children:r}),e.jsx("div",{className:"ds-chat-message__body",children:a}),n&&e.jsx("div",{className:"ds-chat-message__footer",children:n})]})}function bs(t,{containerRef:s,smartPause:n=!0}={}){const r=c.useRef(!1),o=c.useRef(0);c.useEffect(()=>{const a=s==null?void 0:s.current;if(!a)return;const i=()=>{const l=a.scrollHeight-a.scrollTop-a.clientHeight<64;!l&&a.scrollTop<o.current&&(r.current=!0),l&&(r.current=!1),o.current=a.scrollTop};return a.addEventListener("scroll",i,{passive:!0}),()=>a.removeEventListener("scroll",i)},[s]),c.useEffect(()=>{const a=s==null?void 0:s.current;a&&(n&&r.current||(a.scrollTop=a.scrollHeight))},t)}function Xe({prompts:t,enabled:s,typingSpeed:n=38,erasingSpeed:r=18,holdTime:o=2200,betweenTime:a=380,manualPauseMs:i=5e3}){const[l,d]=c.useState(0),[u,p]=c.useState(""),h=c.useRef("typing"),x=c.useRef(0),f=c.useRef(0),v=c.useRef(null),b=c.useRef(0);c.useEffect(()=>{f.current=l},[l]),c.useEffect(()=>{if(v.current&&(clearTimeout(v.current),v.current=null),!s||t.length===0){p(""),x.current=0,h.current="typing";return}const A=()=>{const D=Date.now();if(b.current>D){v.current=setTimeout(A,b.current-D);return}const M=t[f.current%t.length]??"";h.current==="typing"?(x.current+=1,p(M.slice(0,x.current)),x.current>=M.length?(h.current="holding",v.current=setTimeout(A,o)):v.current=setTimeout(A,n+Math.random()*28)):h.current==="holding"?(h.current="erasing",v.current=setTimeout(A,r)):(x.current=Math.max(0,x.current-1),p(M.slice(0,x.current)),x.current<=0?(h.current="typing",f.current=(f.current+1)%t.length,d(f.current),v.current=setTimeout(A,a)):v.current=setTimeout(A,r))};return v.current=setTimeout(A,260),()=>{v.current&&clearTimeout(v.current)}},[s,t,n,r,o,a]);const N=A=>{if(t.length===0)return;const D=(A%t.length+t.length)%t.length,M=t[D];f.current=D,x.current=M.length,h.current="holding",b.current=Date.now()+i,d(D),p(M)},R=()=>N(f.current+1),y=()=>N(f.current-1),j=t[l%t.length]??"";return{displayed:u,currentPrompt:j,index:l,next:R,prev:y}}let _s=0;function js({value:t="",onChange:s,onSubmit:n,onStop:r,onKeyDown:o,loading:a=!1,disabled:i=!1,placeholder:l="Let's get things done...",animatedPlaceholders:d,attachments:u,images:p,onAttachFiles:h,onAttachImages:x,onRemoveAttachment:f,onRemoveImage:v,acceptImage:b,acceptFile:N,maxImages:R,maxImageSize:y,leftSlot:j,rightSlot:A,className:D="",...M}){const W=c.useRef(null),H=c.useRef(null),U=c.useRef(0),[w,P]=c.useState(!1),[q,F]=c.useState([]),B=g=>{const I=++_s;F(Y=>[...Y,{id:I,msg:g}]),setTimeout(()=>F(Y=>Y.filter(G=>G.id!==I)),6e3)},_=g=>F(I=>I.filter(Y=>Y.id!==g)),k=g=>g.type.startsWith("image/"),$=()=>!0,z=b??k,X=N??$,E=g=>{const I=[],Y=[],G=[],K=[];let Z=0,ie=R!=null?R-((p==null?void 0:p.length)??0):1/0;for(const Q of g)z(Q)?y&&Q.size>y?G.push(Q.name):ie>0?(I.push(Q),ie--):Z++:X(Q)?Y.push(Q):K.push(Q.name);return{imageFiles:I,docFiles:Y,tooLarge:G,skipped:K,limitExceeded:Z}},m=g=>{const{imageFiles:I,docFiles:Y,tooLarge:G,skipped:K,limitExceeded:Z}=E(g);G.length&&B(`File${G.length>1?"s":""} too large${y?` (max ${y/1024/1024}MB)`:""}: ${G.join(", ")}`),K.length&&B(`Skipped unsupported file${K.length>1?"s":""}: ${K.join(", ")}`),Z&&B(`Max ${R} images per message`),x&&I.length&&x(I);const ie=Y.concat(x?[]:I);h&&ie.length&&h(ie)};c.useEffect(()=>{const g=H.current;g&&(g.style.height="auto",g.style.height=`${Math.min(g.scrollHeight,200)}px`)},[t]),c.useEffect(()=>{const g=I=>{var G,K,Z;if(a||i)return;const Y=(G=I.target)==null?void 0:G.tagName;Y==="INPUT"||Y==="TEXTAREA"||Y==="SELECT"||(K=I.target)!=null&&K.isContentEditable||I.ctrlKey||I.metaKey||I.altKey||I.key.length!==1&&I.key!=="Backspace"&&I.key!=="Delete"||(Z=H.current)==null||Z.focus()};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[a,i]);const T=g=>{g.preventDefault(),U.current++,g.dataTransfer.types.includes("Files")&&P(!0)},L=g=>{g.preventDefault(),U.current--,U.current===0&&P(!1)},O=g=>g.preventDefault(),te=g=>{g.preventDefault(),U.current=0,P(!1);const I=Array.from(g.dataTransfer.files);I.length&&m(I)},ne=g=>{const I=Array.from(g.target.files||[]);W.current&&(W.current.value=""),I.length&&m(I)},V=g=>{var Q;if(!x)return;const I=(Q=g.clipboardData)==null?void 0:Q.items;if(!I)return;const Y=[];for(const Ye of I){const Se=Ye.getAsFile();Se&&Y.push(Se)}if(Y.length===0)return;const{imageFiles:G,tooLarge:K,skipped:Z,limitExceeded:ie}=E(Y);K.length&&B(`File${K.length>1?"s":""} too large: ${K.join(", ")}`),Z.length&&B(`Skipped unsupported file${Z.length>1?"s":""}: ${Z.join(", ")}`),ie&&B(`Max ${R} images per message`),G.length&&(g.preventDefault(),x(G))},J=!a&&!i&&!!(d!=null&&d.length)&&t.length===0,re=Xe({prompts:d??[],enabled:J}),be=g=>{if(J){if(g.key==="ArrowDown"||g.key==="ArrowRight"){g.preventDefault(),re.next();return}if(g.key==="ArrowUp"||g.key==="ArrowLeft"){g.preventDefault(),re.prev();return}if(g.key==="Tab"&&!g.shiftKey){g.preventDefault(),s==null||s(re.currentPrompt);return}}o==null||o(g)},qe=(t.trim()||(p==null?void 0:p.length)>0||(u==null?void 0:u.length)>0)&&!i,Re=h||x;return e.jsxs("div",{className:["ds-prompt-input",D].filter(Boolean).join(" "),...M,children:[Re&&e.jsx("input",{ref:W,type:"file",multiple:!0,accept:"*/*",className:"ds-prompt-input__file-input",onChange:ne}),e.jsxs("div",{className:["ds-prompt-input__box",w&&"ds-prompt-input__box--dragging"].filter(Boolean).join(" "),onDragEnter:T,onDragLeave:L,onDragOver:O,onDrop:te,children:[w&&e.jsx("div",{className:"ds-prompt-input__drag-overlay",children:"Drop files here"}),e.jsx("textarea",{ref:H,value:t,onChange:g=>s==null?void 0:s(g.target.value),onKeyDown:be,onPaste:V,placeholder:J?"":l,disabled:a||i,rows:1,className:["ds-prompt-input__textarea",J&&"ds-prompt-input__textarea--anim"].filter(Boolean).join(" ")}),J&&e.jsxs("div",{className:"ds-prompt-input__anim","aria-hidden":"true",children:[e.jsx("span",{className:"ds-prompt-input__anim-text",children:re.displayed}),e.jsx("span",{className:"ds-prompt-input__anim-cursor"})]}),p&&p.length>0&&e.jsx("div",{className:"ds-prompt-input__images",children:p.map((g,I)=>e.jsxs("div",{className:"ds-prompt-input__image-thumb",children:[e.jsx("img",{src:g.preview,alt:""}),e.jsx("button",{className:"ds-prompt-input__image-remove",onClick:()=>v==null?void 0:v(I),"aria-label":"Remove image",type:"button",children:e.jsx(S.X,{size:12,strokeWidth:2})})]},I))}),q.length>0&&e.jsx("div",{className:"ds-prompt-input__warnings",children:q.map(g=>e.jsxs("div",{className:"ds-prompt-input__warning",role:"alert",children:[e.jsx("span",{children:g.msg}),e.jsx("button",{type:"button",className:"ds-prompt-input__warning-close",onClick:()=>_(g.id),"aria-label":"Dismiss",children:e.jsx(S.X,{size:C[1],strokeWidth:1.5})})]},g.id))}),u&&u.length>0&&e.jsx("div",{className:"ds-prompt-input__attachments",children:u.map((g,I)=>e.jsx(oe,{size:"xs",children:e.jsxs("span",{className:"ds-prompt-input__badge-content",children:[g.uploading?e.jsx(S.Loader,{size:C[1],strokeWidth:1.5,className:"spin"}):e.jsx(S.Paperclip,{size:C[1],strokeWidth:1.5}),g.filename,g.uploading?e.jsx("span",{className:"ds-prompt-input__uploading",children:"Uploading..."}):e.jsx("button",{type:"button",className:"ds-prompt-input__remove-btn",onClick:()=>f==null?void 0:f(I),children:e.jsx(S.X,{size:C[1],strokeWidth:1.5})})]})},I))}),e.jsxs("div",{className:"ds-prompt-input__toolbar",children:[Re&&e.jsx(ee,{variant:"ghost",size:"xs",icon:e.jsx(S.Paperclip,{size:C[2],strokeWidth:1.5}),"aria-label":"Attach files",onClick:()=>{var g;return(g=W.current)==null?void 0:g.click()}}),j,A,e.jsx("div",{className:"ds-prompt-input__spacer"}),a?e.jsx(ee,{variant:"primary",size:"xs",icon:e.jsx(S.Square,{size:C[2],strokeWidth:1.5}),onClick:r,"aria-label":"Stop"}):e.jsx(ee,{variant:"primary",size:"xs",icon:e.jsx(S.ArrowUp,{size:C[2],strokeWidth:1.5}),onClick:n,disabled:!qe,"aria-label":"Send"})]})]})]})}const Be={fast:0,standard:1,premium:2},Ie={fast:"data-5",standard:"data-3",premium:"data-6"};function Ns({models:t=[],value:s,onChange:n,size:r="xs",minTier:o,showAutoOption:a=!1,groupByTier:i=!0,className:l="",...d}){const[u,p]=c.useState(!1),h=c.useRef(null),x=c.useRef(null),f=c.useRef(null),[v,b]=c.useState({}),N=t.filter(w=>!o||w.name==="auto"?!0:(Be[w.tier]??1)>=(Be[o]??1)),R=N.find(w=>w.name==="auto"),y=N.filter(w=>w.name!=="auto"),j=t.find(w=>w.name===s),D=new Set(y.map(w=>w.tier).filter(Boolean)).size>1;c.useEffect(()=>{if(!u)return;const w=320,P=()=>{var $;const B=($=x.current)==null?void 0:$.getBoundingClientRect();if(!B)return;const _=window.innerHeight-B.bottom,k=_<w+8&&B.top>_;b({position:"fixed",zIndex:"var(--z-dropdown, 500)",left:B.left,...k?{bottom:window.innerHeight-B.top+4,top:"auto"}:{top:B.bottom+4,bottom:"auto"}})};P(),window.addEventListener("scroll",P,!0),window.addEventListener("resize",P);const q=B=>{var _,k;!((_=h.current)!=null&&_.contains(B.target))&&!((k=f.current)!=null&&k.contains(B.target))&&p(!1)},F=B=>{B.key==="Escape"&&p(!1)};return document.addEventListener("mousedown",q),document.addEventListener("keydown",F),()=>{window.removeEventListener("scroll",P,!0),window.removeEventListener("resize",P),document.removeEventListener("mousedown",q),document.removeEventListener("keydown",F)}},[u]);const M=w=>{n==null||n(w),p(!1)},W=w=>e.jsxs("button",{type:"button",className:["ds-model-picker__item",w.name===s&&"ds-model-picker__item--active"].filter(Boolean).join(" "),onClick:()=>M(w.name),children:[w.icon?e.jsx("span",{className:"ds-model-picker__item-icon",children:w.icon}):e.jsx(S.Cpu,{size:12,strokeWidth:1.5,className:"ds-model-picker__item-icon"}),e.jsx("span",{className:"ds-model-picker__item-name",children:w.displayName||w.name}),D&&w.tier&&e.jsx(oe,{size:"xs",variant:Ie[w.tier]||"default",children:w.tier})]},w.name),H=()=>!i||!D?y.map(W):["fast","standard","premium"].flatMap(w=>{const P=y.filter(q=>q.tier===w);return P.length?[e.jsx("div",{className:"ds-model-picker__group-label","data-tier":w,children:w.charAt(0).toUpperCase()+w.slice(1)},`lbl-${w}`),...P.map(W)]:[]}),U=u&&e.jsxs("div",{ref:f,className:"ds-model-picker__menu ds-scrollable","data-ds-portal":"",style:v,children:[a&&R&&e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",className:["ds-model-picker__item","ds-model-picker__item--auto",s==="auto"&&"ds-model-picker__item--active"].filter(Boolean).join(" "),onClick:()=>M("auto"),children:[e.jsx(S.Zap,{size:12,strokeWidth:1.5,className:"ds-model-picker__item-icon"}),e.jsx("span",{className:"ds-model-picker__item-name",children:"Auto (smart routing)"})]}),y.length>0&&e.jsx("div",{className:"ds-model-picker__separator"})]}),H()]});return e.jsxs("div",{ref:h,className:["ds-model-picker",l].filter(Boolean).join(" "),...d,children:[e.jsxs("button",{ref:x,type:"button",className:"ds-model-picker__trigger",onClick:()=>p(w=>!w),"aria-haspopup":"listbox","aria-expanded":u,children:[j!=null&&j.icon?e.jsx("span",{children:j.icon}):e.jsx(S.Cpu,{size:12,strokeWidth:1.5}),e.jsx("span",{className:"ds-model-picker__trigger-name",children:(j==null?void 0:j.displayName)||(j==null?void 0:j.name)||s}),D&&(j==null?void 0:j.tier)&&e.jsx(oe,{size:"xs",variant:Ie[j.tier]||"default",children:j.tier})]}),typeof document<"u"&&ue.createPortal(U,document.body)]})}const gs=({filename:t,pages:s})=>e.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"var(--space-2)",minWidth:0},children:[e.jsx("span",{className:"ds-sources-panel__filename",children:t}),s.length>0&&e.jsx("span",{className:"ds-sources-panel__pages",children:ke(s)})]});function ke(t){return t!=null&&t.length?"p. "+t.join(", "):null}function ws(t){const s=new Map;for(const n of t)s.has(n.filename)||s.set(n.filename,{filename:n.filename,url:n.url,items:[]}),s.get(n.filename).items.push(n);return[...s.values()]}function ys({sources:t=[],layout:s="list",title:n="Sources",maxVisible:r=5,onSourceClick:o}){const[a,i]=c.useState(!1),l=ws(t),d=l.length>r,u=a?l:l.slice(0,r),p=t.some(x=>x.snippet),h=["ds-sources-panel",s==="compact"&&"ds-sources-panel--compact"].filter(Boolean).join(" ");return s==="compact"?e.jsxs("div",{className:h,children:[u.map(x=>{const f=x.items.map(b=>b.page).filter(Boolean),v=!!o;return e.jsxs("div",{className:`ds-sources-panel__compact-row${v?" ds-sources-panel__compact-row--clickable":""}`,onClick:v?()=>o(x.items[0]):void 0,children:[e.jsx(S.FileText,{size:C[1],strokeWidth:1.5,className:"ds-sources-panel__compact-icon"}),e.jsx("span",{className:"ds-sources-panel__filename",children:x.filename}),f.length>0&&e.jsx("span",{className:"ds-sources-panel__pages",children:ke(f)})]},x.filename)}),d&&!a&&e.jsxs("button",{className:"ds-sources-panel__more",onClick:()=>i(!0),children:["+",l.length-r," more sources"]})]}):e.jsxs("div",{className:h,children:[n&&e.jsx("div",{className:"ds-sources-panel__title",children:n}),u.map(x=>{const f=x.items.map(b=>b.page).filter(Boolean),v=!!o;return p?e.jsx(xe,{title:e.jsx(gs,{filename:x.filename,pages:f}),padding:"s",children:x.items.map((b,N)=>e.jsx("div",{className:`ds-sources-panel__snippet${v?" ds-sources-panel__snippet--clickable":""}`,onClick:v?()=>o(b):void 0,children:b.snippet??`p. ${b.page}`},N))},x.filename):e.jsxs("div",{className:`ds-sources-panel__row${v?" ds-sources-panel__row--clickable":""}`,onClick:v?()=>o(x.items[0]):void 0,children:[e.jsx("span",{className:"ds-sources-panel__filename",children:x.filename}),f.length>0&&e.jsx("span",{className:"ds-sources-panel__pages",children:ke(f)})]},x.filename)}),d&&!a&&e.jsxs("button",{className:"ds-sources-panel__more",onClick:()=>i(!0),children:["+",l.length-r," more sources"]})]})}function De(t){return t>=1e6?(t/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e3?(t/1e3).toFixed(1).replace(/\.0$/,"")+"K":String(t)}function ks({used:t,limit:s,size:n="s",showCount:r=!0,showPercent:o=!1,warningThreshold:a=.8,errorThreshold:i=1}){const l=s>0?t/s:0,d=Math.min(l*100,100),u=l>=i?"error":l>=a?"warning":"normal";return e.jsxs("div",{className:`ds-token-counter ds-token-counter--${n}`,role:"meter","aria-valuenow":t,"aria-valuemax":s,children:[e.jsx("div",{className:"ds-token-counter__track",children:e.jsx("div",{className:`ds-token-counter__fill ds-token-counter__fill--${u}`,style:{width:`${d}%`}})}),(r||o)&&e.jsxs("div",{className:`ds-token-counter__label ds-token-counter__label--${u}`,children:[r&&e.jsxs("span",{children:[De(t)," / ",De(s)]}),o&&e.jsxs("span",{style:{marginLeft:"auto"},children:[Math.round(l*100),"%"]})]})]})}const Ce=5;function Es(t){return t<.34?"low":t<.67?"medium":"high"}function Rs({value:t=0,size:s="xs",showLabel:n="none",layout:r="inline"}){const o=Math.max(0,Math.min(1,t)),a=Math.round(o*Ce),i=Es(o);return e.jsxs("div",{className:["ds-confidence-bar",`ds-confidence-bar--${s}`,`ds-confidence-bar--${i}`,r==="block"&&"ds-confidence-bar--block"].filter(Boolean).join(" "),children:[e.jsx("div",{className:"ds-confidence-bar__segments","aria-hidden":"true",children:Array.from({length:Ce},(l,d)=>e.jsx("div",{className:`ds-confidence-bar__seg${d<a?" ds-confidence-bar__seg--filled":""}`},d))}),n==="text"&&e.jsx("span",{className:"ds-confidence-bar__label",children:i})]})}const Ss={add:"+",remove:"-",context:" "};function _e({line:t,lineNumbers:s}){return e.jsxs("div",{className:`ds-diff-view__line ds-diff-view__line--${t.type}`,children:[s&&t.lineNo!=null&&e.jsx("span",{className:"ds-diff-view__lineno",children:t.lineNo}),e.jsx("span",{className:"ds-diff-view__prefix",children:Ss[t.type]}),e.jsx("span",{className:"ds-diff-view__text",children:t.text})]})}function Ts({lines:t=[],layout:s="inline",wordWrap:n=!1,lineNumbers:r=!0,maxHeight:o,title:a}){const i=["ds-diff-view",`ds-diff-view--${s}`,n&&"ds-diff-view--wrap"].filter(Boolean).join(" "),l=o?{maxHeight:o,overflowY:"auto"}:void 0;if(s==="split"){const d=t.filter(p=>p.type==="remove"||p.type==="context"),u=t.filter(p=>p.type==="add"||p.type==="context");return e.jsxs("div",{className:i,children:[a&&e.jsx("div",{className:"ds-diff-view__title",children:a}),e.jsxs("div",{className:"ds-diff-view__body ds-scrollable",style:l,children:[e.jsx("div",{className:"ds-diff-view__split-col ds-scrollable",children:d.map((p,h)=>e.jsx(_e,{line:p,lineNumbers:r},h))}),e.jsx("div",{className:"ds-diff-view__split-col ds-scrollable",children:u.map((p,h)=>e.jsx(_e,{line:p,lineNumbers:r},h))})]})]})}return e.jsxs("div",{className:i,children:[a&&e.jsx("div",{className:"ds-diff-view__title",children:a}),e.jsx("div",{className:"ds-diff-view__body ds-scrollable",style:l,children:t.map((d,u)=>e.jsx(_e,{line:d,lineNumbers:r},u))})]})}function He({value:t="idle",onLike:s,onDislike:n,className:r="",...o}){const a=t!=="idle";return e.jsxs("div",{className:["ds-message-feedback",a&&"ds-message-feedback--voted",r].filter(Boolean).join(" "),...o,children:[(!a||t==="liked")&&e.jsx("button",{className:["ds-message-feedback__btn",t==="liked"&&"ds-message-feedback__btn--liked"].filter(Boolean).join(" "),onClick:s,disabled:a,"aria-label":"Like","aria-pressed":t==="liked",children:e.jsx(S.ThumbsUp,{size:C[1],strokeWidth:1.5,fill:t==="liked"?"currentColor":"none"})}),(!a||t==="disliked")&&e.jsx("button",{className:["ds-message-feedback__btn",t==="disliked"&&"ds-message-feedback__btn--disliked"].filter(Boolean).join(" "),onClick:n,disabled:a,"aria-label":"Dislike","aria-pressed":t==="disliked",children:e.jsx(S.ThumbsDown,{size:C[1],strokeWidth:1.5,fill:t==="disliked"?"currentColor":"none"})})]})}function $s(t){const s=t instanceof Date?t:new Date(t);if(isNaN(s))return null;const n=new Date,r=s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),o=new Date(n.getFullYear(),n.getMonth(),n.getDate()),a=new Date(o-864e5);if(s>=o)return r;if(s>=a)return`Yesterday ${r}`;const i=s.getDate(),l=s.toLocaleString([],{month:"short"});return`${i} ${l} ${r}`}function As({role:t="assistant",text:s,timestamp:n,feedbackValue:r="idle",onLike:o,onDislike:a,className:i="",...l}){const d=t==="assistant"&&(o||a),u=!!s,p=n?$s(n):null;return!d&&!u&&!p?null:e.jsxs("div",{className:["ds-message-footer",`ds-message-footer--${t}`,i].filter(Boolean).join(" "),...l,children:[t==="user"&&p&&e.jsx("span",{className:"ds-message-footer__timestamp ds-message-action",children:p}),d&&e.jsx(He,{className:"ds-message-action",value:r,onLike:o,onDislike:a}),u&&e.jsx(Ve,{className:"ds-message-action",text:s}),t==="assistant"&&p&&e.jsx("span",{className:"ds-message-footer__timestamp ds-message-action",children:p})]})}function Bs({label:t,className:s="",...n}){return e.jsxs("span",{className:["ds-thinking-dot",s].filter(Boolean).join(" "),...n,children:[e.jsx("span",{className:"ds-thinking-dot__pulse"}),t&&e.jsx("span",{className:"ds-thinking-dot__label",children:t})]})}function Is({variant:t="light",glow:s,mask:n=!0,style:r,...o}){const a=t==="dark",i=s??a,l=a?"rgba(255,250,250,0.05)":"var(--color-border-light)",d=a?"rgba(255,250,250,0.025)":"color-mix(in srgb, var(--color-border-light) 50%, transparent)";return e.jsx("div",{style:{position:"absolute",inset:0,pointerEvents:"none",overflow:"hidden",zIndex:0,...i&&{background:"radial-gradient(ellipse 1000px 500px at 50% 30%, rgba(234,100,100,0.18), transparent 70%)"},...r},...o,children:e.jsx("div",{style:{position:"absolute",inset:0,backgroundImage:[`linear-gradient(${l} 1px, transparent 1px)`,`linear-gradient(90deg, ${l} 1px, transparent 1px)`,`linear-gradient(${d} 1px, transparent 1px)`,`linear-gradient(90deg, ${d} 1px, transparent 1px)`].join(", "),backgroundSize:"80px 80px, 80px 80px, 16px 16px, 16px 16px",backgroundPosition:"-1px -1px, -1px -1px, -1px -1px, -1px -1px",...n&&{WebkitMaskImage:"radial-gradient(ellipse at center, #000 30%, transparent 85%)",maskImage:"radial-gradient(ellipse at center, #000 30%, transparent 85%)"}}})})}function Ds({children:t,axis:s="y",style:n,className:r="",...o}){const a=s==="x"?{overflowX:"auto",overflowY:"hidden"}:s==="both"?{overflow:"auto"}:{overflowY:"auto",overflowX:"hidden"};return e.jsx("div",{className:`ds-scrollable ${r}`,style:{...a,...n},...o,children:t})}const je=280,Cs=22,Ps=14,ae=8,he=6,Ls=200;function Ms(t){return t?typeof t=="function"?t():typeof t=="string"?document.querySelector(t):null:null}function zs(t,s,n,r){const o=window.innerWidth,a=window.innerHeight;if(a-t.bottom>=s+r+ae)return"bottom";if(t.top>=s+r+ae)return"top";if(o-t.right>=n+r+ae)return"right";if(t.left>=n+r+ae)return"left";const i=Math.max(t.top,a-t.bottom,o-t.right,t.left);return i===a-t.bottom?"bottom":i===t.top?"top":i===o-t.right?"right":"left"}function Fs(t,s,n,r,o){const a=window.innerWidth,i=window.innerHeight;let l,d;switch(t){case"top":l=s.top-n-o,d=s.left+s.width/2-r/2;break;case"bottom":l=s.bottom+o,d=s.left+s.width/2-r/2;break;case"left":l=s.top+s.height/2-n/2,d=s.left-r-o;break;default:l=s.top+s.height/2-n/2,d=s.right+o}const u=Math.max(ae,Math.min(a-r-ae,d));return{top:Math.max(ae,Math.min(i-n-ae,l)),left:u,arrowOffset:d-u}}function Os({steps:t,currentStep:s,onNext:n,onBack:r,onSkip:o,onFinish:a,overlay:i=!0,ring:l=!0,labelNext:d="Next",labelBack:u="Back",labelSkip:p="Skip tour",labelFinish:h="Done",statePrimary:x="idle",stateBack:f="idle"}){const v=c.useRef(null),b=c.useRef(t),N=c.useRef(s),R=c.useRef(l);b.current=t,N.current=s,R.current=l;const[y,j]=c.useState(!1),[A,D]=c.useState({position:"fixed",visibility:"hidden",width:je}),[M,W]=c.useState("bottom"),[H,U]=c.useState(null),w=c.useRef(!1),P=t[s],q=s===t.length-1,F=c.useCallback(()=>{const B=b.current[N.current];if(!B||!v.current)return;const _=Ms(B.target);if(!_)return;const k=_.getBoundingClientRect(),z=v.current.getBoundingClientRect().height||160,X=je,E=R.current?Cs:Ps,m=B.position||zs(k,z,X,E),{top:T,left:L,arrowOffset:O}=Fs(m,k,z,X,E);W(m),D({position:"fixed",top:T,left:L,width:je,visibility:"visible","--arrow-offset":`${O}px`}),U({top:k.top-he,left:k.left-he,width:k.width+he*2,height:k.height+he*2})},[]);return c.useEffect(()=>{window.addEventListener("scroll",F,!0),window.addEventListener("resize",F);const B=requestAnimationFrame(()=>{F(),j(!0),w.current=!0});return()=>{cancelAnimationFrame(B),window.removeEventListener("scroll",F,!0),window.removeEventListener("resize",F)}},[]),c.useEffect(()=>{if(!w.current)return;j(!1);const B=setTimeout(()=>{D(_=>({..._,visibility:"hidden"})),requestAnimationFrame(()=>{F(),j(!0)})},Ls+20);return()=>clearTimeout(B)},[s]),c.useEffect(()=>{y&&v.current&&v.current.focus({preventScroll:!0})},[y]),c.useEffect(()=>{const B=_=>{_.key==="Escape"&&o()};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[o]),c.useEffect(()=>{if(!y)return;const B=_=>{if(_.key!=="Tab"||!v.current)return;const k=Array.from(v.current.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'));if(!k.length)return;const $=k[0],z=k[k.length-1];_.shiftKey&&document.activeElement===$?(_.preventDefault(),z.focus()):!_.shiftKey&&document.activeElement===z&&(_.preventDefault(),$.focus())};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[y]),!P||typeof document>"u"?null:ue.createPortal(e.jsxs(e.Fragment,{children:[H&&e.jsx("div",{className:["ds-coachmark__spotlight",i&&"ds-coachmark__spotlight--overlay",!l&&"ds-coachmark__spotlight--no-ring",y&&"ds-coachmark__spotlight--visible"].filter(Boolean).join(" "),style:H,"aria-hidden":"true"}),e.jsxs("div",{ref:v,"data-ds-portal":"",role:"dialog","aria-modal":"false","aria-live":"polite","aria-label":P.title??`Step ${s+1} of ${t.length}`,className:["ds-coachmark__bubble",`ds-coachmark__bubble--${M}`,y&&"ds-coachmark__bubble--visible"].filter(Boolean).join(" "),style:A,tabIndex:-1,children:[e.jsx("button",{type:"button",className:"ds-coachmark__close",onClick:o,"aria-label":p,children:e.jsx(S.X,{size:16,strokeWidth:2})}),P.title&&e.jsx("div",{className:"ds-coachmark__title",children:P.title}),e.jsx("div",{className:"ds-coachmark__body",children:P.content}),e.jsxs("div",{className:"ds-coachmark__footer",children:[t.length>1&&e.jsxs("span",{className:"ds-coachmark__counter",children:[s+1," / ",t.length]}),e.jsxs("div",{className:"ds-coachmark__footer-nav",children:[s>0&&e.jsx(ee,{variant:"secondary",size:"s",state:f,onClick:r,children:u}),e.jsx(ee,{variant:"primary",size:"s",state:x,onClick:q?a:n,children:q?h:d})]})]})]})]}),document.body)}function Ws(t,s={}){const{storageKey:n}=s,[r,o]=c.useState(0),[a,i]=c.useState(!1),l=()=>n&&typeof localStorage<"u"&&localStorage.getItem(n)==="done",d=c.useCallback(()=>{i(!1),n&&typeof localStorage<"u"&&localStorage.setItem(n,"done")},[n]);return{currentStep:r,isActive:a,start:()=>{l()||(o(0),i(!0))},next:()=>o(u=>Math.min(u+1,t.length-1)),back:()=>o(u=>Math.max(u-1,0)),skip:d,finish:d}}function Us(){const t=c.useRef(null),s=c.useCallback(()=>{const n=t.current;if(!n)return;n.classList.remove("ds-shake"),n.offsetWidth,n.classList.add("ds-shake");const r=()=>{n.classList.remove("ds-shake"),n.removeEventListener("animationend",r)};n.addEventListener("animationend",r)},[]);return{ref:t,shake:s}}exports.Accordion=xe;exports.Alert=ct;exports.AnimatedNumber=os;exports.Avatar=Rt;exports.Badge=oe;exports.Banner=ts;exports.BottomSheet=mt;exports.Breadcrumb=Mt;exports.Button=ee;exports.Card=st;exports.ChatMessage=vs;exports.Checkbox=gt;exports.Coachmark=Os;exports.Code=pt;exports.CodeAccordion=Me;exports.ConfidenceBar=Rs;exports.CopyButton=Ve;exports.DiffView=Ts;exports.Drawer=Wt;exports.DrawerFooter=ge;exports.Dropdown=ss;exports.EmptyState=Ct;exports.EngineerGrid=Is;exports.FormField=Pt;exports.H1=nt;exports.H2=rt;exports.H3=at;exports.H4=ot;exports.InView=is;exports.Input=Ze;exports.Link=ht;exports.MessageFeedback=He;exports.MessageFooter=As;exports.Modal=ut;exports.ModalFooter=le;exports.ModelPicker=Ns;exports.NavRail=Xt;exports.NavRailAgent=Qt;exports.NavRailBody=qt;exports.NavRailCustomItem=Zt;exports.NavRailDivider=Kt;exports.NavRailFooter=Gt;exports.NavRailHeader=Yt;exports.NavRailItem=Ht;exports.NavRailRecents=Jt;exports.P1=it;exports.P2=Le;exports.P3=Ee;exports.Pagination=zt;exports.ProgressBar=ns;exports.PromptInput=js;exports.Radio=wt;exports.ReasoningBlock=ps;exports.Scrollable=Ds;exports.SegmentedControl=bt;exports.Select=et;exports.SidePage=Vt;exports.SidePageFooter=we;exports.Skeleton=ze;exports.SourcesPanel=ys;exports.Spinner=Pe;exports.Stat=Lt;exports.StepIndicator=hs;exports.Stepper=tt;exports.StreamingText=xs;exports.Tab=vt;exports.Table=St;exports.TableBody=$t;exports.TableHead=Tt;exports.TableRow=At;exports.TableSubheaderRow=Bt;exports.Tabs=xt;exports.Td=Dt;exports.Textarea=Qe;exports.Th=It;exports.ThinkingDot=Bs;exports.ToastContainer=fs;exports.Toggle=Nt;exports.TokenCounter=ks;exports.ToolCallBubble=Ue;exports.ToolCallCard=Ue;exports.Tooltip=ve;exports.iconSizes=C;exports.useAnimatedNumber=Fe;exports.useAnimatedPlaceholder=Xe;exports.useCoachmark=Ws;exports.useInView=Oe;exports.useShake=Us;exports.useStreamScroll=bs;exports.useToast=ds;
22
+ <%s key={someKey} {...props} />`,O,V,J,V),E[V+O]=!0)}if(V=null,L!==void 0&&(n(L),V=""+L),i(T)&&(n(T.key),V=""+T.key),"key"in T){L={};for(var re in T)re!=="key"&&(L[re]=T[re])}else L=T;return V&&l(L,typeof m=="function"?m.displayName||m.name||"Unknown":m),u(m,V,L,o(),te,ne)}function h(m){x(m)?m._store&&(m._store.validated=1):typeof m=="object"&&m!==null&&m.$$typeof===U&&(m._payload.status==="fulfilled"?x(m._payload.value)&&m._payload.value._store&&(m._payload.value._store.validated=1):m._store&&(m._store.validated=1))}function x(m){return typeof m=="object"&&m!==null&&m.$$typeof===v}var f=c,v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),A=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),P=Symbol.for("react.client.reference"),q=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,B=Array.isArray,_=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(m){return m()}};var k,$={},z=f.react_stack_bottom_frame.bind(f,a)(),X=_(r(a)),E={};me.Fragment=N,me.jsx=function(m,T,L){var O=1e4>q.recentlyCreatedOwnerStacks++;return p(m,T,L,!1,O?Error("react-stack-top-frame"):z,O?_(r(m)):X)},me.jsxs=function(m,T,L){var O=1e4>q.recentlyCreatedOwnerStacks++;return p(m,T,L,!0,O?Error("react-stack-top-frame"):z,O?_(r(m)):X)}}()),me}process.env.NODE_ENV==="production"?Ne.exports=Ge():Ne.exports=Ke();var e=Ne.exports;function Pe({size:t="m",color:s="default",className:n="",...r}){return e.jsx("span",{className:["ds-spinner",`ds-spinner--${t}`,`ds-spinner--${s}`,n].filter(Boolean).join(" "),role:"status","aria-label":"Loading",...r})}const Je={xs:12,s:14,m:16,l:20};function ee({children:t,variant:s="primary",size:n="m",fullWidth:r=!1,icon:o,disabled:a=!1,state:i="idle",onClick:l,type:d="button",href:u,"aria-label":p,className:h="",...x}){const f=o&&!t,v=i==="loading",b=i==="success",N=i==="error",R=v||b||N,y=n==="xs"?"s":"m",j=s==="danger"?"on-accent":"default",A=Je[n]??16,D=v?e.jsx(Pe,{size:y,color:j}):b?e.jsx("span",{className:"ds-button__icon","aria-hidden":"true",children:e.jsx(S.Check,{size:A,strokeWidth:2.5})}):N?e.jsx("span",{className:"ds-button__icon","aria-hidden":"true",children:e.jsx(S.X,{size:A,strokeWidth:2.5})}):null,M=["ds-button",`ds-button--${s}`,`ds-button--${n}`,r&&"ds-button--full",f&&"ds-button--icon-only",h].filter(Boolean).join(" "),W=i!=="idle"?i:void 0,H=e.jsxs(e.Fragment,{children:[R?D:o&&e.jsx("span",{className:"ds-button__icon","aria-hidden":"true",children:o}),t]});if(u){const U=w=>{if(a||v){w.preventDefault();return}w.metaKey||w.ctrlKey||w.button===1||(w.preventDefault(),l==null||l(w))};return e.jsx("a",{className:M,href:a||v?void 0:u,onClick:U,"aria-label":p,"aria-disabled":a||v?"true":void 0,"aria-busy":v?"true":void 0,"data-state":W,...x,children:H})}return e.jsx("button",{type:d,className:M,disabled:a,onClick:v?void 0:l,"aria-label":p,"aria-busy":v?"true":void 0,"data-state":W,...x,children:H})}function Ze({label:t,error:s,hint:n,fullWidth:r=!0,icon:o,iconRight:a,onIconRightClick:i,size:l="m",disabled:d,id:u,...p}){const h=u||`input-${c.useId()}`,x=n?`${h}-hint`:void 0,f=s?`${h}-error`:void 0,v=f||x;return e.jsxs("div",{className:`ds-input-wrapper ${r?"ds-input-wrapper--full":""} ${d?"ds-input-wrapper--disabled":""} ${s?"ds-input-wrapper--error":""}`,children:[t&&e.jsx("label",{className:"ds-input-label",htmlFor:h,children:t}),e.jsxs("div",{className:"ds-input-container",children:[o&&e.jsx("span",{className:`ds-input-icon ds-input-icon--${l}`,"aria-hidden":"true",children:o}),e.jsx("input",{id:h,className:`ds-input ds-input--${l} ${o?"ds-input--with-icon":""} ${a?"ds-input--with-icon-right":""} ${s?"ds-input--error":""}`,disabled:d,"aria-invalid":s?"true":"false","aria-describedby":v,...p}),a&&e.jsx("button",{type:"button",className:`ds-input-icon-right ds-input-icon-right--${l}`,onClick:i,tabIndex:-1,"aria-label":"Toggle visibility",children:a})]}),n&&!s&&e.jsx("span",{id:x,className:"ds-input-hint",children:n}),e.jsx("div",{className:"ds-input-error-wrap",children:e.jsx("div",{className:"ds-input-error-inner",children:s&&e.jsx("span",{id:f,className:"ds-input-error",role:"alert",children:s})})})]})}function Qe({label:t,error:s,hint:n,fullWidth:r=!0,size:o="m",disabled:a,id:i,resize:l=!0,rows:d=3,...u}){const p=i||`textarea-${c.useId()}`,h=n?`${p}-hint`:void 0,x=s?`${p}-error`:void 0,f=x||h;return e.jsxs("div",{className:`ds-textarea-wrapper ${r?"ds-textarea-wrapper--full":""} ${a?"ds-textarea-wrapper--disabled":""}`,children:[t&&e.jsx("label",{className:"ds-textarea-label",htmlFor:p,children:t}),e.jsx("textarea",{id:p,className:`ds-textarea ds-textarea--${o} ${s?"ds-textarea--error":""} ${l?"":"ds-textarea--no-resize"}`,disabled:a,"aria-invalid":s?"true":"false","aria-describedby":f,rows:d,...u}),n&&!s&&e.jsx("span",{id:h,className:"ds-textarea-hint",children:n}),s&&e.jsx("span",{id:x,className:"ds-textarea-error",role:"alert",children:s})]})}function et({label:t,value:s,onChange:n,options:r=[],placeholder:o="Select option",error:a,fullWidth:i=!0,size:l="m",disabled:d=!1,id:u,...p}){const[h,x]=c.useState(!1),[f,v]=c.useState(!1),[b,N]=c.useState({}),[R,y]=c.useState("down"),[j,A]=c.useState(-1),D=c.useRef(null),M=c.useRef(null),W=c.useRef(null),H=c.useRef(null),U=u||`select-${c.useId()}`,w=`${U}-label`,P=a?`${U}-error`:void 0,q=150,F=(E=!1)=>{f||(v(!0),A(-1),H.current=setTimeout(()=>{var m;x(!1),v(!1),E&&((m=W.current)==null||m.focus())},q))},B=E=>{clearTimeout(H.current),v(!1);const m=E!==void 0?E:Math.max(r.findIndex(T=>T.value===s),0);A(m),x(!0)};c.useEffect(()=>()=>clearTimeout(H.current),[]);const _=()=>{var ne;const E=(ne=D.current)==null?void 0:ne.getBoundingClientRect();if(!E)return;const m=window.innerHeight,T=m-E.bottom,L=E.top,te=T<300&&L>T;y(te?"up":"down"),N(te?{bottom:m-E.top+4,left:E.left,width:E.width}:{top:E.bottom+4,left:E.left,width:E.width})};c.useEffect(()=>{if(h)return _(),window.addEventListener("scroll",_,!0),window.addEventListener("resize",_),()=>{window.removeEventListener("scroll",_,!0),window.removeEventListener("resize",_)}},[h]),c.useEffect(()=>{const E=m=>{D.current&&!D.current.contains(m.target)&&M.current&&!M.current.contains(m.target)&&F()};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[f]),c.useEffect(()=>{var m;if(!h||j<0||!M.current)return;(m=M.current.querySelectorAll(".ds-select-option")[j])==null||m.scrollIntoView({block:"nearest"})},[j,h]);const k=E=>{switch(E.key){case"ArrowDown":E.preventDefault(),h?A(m=>Math.min(m+1,r.length-1)):B();break;case"ArrowUp":E.preventDefault(),h?A(m=>Math.max(m-1,0)):B(r.length-1);break;case"Home":h&&(E.preventDefault(),A(0));break;case"End":h&&(E.preventDefault(),A(r.length-1));break;case"Enter":case" ":E.preventDefault(),h?j>=0&&(n==null||n(r[j].value),F(!0)):B();break;case"Escape":h&&(E.preventDefault(),F(!0));break;case"Tab":h&&F(!1);break}},$=r.find(E=>E.value===s),z=l==="xs"?C[1]:l==="small"?C[2]:C[3],X=h&&e.jsx("div",{ref:M,"data-ds-portal":"",role:"listbox","aria-labelledby":t?w:void 0,tabIndex:-1,className:["ds-select-dropdown ds-scrollable",`ds-select-dropdown--${l}`,`ds-select-dropdown--${R}`,f&&"ds-select-dropdown--closing"].filter(Boolean).join(" "),style:b,children:r.map((E,m)=>e.jsx("button",{id:`${U}-opt-${m}`,type:"button",role:"option",tabIndex:-1,"aria-selected":s===E.value,className:["ds-select-option",`ds-select-option--${l}`,s===E.value&&"ds-select-option--selected",m===j&&"ds-select-option--active"].filter(Boolean).join(" "),onClick:()=>{n==null||n(E.value),F(!0)},children:E.label},E.value))});return e.jsxs("div",{className:`ds-select-wrapper ${i?"ds-select-wrapper--full":""} ${d?"ds-select-wrapper--disabled":""}`,children:[t&&e.jsx("label",{id:w,className:"ds-select-label",children:t}),e.jsx("div",{className:"ds-select-container",ref:D,children:e.jsxs("button",{ref:W,type:"button",id:U,role:"combobox","aria-haspopup":"listbox","aria-expanded":h,"aria-activedescendant":h&&j>=0?`${U}-opt-${j}`:void 0,"aria-labelledby":t?w:void 0,"aria-invalid":a?"true":"false","aria-describedby":P,className:`ds-select-trigger ds-select-trigger--${l} ${a?"ds-select-trigger--error":""}`,onClick:()=>{d||(h?F():B())},onKeyDown:k,disabled:d,...p,children:[e.jsx("span",{className:$?"":"ds-select-placeholder",children:($==null?void 0:$.label)||o}),e.jsx(S.ChevronDown,{size:z,strokeWidth:1.5,className:`ds-select-icon ${h&&R==="down"?"ds-select-icon--open":""} ${h&&R==="up"?"ds-select-icon--up":""}`,"aria-hidden":"true"})]})}),a&&e.jsx("span",{id:P,className:"ds-select-error",role:"alert",children:a}),typeof document<"u"&&ue.createPortal(X,document.body)]})}function tt({label:t,value:s=0,onChange:n,min:r=0,max:o=100,step:a=1,size:i="m",disabled:l=!1,hint:d,error:u,...p}){const h=()=>{if(l)return;const R=Math.min(Number(s)+a,o);n==null||n(R)},x=()=>{if(l)return;const R=Math.max(Number(s)-a,r);n==null||n(R)},f=R=>{if(l)return;const y=R.target.value;if(y===""){n==null||n(r);return}const j=Number(y);if(!isNaN(j)){const A=Math.min(Math.max(j,r),o);n==null||n(A)}},v=["ds-stepper-wrapper",l&&"ds-stepper-wrapper--disabled",u&&"ds-stepper-wrapper--error"].filter(Boolean).join(" "),b=["ds-stepper",`ds-stepper--${i}`,l&&"ds-stepper--disabled"].filter(Boolean).join(" "),N=i==="xs"?C[1]:i==="small"?C[2]:C[3];return e.jsxs("div",{className:v,children:[t&&e.jsx("label",{className:"ds-stepper-label",children:t}),e.jsxs("div",{className:b,children:[e.jsx("button",{type:"button",className:"ds-stepper-button ds-stepper-button--minus",onClick:x,disabled:l||s<=r,"aria-label":"Decrease",children:e.jsx(S.Minus,{size:N,strokeWidth:1.5})}),e.jsx("input",{type:"number",className:"ds-stepper-input",value:s,onChange:f,min:r,max:o,step:a,disabled:l,...p}),e.jsx("button",{type:"button",className:"ds-stepper-button ds-stepper-button--plus",onClick:h,disabled:l||s>=o,"aria-label":"Increase",children:e.jsx(S.Plus,{size:N,strokeWidth:1.5})})]}),d&&!u&&e.jsx("div",{className:"ds-stepper-hint",children:d}),u&&e.jsx("div",{className:"ds-stepper-error",children:u})]})}function st({children:t,padding:s="m",variant:n="info",hover:r=!1,onClick:o,href:a,disabled:i=!1,...l}){const u=(r?"interactive":n)==="interactive"||o||a,p=["ds-card",`ds-card--${s}`,u&&"ds-card--interactive"].filter(Boolean).join(" ");if(a){const f=v=>{if(i){v.preventDefault();return}v.metaKey||v.ctrlKey||v.button===1||(v.preventDefault(),o==null||o(v))};return e.jsx("a",{className:p,href:i?void 0:a,onClick:f,"aria-disabled":i?"true":void 0,...l,children:t})}const h=u&&o?"button":"div",x=u&&o?{type:"button",onClick:o,disabled:i}:{};return e.jsx(h,{className:p,role:u&&!o?"article":void 0,...x,...l,children:t})}function nt({children:t,...s}){return e.jsx("h1",{className:"ds-h1",...s,children:t})}function rt({children:t,...s}){return e.jsx("h2",{className:"ds-h2",...s,children:t})}function at({children:t,...s}){return e.jsx("h3",{className:"ds-h3",...s,children:t})}function ot({children:t,...s}){return e.jsx("h4",{className:"ds-h4",...s,children:t})}function it({children:t,secondary:s=!1,...n}){return e.jsx("p",{className:`ds-p1 ${s?"ds-p1--secondary":""}`,...n,children:t})}function Le({children:t,secondary:s=!1,...n}){return e.jsx("p",{className:`ds-p2 ${s?"ds-p2--secondary":""}`,...n,children:t})}function Ee({children:t,secondary:s=!1,...n}){return e.jsx("p",{className:`ds-p3 ${s?"ds-p3--secondary":""}`,...n,children:t})}function oe({children:t,variant:s="default",size:n="m",role:r,...o}){const a=["ds-badge",`ds-badge--${s}`,`ds-badge--${n}`].filter(Boolean).join(" "),i=r||(["info","success","warning","error"].includes(s)?"status":void 0);return e.jsx("span",{className:a,role:i,...o,children:t})}const lt={info:S.Info,success:S.CheckCircle,warning:S.AlertTriangle,error:S.XCircle},ct=c.forwardRef(function({children:s,variant:n="info",title:r,onClose:o,role:a,...i},l){const d=lt[n],u=a||(n==="error"?"alert":"status");return e.jsxs("div",{ref:l,className:`ds-alert ds-alert--${n} ${r?"":"ds-alert--no-title"}`,role:u,...i,children:[d&&e.jsx("div",{className:"ds-alert__icon",children:e.jsx(d,{size:C[3],strokeWidth:1.5})}),e.jsxs("div",{className:"ds-alert__content",children:[r&&e.jsx("div",{className:"ds-alert__title",children:r}),s&&e.jsx("div",{className:"ds-alert__message",children:s})]}),o&&e.jsx("button",{type:"button",className:"ds-alert__close",onClick:o,"aria-label":"Close alert",children:e.jsx(S.X,{size:C[3],strokeWidth:1.5})})]})}),dt=200;function ut({children:t,title:s,onClose:n,size:r="m",scrollable:o=!1,subHeader:a,...i}){const l=c.useRef(null),d=c.useId(),[u,p]=c.useState(!1),h=()=>{!n||u||(p(!0),setTimeout(()=>{p(!1),n()},dt))};c.useEffect(()=>{const b=R=>{R.key==="Escape"&&h()},N=R=>{var j,A,D;const y=((A=(j=R.composedPath)==null?void 0:j.call(R))==null?void 0:A[0])??R.target;l.current&&!l.current.contains(y)&&!((D=y.closest)!=null&&D.call(y,"[data-ds-portal]"))&&h()};return document.addEventListener("keydown",b),document.addEventListener("mousedown",N),()=>{document.removeEventListener("keydown",b),document.removeEventListener("mousedown",N)}},[n,u]);const x=c.Children.toArray(t),f=x.find(b=>(b==null?void 0:b.type)===le),v=x.filter(b=>(b==null?void 0:b.type)!==le);return e.jsx("div",{className:["ds-modal-overlay",u&&"ds-modal-overlay--closing"].filter(Boolean).join(" "),...i,children:e.jsxs("div",{className:[`ds-modal ds-modal--${r}`,o&&"ds-modal--scrollable"].filter(Boolean).join(" "),ref:l,role:"dialog","aria-modal":"true","aria-labelledby":s?d:void 0,children:[n&&e.jsx(ee,{className:"ds-modal__close",variant:"ghost",size:"small",icon:e.jsx(S.X,{size:C[2],strokeWidth:1.5}),onClick:h,"aria-label":"Close modal"}),(s||a)&&e.jsxs("div",{className:"ds-modal__header",children:[s&&e.jsx("h3",{id:d,className:"ds-modal__title",children:s}),a&&e.jsx("div",{className:"ds-modal__subheader",children:a})]}),e.jsx("div",{className:"ds-modal__body ds-scrollable",children:v}),f]})})}function le({children:t}){return!t||c.Children.count(t)===0?null:e.jsx("div",{className:"ds-modal__footer",children:t})}const ft=320;function mt({children:t,title:s,onClose:n,subHeader:r,...o}){const a=c.useRef(null),i=c.useId(),[l,d]=c.useState(!1),u=()=>{!n||l||(d(!0),setTimeout(()=>{d(!1),n()},ft))};c.useEffect(()=>{const f=b=>{b.key==="Escape"&&u()},v=b=>{var R,y,j;const N=((y=(R=b.composedPath)==null?void 0:R.call(b))==null?void 0:y[0])??b.target;a.current&&!a.current.contains(N)&&!((j=N.closest)!=null&&j.call(N,"[data-ds-portal]"))&&u()};return document.addEventListener("keydown",f),document.addEventListener("mousedown",v),()=>{document.removeEventListener("keydown",f),document.removeEventListener("mousedown",v)}},[n,l]);const p=c.Children.toArray(t),h=p.find(f=>(f==null?void 0:f.type)===le),x=p.filter(f=>(f==null?void 0:f.type)!==le);return e.jsx("div",{className:["ds-bottom-sheet-overlay",l&&"ds-bottom-sheet-overlay--closing"].filter(Boolean).join(" "),...o,children:e.jsxs("div",{ref:a,className:["ds-bottom-sheet",l&&"ds-bottom-sheet--closing"].filter(Boolean).join(" "),role:"dialog","aria-modal":"true","aria-labelledby":s?i:void 0,children:[e.jsx("div",{className:"ds-bottom-sheet__handle","aria-hidden":"true"}),n&&e.jsx(ee,{className:"ds-bottom-sheet__close",variant:"ghost",size:"small",icon:e.jsx(S.X,{size:C[2],strokeWidth:1.5}),onClick:u,"aria-label":"Close"}),(s||r)&&e.jsxs("div",{className:"ds-bottom-sheet__header",children:[s&&e.jsx("h3",{id:i,className:"ds-bottom-sheet__title",children:s}),r&&e.jsx("div",{className:"ds-bottom-sheet__subheader",children:r})]}),e.jsx("div",{className:"ds-bottom-sheet__body ds-scrollable",children:x}),h]})})}function Me({children:t,title:s="Code",defaultExpanded:n=!1,expanded:r,onToggle:o,padding:a="s",className:i="",...l}){const[d,u]=c.useState(n),p=r!==void 0,h=p?r:d,x=()=>{p?o==null||o(!r):u(v=>!v)},f=["ds-code-accordion",`ds-code-accordion--${a}`,h&&"ds-code-accordion--expanded",i].filter(Boolean).join(" ");return e.jsxs("div",{className:f,...l,children:[e.jsxs("button",{type:"button",className:"ds-code-accordion__header",onClick:x,"aria-expanded":h,children:[e.jsx("span",{className:"ds-code-accordion__title",children:s}),e.jsx(S.ChevronDown,{size:C[2],strokeWidth:1.5,className:`ds-code-accordion__icon ${h?"ds-code-accordion__icon--expanded":""}`})]}),e.jsx("div",{className:"ds-code-accordion__content",children:e.jsx("div",{className:"ds-code-accordion__inner",children:e.jsx("pre",{className:"ds-code-accordion__pre ds-scrollable",children:e.jsx("code",{children:t})})})})]})}function pt({children:t,block:s=!1,collapsible:n=!1,title:r="Code",defaultExpanded:o=!1,...a}){return s?n?e.jsx(Me,{title:r,defaultExpanded:o,...a,children:t}):e.jsx("pre",{className:"ds-code-block ds-scrollable",...a,children:e.jsx("code",{children:t})}):e.jsx("code",{className:"ds-code-inline",...a,children:t})}function ht({href:t,children:s,onClick:n,target:r,rel:o,...a}){const l=r==="_blank"?o?`${o} noopener noreferrer`:"noopener noreferrer":o;return e.jsx("a",{href:t,className:"ds-link",onClick:n,target:r,rel:l,...a,children:s})}function xt({children:t,size:s="m",variant:n="ghost",...r}){return e.jsx("div",{className:"ds-tabs",role:"tablist",...r,children:c.Children.map(t,o=>c.isValidElement(o)?c.cloneElement(o,{size:s,variant:n}):o)})}function vt({children:t,selected:s=!1,onClick:n,size:r="m",variant:o="ghost",disabled:a=!1,icon:i,href:l,...d}){const u=i&&!t,p=["ds-tab",`ds-tab--${r}`,`ds-tab--${o}`,s&&"ds-tab--selected",u&&"ds-tab--icon-only"].filter(Boolean).join(" "),h=e.jsxs(e.Fragment,{children:[i&&e.jsx("span",{className:"ds-tab-icon",children:i}),t]});if(l){const x=f=>{if(a){f.preventDefault();return}f.metaKey||f.ctrlKey||f.button===1||(f.preventDefault(),n==null||n(f))};return e.jsx("a",{role:"tab","aria-current":s?"page":void 0,"aria-disabled":a?"true":void 0,className:p,href:a?void 0:l,onClick:x,...d,children:h})}return e.jsx("button",{role:"tab","aria-selected":s,className:p,onClick:n,disabled:a,...d,children:h})}function bt({options:t,value:s,onChange:n,size:r="m",disabled:o=!1}){const a=c.useRef(null),i=c.useRef(null),[l,d]=c.useState(!1),u=c.useRef(!1),p=c.useRef(null),h=c.useRef(null),x=()=>{if(!a.current)return;const f=a.current.querySelector(`[data-value="${s}"]`);if(!f)return;const v=a.current.getBoundingClientRect(),b=f.getBoundingClientRect(),N=b.left-v.left,R=b.width;i.current?(i.current.style.transition=u.current?"left var(--transition-normal), width var(--transition-normal)":"none",i.current.style.left=N+"px",i.current.style.width=R+"px",u.current=!1):(d(!0),requestAnimationFrame(()=>{if(!i.current||!a.current)return;const y=a.current.querySelector(`[data-value="${s}"]`);if(!y)return;const j=a.current.getBoundingClientRect(),A=y.getBoundingClientRect();i.current.style.transition="none",i.current.style.left=A.left-j.left+"px",i.current.style.width=A.width+"px"}))};return h.current=x,c.useLayoutEffect(()=>{const f=p.current!==s;p.current=s,u.current=l&&f,x()}),c.useEffect(()=>{if(!a.current)return;const f=new ResizeObserver(()=>{u.current=!1,h.current()});return f.observe(a.current),()=>f.disconnect()},[]),e.jsxs("div",{className:["ds-seg",`ds-seg--${r}`,o&&"ds-seg--disabled"].filter(Boolean).join(" "),ref:a,role:"group",children:[l&&e.jsx("div",{ref:i,className:"ds-seg__pill","aria-hidden":"true"}),t.map(f=>e.jsxs("button",{type:"button","data-value":f.value,className:["ds-seg__btn",s===f.value&&"ds-seg__btn--active"].filter(Boolean).join(" "),onClick:()=>!o&&n(f.value),"aria-pressed":s===f.value,disabled:o,children:[f.icon&&e.jsx("span",{className:"ds-seg__btn-icon","aria-hidden":"true",children:f.icon}),f.label]},f.value))]})}function xe({children:t,title:s,defaultExpanded:n=!1,expanded:r,onToggle:o,padding:a="m",...i}){const[l,d]=c.useState(n),u=r!==void 0,p=u?r:l,h=()=>{u?o==null||o(!r):d(f=>!f)},x=["ds-accordion",`ds-accordion--${a}`,p&&"ds-accordion--expanded"].filter(Boolean).join(" ");return e.jsxs("div",{className:x,...i,children:[e.jsxs("button",{type:"button",className:"ds-accordion__header",onClick:h,"aria-expanded":p,children:[e.jsx("span",{className:"ds-accordion__title",children:s}),e.jsx(S.ChevronDown,{size:C[2],strokeWidth:1.5,className:`ds-accordion__icon ${p?"ds-accordion__icon--expanded":""}`})]}),e.jsx("div",{className:"ds-accordion__content",children:e.jsx("div",{className:"ds-accordion__content-inner",children:e.jsx("div",{className:"ds-accordion__content-body",children:t})})})]})}const se=8,ce=8;function _t(t,s,n){const r=window.innerWidth;let o,a;switch(t){case"top":o=s.top-n.height-se,a=s.left+s.width/2-n.width/2;break;case"bottom":o=s.bottom+se,a=s.left+s.width/2-n.width/2;break;case"left":o=s.top+s.height/2-n.height/2,a=s.left-n.width-se;break;case"right":o=s.top+s.height/2-n.height/2,a=s.right+se;break;default:o=s.bottom+se,a=s.left}const i=Math.max(ce,Math.min(r-n.width-ce,a)),l=a-i;return{top:o,left:i,arrowOffset:l}}function jt(t,s,n){const r=window.innerWidth,o=window.innerHeight;if(t.top>=s+se+ce)return"top";if(o-t.bottom>=s+se+ce)return"bottom";if(r-t.right>=n+se+ce)return"right";if(t.left>=n+se+ce)return"left";const a=Math.max(t.top,o-t.bottom,t.left,r-t.right);return a===t.top?"top":a===o-t.bottom?"bottom":a===r-t.right?"right":"left"}function ve({children:t,content:s,position:n,...r}){const[o,a]=c.useState(!1),[i,l]=c.useState({visibility:"hidden"}),[d,u]=c.useState(n||"top"),p=c.useRef(null),h=c.useRef(null),x=c.useRef(!1),f=()=>{if(!p.current||!h.current)return;const b=p.current.getBoundingClientRect(),N=h.current.getBoundingClientRect(),R=n||jt(b,N.height,N.width),{top:y,left:j,arrowOffset:A}=_t(R,b,N);u(R),l({position:"fixed",top:y,left:j,visibility:"visible","--arrow-offset":`${A}px`})};if(c.useEffect(()=>{if(!o)return;l({position:"fixed",visibility:"hidden"});const b=requestAnimationFrame(f);return window.addEventListener("scroll",f,!0),window.addEventListener("resize",f),()=>{cancelAnimationFrame(b),window.removeEventListener("scroll",f,!0),window.removeEventListener("resize",f)}},[o,n]),c.useEffect(()=>{if(!o)return;const b=N=>{p.current&&!p.current.contains(N.target)&&a(!1)};return document.addEventListener("touchstart",b),()=>document.removeEventListener("touchstart",b)},[o]),!s)return t;const v=o&&e.jsx("div",{ref:h,"data-ds-portal":"",className:`ds-tooltip ds-tooltip--${d}`,role:"tooltip",style:i,children:s});return e.jsxs("div",{ref:p,className:"ds-tooltip-wrapper",onMouseEnter:()=>{x.current||a(!0)},onMouseLeave:()=>{x.current||a(!1)},onTouchStart:()=>{x.current=!0,a(b=>!b)},...r,children:[t,typeof document<"u"&&ue.createPortal(v,document.body)]})}function Nt({checked:t=!1,onChange:s,size:n="m",disabled:r=!1,label:o,id:a,...i}){const l=a||`toggle-${c.useId()}`,d=["ds-toggle",`ds-toggle--${n}`,r&&"ds-toggle--disabled"].filter(Boolean).join(" ");return e.jsxs("label",{className:d,htmlFor:l,children:[e.jsx("input",{type:"checkbox",id:l,className:"ds-toggle__input",checked:t,onChange:u=>s==null?void 0:s(u.target.checked),disabled:r,...i}),e.jsx("span",{className:"ds-toggle__track",children:e.jsx("span",{className:"ds-toggle__thumb"})}),o&&e.jsx("span",{className:"ds-toggle__label",children:o})]})}function gt({checked:t=!1,onChange:s,size:n="m",disabled:r=!1,label:o,id:a,...i}){const l=a||`checkbox-${c.useId()}`,d=["ds-checkbox",`ds-checkbox--${n}`,r&&"ds-checkbox--disabled"].filter(Boolean).join(" "),u=n==="xs"?10:n==="small"?14:n==="large"?20:16;return e.jsxs("label",{className:d,htmlFor:l,children:[e.jsx("input",{type:"checkbox",id:l,className:"ds-checkbox__input",checked:t,onChange:p=>s==null?void 0:s(p.target.checked),disabled:r,...i}),e.jsx("span",{className:"ds-checkbox__box",children:t&&e.jsx(S.Check,{size:u,strokeWidth:2.5,className:"ds-checkbox__icon"})}),o&&e.jsx("span",{className:"ds-checkbox__label",children:o})]})}function wt({checked:t=!1,onChange:s,size:n="m",disabled:r=!1,label:o,name:a,value:i,id:l,...d}){const u=l||`radio-${c.useId()}`,p=["ds-radio",`ds-radio--${n}`,r&&"ds-radio--disabled"].filter(Boolean).join(" ");return e.jsxs("label",{className:p,htmlFor:u,children:[e.jsx("input",{type:"radio",id:u,className:"ds-radio__input",checked:t,onChange:h=>s==null?void 0:s(h.target.checked),disabled:r,name:a,value:i,...d}),e.jsx("span",{className:"ds-radio__circle",children:e.jsx("span",{className:"ds-radio__dot"})}),o&&e.jsx("span",{className:"ds-radio__label",children:o})]})}function ze({width:t,height:s,shape:n="rect",aspectRatio:r,className:o="",style:a={},...i}){return e.jsx("span",{className:["ds-skeleton",`ds-skeleton--${n}`,o].filter(Boolean).join(" "),style:{width:t,height:s,aspectRatio:r,...a},"aria-hidden":"true",...i})}function yt({lines:t=1,lastLineWidth:s="70%",gap:n,className:r="",style:o={},...a}){return e.jsx("span",{className:["ds-skeleton-text",r].filter(Boolean).join(" "),style:{gap:n,...o},"aria-hidden":"true",...a,children:Array.from({length:t},(i,l)=>e.jsx("span",{className:"ds-skeleton ds-skeleton--text",style:l===t-1&&t>1?{width:s}:void 0},l))})}ze.Text=yt;function kt(t){let s=2166136261;for(let n=0;n<t.length;n++)s^=t.charCodeAt(n),s=Math.imul(s,16777619)>>>0;return s%360}function Et(t){if(!t)return"";const s=t.trim().split(/\s+/);return s.length>=2?(s[0][0]+s[1][0]).toUpperCase():t[0].toUpperCase()}function Rt({seed:t,icon:s,src:n,size:r=32,className:o="",style:a={},...i}){const l=kt(t??""),[d,u]=c.useState(!1),p=s??e.jsx("span",{className:"ds-avatar__initials",children:Et(t)});return e.jsx("div",{className:["ds-avatar",o].filter(Boolean).join(" "),style:{width:r,height:r,"--ds-avatar-h":l,...a},"aria-hidden":"true",...i,children:n&&!d?e.jsx("img",{src:n,alt:"",onError:()=>u(!0)}):p})}function St({children:t,size:s="compact",stickyTop:n,maxHeight:r,className:o="",style:a={},...i}){const l={...r?{maxHeight:r}:{},...n!==void 0?{"--ds-table-sticky-top":typeof n=="number"?`${n}px`:n}:{},...a};return e.jsx("div",{className:["ds-table-wrap","ds-scrollable",r?"ds-table-wrap--scroll":""].filter(Boolean).join(" "),style:l,children:e.jsx("table",{className:["ds-table",`ds-table--${s}`,o].filter(Boolean).join(" "),...i,children:t})})}function Tt({children:t,...s}){return e.jsx("thead",{...s,children:t})}function $t({children:t,...s}){return e.jsx("tbody",{...s,children:t})}function At({children:t,interactive:s,selected:n,subheader:r,exiting:o,updated:a,className:i="",onClick:l,...d}){return e.jsx("tr",{className:["ds-table-row",s||l?"ds-table-row--interactive":"",n?"ds-table-row--selected":"",r?"ds-table-row--subheader":"",o?"ds-table-row--exiting":"",a?"ds-table-row--updated":"",i].filter(Boolean).join(" "),onClick:l,...d,children:t})}function Bt({children:t,colSpan:s=999,...n}){return e.jsx("tr",{className:"ds-table-row ds-table-row--subheader",...n,children:e.jsx("td",{colSpan:s,children:t})})}function It({children:t,align:s="left",sortDir:n,onSort:r,width:o,className:a="",style:i={},...l}){const d=!!r||n!==void 0,u=n==="asc"?S.ChevronUp:n==="desc"?S.ChevronDown:S.ChevronsUpDown;return e.jsx("th",{className:["ds-th",d?"ds-th--sortable":"",n?"ds-th--sorted":"",s!=="left"?`ds-table-cell--${s}`:"",a].filter(Boolean).join(" "),onClick:r,style:{width:o,...i},...l,children:d?e.jsxs("span",{className:"ds-th__inner",children:[t,e.jsx("span",{className:"ds-th__sort-icon",children:e.jsx(u,{size:11,strokeWidth:2.5})})]}):t})}function Dt({children:t,align:s="left",secondary:n,muted:r,truncate:o,nowrap:a,className:i="",...l}){return e.jsx("td",{className:["ds-td",s!=="left"?`ds-table-cell--${s}`:"",n?"ds-table-cell--secondary":"",r?"ds-table-cell--muted":"",o?"ds-table-cell--truncate":"",a?"ds-table-cell--nowrap":"",i].filter(Boolean).join(" "),...l,children:t})}function Ct({icon:t,title:s,description:n,action:r,size:o="m",className:a="",...i}){return e.jsxs("div",{className:["ds-empty-state",`ds-empty-state--${o}`,a].filter(Boolean).join(" "),...i,children:[t&&e.jsx("div",{className:"ds-empty-state__icon",children:t}),e.jsx("div",{className:"ds-empty-state__title",children:s}),n&&e.jsx("div",{className:"ds-empty-state__description",children:n}),r&&e.jsx("div",{className:"ds-empty-state__action",children:r})]})}function Pt({label:t,hint:s,error:n,required:r=!1,disabled:o=!1,htmlFor:a,children:i,className:l="",style:d,...u}){const p=c.useId(),h=a??p,x=`${h}-hint`,f=`${h}-error`;return e.jsxs("div",{className:`ds-field${l?` ${l}`:""}`,"data-state":n?"error":void 0,"data-required":r?"":void 0,"data-disabled":o?"":void 0,style:d,...u,children:[t&&e.jsx("label",{className:"ds-field-label",htmlFor:h,children:t}),e.jsx("div",{className:"ds-field-control",children:i}),s&&!n&&e.jsx("p",{className:"ds-field-hint",id:x,children:s}),n&&e.jsx("p",{className:"ds-field-error",id:f,role:"alert",children:n})]})}function Lt({label:t,value:s,delta:n,size:r="m",inline:o=!1,className:a="",style:i,...l}){const d=n!=null&&n.startsWith("+")?"up":n!=null&&n.startsWith("-")?"down":"neutral";return e.jsxs("div",{className:["ds-stat",`ds-stat--${r}`,o&&"ds-stat--inline",a].filter(Boolean).join(" "),style:i,...l,children:[t&&e.jsx("span",{className:"ds-stat-label",children:t}),s!=null&&e.jsx("span",{className:"ds-stat-value",children:s}),n!=null&&e.jsx("span",{className:`ds-stat-delta ds-stat-delta--${d}`,children:n})]})}function Mt({children:t,separator:s="/","aria-label":n="Breadcrumb",className:r="",style:o,...a}){const i=c.Children.toArray(t).filter(Boolean);return e.jsx("nav",{className:`ds-breadcrumb${r?` ${r}`:""}`,"aria-label":n,style:o,...a,children:e.jsx("ol",{className:"ds-breadcrumb-list",children:i.map((l,d)=>e.jsxs("li",{className:"ds-breadcrumb-item",children:[l,d<i.length-1&&e.jsx("span",{className:"ds-breadcrumb-sep","aria-hidden":"true",children:s})]},d))})})}function zt({page:t,total:s,onChange:n,siblings:r=1,"aria-label":o="Pagination",className:a="",style:i,...l}){const d=Ft(t,s,r);return e.jsxs("nav",{className:`ds-pagination${a?` ${a}`:""}`,"aria-label":o,style:i,...l,children:[e.jsx("button",{className:"ds-pagination-arrow",onClick:()=>n==null?void 0:n(t-1),disabled:t<=1,"aria-label":"Previous page",children:e.jsx(S.ChevronLeft,{size:16})}),d.map((u,p)=>u==="…"?e.jsx("span",{className:"ds-pagination-gap","aria-hidden":"true",children:"…"},`gap-${p}`):e.jsx("button",{className:`ds-pagination-page${u===t?" ds-pagination-page--current":""}`,onClick:()=>u!==t&&(n==null?void 0:n(u)),"aria-current":u===t?"page":void 0,"aria-label":`Page ${u}`,children:u},u)),e.jsx("button",{className:"ds-pagination-arrow",onClick:()=>n==null?void 0:n(t+1),disabled:t>=s,"aria-label":"Next page",children:e.jsx(S.ChevronRight,{size:16})})]})}function Ft(t,s,n){if(s<=7)return Array.from({length:s},(i,l)=>l+1);const r=Math.max(2,t-n),o=Math.min(s-1,t+n),a=[1];r>2&&a.push("…");for(let i=r;i<=o;i++)a.push(i);return o<s-1&&a.push("…"),a.push(s),a}const Ot=200;function Wt({children:t,title:s,onClose:n,side:r="right",...o}){const a=c.useRef(null),i=c.useId(),[l,d]=c.useState(!1),u=()=>{!n||l||(d(!0),setTimeout(()=>{d(!1),n()},Ot))};c.useEffect(()=>{const f=b=>{b.key==="Escape"&&u()},v=b=>{var R,y,j;const N=((y=(R=b.composedPath)==null?void 0:R.call(b))==null?void 0:y[0])??b.target;a.current&&!a.current.contains(N)&&!((j=N.closest)!=null&&j.call(N,"[data-ds-portal]"))&&u()};return document.addEventListener("keydown",f),document.addEventListener("mousedown",v),()=>{document.removeEventListener("keydown",f),document.removeEventListener("mousedown",v)}},[n,l]);const p=c.Children.toArray(t),h=p.find(f=>(f==null?void 0:f.type)===ge),x=p.filter(f=>(f==null?void 0:f.type)!==ge);return e.jsx("div",{className:["ds-drawer-overlay",l&&"ds-drawer-overlay--closing"].filter(Boolean).join(" "),...o,children:e.jsxs("aside",{className:["ds-drawer",l&&"ds-drawer--closing"].filter(Boolean).join(" "),"data-side":r,ref:a,role:"dialog","aria-modal":"true","aria-labelledby":s?i:void 0,children:[e.jsxs("header",{className:"ds-drawer-header",children:[s&&e.jsx("h3",{id:i,className:"ds-drawer-title",children:s}),n&&e.jsx("button",{className:"ds-drawer-close",onClick:u,"aria-label":"Close drawer",children:e.jsx(S.X,{size:C[2],strokeWidth:1.5})})]}),e.jsx("div",{className:"ds-drawer-body ds-scrollable",children:x}),h]})})}function ge({children:t}){return e.jsx("footer",{className:"ds-drawer-footer",children:t})}const Ut=320;function Vt({children:t,title:s,onClose:n,subHeader:r,...o}){const a=c.useRef(null),i=c.useId(),[l,d]=c.useState(!1),u=()=>{!n||l||(d(!0),setTimeout(()=>{d(!1),n()},Ut))};c.useEffect(()=>{const f=b=>{b.key==="Escape"&&u()},v=b=>{var R,y,j;const N=((y=(R=b.composedPath)==null?void 0:R.call(b))==null?void 0:y[0])??b.target;a.current&&!a.current.contains(N)&&!((j=N.closest)!=null&&j.call(N,"[data-ds-portal]"))&&u()};return document.addEventListener("keydown",f),document.addEventListener("mousedown",v),()=>{document.removeEventListener("keydown",f),document.removeEventListener("mousedown",v)}},[n,l]);const p=c.Children.toArray(t),h=p.find(f=>(f==null?void 0:f.type)===we||(f==null?void 0:f.type)===le),x=p.filter(f=>(f==null?void 0:f.type)!==we&&(f==null?void 0:f.type)!==le);return e.jsx("div",{className:["ds-side-page-overlay",l&&"ds-side-page-overlay--closing"].filter(Boolean).join(" "),...o,children:e.jsxs("div",{ref:a,className:["ds-side-page",l&&"ds-side-page--closing"].filter(Boolean).join(" "),role:"dialog","aria-modal":"true","aria-labelledby":s?i:void 0,children:[n&&e.jsx(ee,{className:"ds-side-page__close",variant:"ghost",size:"small",icon:e.jsx(S.X,{size:C[2],strokeWidth:1.5}),onClick:u,"aria-label":"Close"}),(s||r)&&e.jsxs("div",{className:"ds-side-page__header",children:[s&&e.jsx("h3",{id:i,className:"ds-side-page__title",children:s}),r&&e.jsx("div",{className:"ds-side-page__subheader",children:r})]}),e.jsx("div",{className:"ds-side-page__body ds-scrollable",children:x}),h]})})}function we({children:t}){return!t||c.Children.count(t)===0?null:e.jsx("div",{className:"ds-side-page__footer",children:t})}const pe=c.createContext({collapsed:!1,side:"left"});function Xt({children:t,collapsed:s=!1,side:n="left",onExpand:r,className:o="",...a}){const i=["ds-nav-rail",s&&"ds-nav-rail--collapsed",`ds-nav-rail--${n}`,o].filter(Boolean).join(" "),l=c.useCallback(d=>{!s||!r||d.target.closest('button, a, input, select, textarea, [role="button"], [tabindex]')||r()},[s,r]);return e.jsx(pe.Provider,{value:{collapsed:s,side:n},children:e.jsx("nav",{className:i,onClick:l,"data-expandable":s&&r?"":void 0,...a,children:t})})}function Ht({icon:t,label:s,selected:n=!1,disabled:r=!1,href:o,onClick:a,count:i,updated:l=!1,open:d=!1,onboarding:u=!1,className:p="",...h}){const{collapsed:x,side:f}=c.useContext(pe),N={className:["ds-nav-rail__item",p].filter(Boolean).join(" "),onClick:r?void 0:a,"aria-current":n?"page":void 0,"aria-disabled":r?"true":void 0,"aria-label":x?s:void 0,tabIndex:r?-1:void 0,...{"data-selected":n||void 0,"data-disabled":r||void 0,"data-open":d||void 0,"data-onboarding":u||void 0},...h},R=i!=null,y=f==="left"?"right":"left",j=e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"ds-nav-rail__icon","aria-hidden":"true",children:t}),!x&&e.jsx("span",{className:"ds-nav-rail__label",children:s}),!x&&l&&e.jsx(oe,{size:"xs",variant:"accent",className:"ds-nav-rail__badge-expanded",children:"New"}),!x&&R&&e.jsx("span",{className:["ds-nav-rail__count",i===0&&"ds-nav-rail__count--zero"].filter(Boolean).join(" "),children:i}),x&&l&&e.jsx("span",{className:"ds-nav-rail__dot","aria-hidden":"true"})]}),A=o?e.jsx("a",{href:r?void 0:o,...N,children:j}):e.jsx("button",{type:"button",...N,children:j});return x?e.jsx(ve,{content:s,position:y,children:A}):A}function qt({children:t,className:s="",...n}){return e.jsx("div",{className:["ds-nav-rail__body","ds-scrollable",s].filter(Boolean).join(" "),...n,children:t})}function Yt({children:t,className:s="",...n}){return e.jsx("div",{className:["ds-nav-rail__header",s].filter(Boolean).join(" "),...n,children:t})}function Gt({children:t,className:s="",...n}){return e.jsx("div",{className:["ds-nav-rail__footer",s].filter(Boolean).join(" "),...n,children:t})}function Kt({className:t="",...s}){return e.jsx("hr",{className:["ds-nav-rail__divider",t].filter(Boolean).join(" "),...s})}function Jt({children:t,label:s="Recents",defaultOpen:n=!0,className:r="",...o}){const{collapsed:a}=c.useContext(pe),[i,l]=c.useState(n);return e.jsxs("div",{className:["ds-nav-rail__recents",r].filter(Boolean).join(" "),...o,children:[!a&&e.jsxs("button",{type:"button",className:["ds-nav-rail__recents-toggle",!i&&"ds-nav-rail__recents-toggle--closed"].filter(Boolean).join(" "),onClick:()=>l(d=>!d),"aria-expanded":i,children:[e.jsx("span",{className:"ds-nav-rail__recents-label",children:s}),e.jsx(S.ChevronDown,{size:12,strokeWidth:2,className:"ds-nav-rail__recents-chevron","aria-hidden":"true"})]}),(i||a)&&e.jsx("div",{className:"ds-nav-rail__recents-body",children:t})]})}const Zt=c.forwardRef(function({as:s="button",avatar:n,label:r,className:o="",...a},i){const{collapsed:l,side:d}=c.useContext(pe),u=d==="left"?"right":"left",p=["ds-nav-rail__item","ds-nav-rail__agent",o].filter(Boolean).join(" "),h=e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"ds-nav-rail__icon","aria-hidden":"true",children:n}),!l&&e.jsx("span",{className:"ds-nav-rail__label",children:r})]}),x=e.jsx(s,{ref:i,className:p,"aria-label":l?r:void 0,...s==="button"?{type:"button"}:{},...a,children:h});return l?e.jsx(ve,{content:r,position:u,children:x}):x});function Qt({avatar:t,label:s,selected:n=!1,disabled:r=!1,href:o,onClick:a,className:i="",...l}){const{collapsed:d,side:u}=c.useContext(pe),x={className:["ds-nav-rail__item","ds-nav-rail__agent",i].filter(Boolean).join(" "),onClick:r?void 0:a,"aria-current":n?"page":void 0,"aria-disabled":r?"true":void 0,tabIndex:r?-1:void 0,...{"data-selected":n||void 0,"data-disabled":r||void 0},...l},f=e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"ds-nav-rail__icon","aria-hidden":"true",children:t}),!d&&e.jsx("span",{className:"ds-nav-rail__label",children:s})]}),v=u==="left"?"right":"left",b=o?e.jsx("a",{href:r?void 0:o,...x,children:f}):e.jsx("button",{type:"button",...x,children:f});return d?e.jsx(ve,{content:s,position:v,children:b}):b}const es={info:S.Info,success:S.CheckCircle,warning:S.AlertTriangle,error:S.XCircle};function ts({children:t,variant:s="info",action:n,onAction:r,onDismiss:o,role:a,...i}){const l=es[s],d=a||(s==="error"?"alert":"status");return e.jsxs("div",{className:`ds-banner ds-banner--${s}`,role:d,...i,children:[l&&e.jsx("span",{className:"ds-banner-icon","aria-hidden":"true",children:e.jsx(l,{size:C[2],strokeWidth:1.5})}),e.jsx("span",{className:"ds-banner-text",children:t}),n&&e.jsx("button",{type:"button",className:"ds-banner-action",onClick:r,children:n}),o&&e.jsx("button",{type:"button",className:"ds-banner-dismiss",onClick:o,"aria-label":"Dismiss",children:e.jsx(S.X,{size:C[2],strokeWidth:1.5})})]})}function ss({trigger:t,items:s=[],open:n,onOpenChange:r,align:o="left",fullWidth:a=!1,className:i="",style:l,...d}){const[u,p]=c.useState(!1),[h,x]=c.useState(!1),f=n!==void 0,v=f?n:u,b=c.useRef(null),N=c.useRef(null),R=c.useRef(null),y=c.useRef(null),[j,A]=c.useState({}),D=c.useRef(null),M=150,W=()=>{if(f)r==null||r(!1);else{if(h)return;x(!0),D.current=setTimeout(()=>{p(!1),x(!1)},M)}},H=()=>{const _=!v;f?r==null||r(_):_?(clearTimeout(D.current),x(!1),p(!0)):W()},U=()=>{v||(f?r==null||r(!0):(clearTimeout(D.current),x(!1),p(!0)))};c.useEffect(()=>()=>clearTimeout(D.current),[]),c.useEffect(()=>{if(!v)return;const _=300,k=()=>{var E;const $=(E=b.current)==null?void 0:E.getBoundingClientRect();if(!$)return;const z=window.innerHeight-$.bottom,X=z<_+8&&$.top>z;A(o==="right"?X?{bottom:window.innerHeight-$.top+4,top:"auto",right:window.innerWidth-$.right}:{top:$.bottom+4,bottom:"auto",right:window.innerWidth-$.right}:X?{bottom:window.innerHeight-$.top+4,top:"auto",left:$.left}:{top:$.bottom+4,bottom:"auto",left:$.left})};return k(),window.addEventListener("scroll",k,!0),window.addEventListener("resize",k),()=>{window.removeEventListener("scroll",k,!0),window.removeEventListener("resize",k)}},[v,o]);const w=()=>{var k;const _=(k=R.current)==null?void 0:k.querySelector('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"]), input, select, textarea');_==null||_.focus()};c.useEffect(()=>{if(!v)return;const _=$=>{var z,X;!((z=b.current)!=null&&z.contains($.target))&&!((X=N.current)!=null&&X.contains($.target))&&W()},k=$=>{$.key==="Escape"&&(W(),w())};return document.addEventListener("mousedown",_),document.addEventListener("keydown",k),()=>{document.removeEventListener("mousedown",_),document.removeEventListener("keydown",k)}},[v]),c.useEffect(()=>{if(!v||!y.current||!N.current)return;const _=P(),k=y.current==="last"?_[_.length-1]:_[0];k==null||k.focus(),y.current=null},[v]);const P=()=>N.current?[...N.current.querySelectorAll('button:not([disabled]), a[href]:not([aria-disabled="true"]), [tabindex]:not([tabindex="-1"])')]:[],q=_=>{var k,$;if(_.key==="ArrowDown")_.preventDefault(),v?(k=P()[0])==null||k.focus():(y.current="first",U());else if(_.key==="ArrowUp")if(_.preventDefault(),!v)y.current="last",U();else{const z=P();($=z[z.length-1])==null||$.focus()}},F=_=>{var z,X,E,m;const k=P(),$=k.findIndex(T=>T===document.activeElement);switch(_.key){case"ArrowDown":_.preventDefault(),(z=k[Math.min($+1,k.length-1)])==null||z.focus();break;case"ArrowUp":_.preventDefault(),$<=0?w():(X=k[$-1])==null||X.focus();break;case"Home":_.preventDefault(),(E=k[0])==null||E.focus();break;case"End":_.preventDefault(),(m=k[k.length-1])==null||m.focus();break;case"Tab":W();break}},B=v&&e.jsx("div",{ref:N,role:"menu","data-ds-portal":"",className:["ds-dropdown__menu",`ds-dropdown__menu--${o}`,h&&"ds-dropdown__menu--closing"].filter(Boolean).join(" "),style:j,onKeyDown:F,children:s.map((_,k)=>{if(_.separator)return e.jsx("div",{className:"ds-dropdown__separator"},k);if(_.type==="section")return e.jsxs("div",{className:"ds-dropdown__section",children:[_.label&&e.jsx("div",{className:"ds-dropdown__section-label",children:_.label}),e.jsx("div",{className:"ds-dropdown__section-content",children:_.content})]},k);const $=!!_.href,z=$?"a":"button",X=$?{href:_.disabled?void 0:_.href,"aria-disabled":_.disabled?"true":void 0}:{type:"button",disabled:_.disabled};return e.jsxs(z,{role:"menuitem",className:["ds-dropdown__item",_.danger&&"ds-dropdown__item--danger"].filter(Boolean).join(" "),...X,onClick:()=>{var E;(E=_.onClick)==null||E.call(_),W()},children:[_.icon&&e.jsx("span",{className:"ds-dropdown__item-icon",children:_.icon}),e.jsx("span",{className:"ds-dropdown__item-label",children:_.label}),_.shortcut&&e.jsx("span",{className:"ds-dropdown__item-shortcut",children:_.shortcut})]},k)})});return e.jsxs("div",{ref:b,className:["ds-dropdown",a&&"ds-dropdown--full-width",i].filter(Boolean).join(" "),style:l,...d,children:[e.jsx("div",{ref:R,className:"ds-dropdown__trigger",onClick:H,onKeyDown:q,children:t}),typeof document<"u"&&ue.createPortal(B,document.body)]})}function ns({value:t=0,size:s="m",variant:n="default",showValue:r=!1,min:o=2,animate:a=!0}){const i=Math.min(100,Math.max(0,t)),l=Math.max(o,i),d=n==="auto"?i>=70?"success":i>=50?"warning":"danger":n;return e.jsxs("div",{className:["ds-progress",`ds-progress--${s}`,!a&&"ds-progress--instant"].filter(Boolean).join(" "),role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,children:[e.jsx("div",{className:"ds-progress__track",children:e.jsx("div",{className:`ds-progress__fill ds-progress__fill--${d}`,style:{width:`${l}%`}})}),r&&e.jsxs("span",{className:"ds-progress__value",children:[Math.round(i),"%"]})]})}const rs=t=>1-Math.pow(1-t,3),as=()=>typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function Fe(t,{duration:s=600}={}){const[n,r]=c.useState(t),o=c.useRef(t),a=c.useRef(null);return c.useEffect(()=>{if(as()){r(t),o.current=t;return}const i=o.current,l=t-i;if(l===0)return;let d=null;const u=p=>{d||(d=p);const h=Math.min((p-d)/s,1);r(i+l*rs(h)),h<1?a.current=requestAnimationFrame(u):o.current=t};return a.current=requestAnimationFrame(u),()=>cancelAnimationFrame(a.current)},[t,s]),n}function os({value:t,duration:s=600,decimals:n=0,prefix:r="",suffix:o=""}){const i=Fe(t,{duration:s}).toFixed(n);return`${r}${i}${o}`}function Oe({threshold:t=.1,rootMargin:s="0px",once:n=!1}={}){const r=c.useRef(null),[o,a]=c.useState(!1);return c.useEffect(()=>{const i=r.current;if(!i)return;const l=new IntersectionObserver(([d])=>{d.isIntersecting?(a(!0),n&&l.disconnect()):n||a(!1)},{threshold:t,rootMargin:s});return l.observe(i),()=>l.disconnect()},[t,s,n]),{ref:r,inView:o}}function is({children:t,as:s="div",once:n=!1,threshold:r=.1,rootMargin:o="0px",onEnter:a,onLeave:i,...l}){const{ref:d,inView:u}=Oe({threshold:r,rootMargin:o,once:n}),p=c.useRef(!1);return c.useEffect(()=>{u&&!p.current&&(a==null||a()),!u&&p.current&&(i==null||i()),p.current=u},[u]),e.jsx(s,{ref:d,...l,children:typeof t=="function"?t(u):t})}const Ae={default:S.Info,success:S.CheckCircle,warning:S.AlertTriangle,error:S.XCircle};let de=[];const ye=new Set;function We(){ye.forEach(t=>t([...de]))}function ls(t){de=[...de,t],We()}function cs(t){de=de.filter(s=>s.id!==t),We()}function ds(){const t=(s,n={})=>{ls({id:`${Date.now()}-${Math.random()}`,message:s,type:"default",duration:4e3,...n})};return t.success=(s,n)=>t(s,{...n,type:"success"}),t.error=(s,n)=>t(s,{...n,type:"error"}),t.warning=(s,n)=>t(s,{...n,type:"warning"}),{toast:t}}function us({data:t,onDismiss:s}){const[n,r]=c.useState(!1),o=c.useRef(null);c.useEffect(()=>(requestAnimationFrame(()=>r(!0)),t.duration>0&&(o.current=setTimeout(()=>a(),t.duration)),()=>clearTimeout(o.current)),[]);function a(){r(!1),setTimeout(()=>s(t.id),250)}const i=Ae[t.type]??Ae.default;return e.jsxs("div",{className:["ds-toast",`ds-toast--${t.type}`,n&&"ds-toast--visible"].filter(Boolean).join(" "),role:t.type==="error"?"alert":"status","aria-live":"polite",children:[e.jsx("div",{className:"ds-toast__icon",children:e.jsx(i,{size:C[3],strokeWidth:1.5})}),e.jsx("span",{className:"ds-toast__message",children:t.message}),e.jsx("button",{className:"ds-toast__close",onClick:a,"aria-label":"Закрыть",children:e.jsx(S.X,{size:C[3],strokeWidth:1.5})})]})}function fs({position:t="bottom-right"}){const[s,n]=c.useState(()=>[...de]);return c.useEffect(()=>(ye.add(n),()=>ye.delete(n)),[]),!s.length||typeof document>"u"?null:ue.createPortal(e.jsx("div",{"data-ds-portal":"",className:["ds-toast-container",`ds-toast-container--${t}`].join(" "),children:s.map(r=>e.jsx(us,{data:r,onDismiss:cs},r.id))}),document.body)}const ms={running:e.jsx(oe,{size:"xs",variant:"info",children:"Running..."}),success:e.jsx(oe,{size:"xs",variant:"success",children:"Done"}),error:e.jsx(oe,{size:"xs",variant:"error",children:"Error"})};function Ue({label:t,status:s="idle",icon:n,badge:r,defaultExpanded:o=!1,expanded:a,onToggle:i,children:l,className:d="",...u}){const p=s==="running",h=e.jsxs("span",{className:"ds-tool-card__title-row",children:[n&&e.jsx("span",{className:"ds-tool-card__icon",children:n}),e.jsx("span",{className:"ds-tool-card__label",children:t}),ms[s],r]});return l?e.jsx("div",{className:["ds-tool-card",p&&"ds-tool-card--running",d].filter(Boolean).join(" "),...u,children:e.jsx(xe,{title:h,padding:"s",defaultExpanded:o,expanded:p?!1:a,onToggle:p?void 0:i,children:e.jsx("div",{className:"ds-tool-card__body",children:l})})}):e.jsx("div",{className:["ds-tool-card","ds-tool-card--bubble",d].filter(Boolean).join(" "),...u,children:h})}function Ve({text:t,size:s="xs",timeout:n=800,"aria-label":r="Copy to clipboard",...o}){const[a,i]=c.useState(!1),l=d=>{d.currentTarget.blur(),navigator.clipboard.writeText(t).then(()=>{i(!0),setTimeout(()=>i(!1),n)})};return e.jsx(ee,{variant:"ghost",size:s,state:a?"success":"idle",icon:e.jsx(S.Copy,{size:C[1],strokeWidth:1.5}),"aria-label":r,onClick:l,...o})}function ps({content:t,streaming:s=!1,...n}){const[r,o]=c.useState(s);return c.useEffect(()=>{o(!!s)},[s]),e.jsx(xe,{expanded:r,onToggle:o,padding:"s",title:e.jsxs("div",{className:"ds-reasoning__title",children:[e.jsx(S.Brain,{size:C[1],strokeWidth:1.5,className:"ds-reasoning__icon"}),e.jsx(Le,{secondary:!0,children:"Thinking"})]}),...n,children:e.jsxs(Ee,{secondary:!0,style:{whiteSpace:"pre-wrap"},children:[t,s&&e.jsx("span",{className:"ds-cursor ds-cursor--line"})]})})}function hs({count:t,current:s=0,done:n=[],onChange:r,showCounter:o=!0,className:a="","aria-label":i="Steps",...l}){return e.jsxs("div",{className:["ds-step-indicator",a].filter(Boolean).join(" "),...l,children:[e.jsx("div",{className:"ds-step-indicator__dots",role:"tablist","aria-label":i,children:Array.from({length:t},(d,u)=>{const p=u===s,h=n.includes(u)&&!p,x=r&&(u<=s||n.includes(u)),f=["ds-step-indicator__dot",p&&"ds-step-indicator__dot--active",h&&"ds-step-indicator__dot--done"].filter(Boolean).join(" ");return e.jsx("button",{type:"button",className:f,role:"tab","aria-selected":p,"aria-label":`Step ${u+1}`,disabled:!x||u===s,onClick:()=>r==null?void 0:r(u),children:h?e.jsx(S.Check,{size:8,strokeWidth:3}):null},u)})}),o&&e.jsxs(Ee,{secondary:!0,className:"ds-step-indicator__counter",children:[s+1," / ",t]})]})}function xs({content:t,isStreaming:s=!1,cursor:n="line",onChunk:r,className:o="",...a}){const i=c.useRef(t);return c.useEffect(()=>{t!==i.current&&(r==null||r(t),i.current=t)},[t,r]),e.jsxs("span",{className:["ds-streaming-text",o].filter(Boolean).join(" "),...a,children:[t,s&&n!=="none"&&e.jsx("span",{className:`ds-cursor ds-cursor--${n}`,"aria-hidden":"true"})]})}function vs({role:t="assistant",header:s,footer:n,attachments:r,isStreaming:o=!1,children:a,className:i="",...l}){const d=["ds-chat-message",`ds-chat-message--${t}`,o&&"ds-chat-message--streaming",i].filter(Boolean).join(" ");return t==="system"?e.jsx("div",{className:d,...l,children:e.jsx("span",{className:"ds-chat-message__system-label",children:a})}):t==="user"?e.jsxs("div",{className:d,...l,children:[r&&e.jsx("div",{className:"ds-chat-message__attachments",children:r}),e.jsx("div",{className:"ds-chat-message__bubble",children:a}),n&&e.jsx("div",{className:"ds-chat-message__footer",children:n})]}):e.jsxs("div",{className:d,...l,children:[s&&e.jsx("div",{className:"ds-chat-message__header",children:s}),r&&e.jsx("div",{className:"ds-chat-message__attachments",children:r}),e.jsx("div",{className:"ds-chat-message__body",children:a}),n&&e.jsx("div",{className:"ds-chat-message__footer",children:n})]})}function bs(t,{containerRef:s,smartPause:n=!0}={}){const r=c.useRef(!1),o=c.useRef(0);c.useEffect(()=>{const a=s==null?void 0:s.current;if(!a)return;const i=()=>{const l=a.scrollHeight-a.scrollTop-a.clientHeight<64;!l&&a.scrollTop<o.current&&(r.current=!0),l&&(r.current=!1),o.current=a.scrollTop};return a.addEventListener("scroll",i,{passive:!0}),()=>a.removeEventListener("scroll",i)},[s]),c.useEffect(()=>{const a=s==null?void 0:s.current;a&&(n&&r.current||(a.scrollTop=a.scrollHeight))},t)}function Xe({prompts:t,enabled:s,typingSpeed:n=38,erasingSpeed:r=18,holdTime:o=2200,betweenTime:a=380,manualPauseMs:i=5e3}){const[l,d]=c.useState(0),[u,p]=c.useState(""),h=c.useRef("typing"),x=c.useRef(0),f=c.useRef(0),v=c.useRef(null),b=c.useRef(0);c.useEffect(()=>{f.current=l},[l]),c.useEffect(()=>{if(v.current&&(clearTimeout(v.current),v.current=null),!s||t.length===0){p(""),x.current=0,h.current="typing";return}const A=()=>{const D=Date.now();if(b.current>D){v.current=setTimeout(A,b.current-D);return}const M=t[f.current%t.length]??"";h.current==="typing"?(x.current+=1,p(M.slice(0,x.current)),x.current>=M.length?(h.current="holding",v.current=setTimeout(A,o)):v.current=setTimeout(A,n+Math.random()*28)):h.current==="holding"?(h.current="erasing",v.current=setTimeout(A,r)):(x.current=Math.max(0,x.current-1),p(M.slice(0,x.current)),x.current<=0?(h.current="typing",f.current=(f.current+1)%t.length,d(f.current),v.current=setTimeout(A,a)):v.current=setTimeout(A,r))};return v.current=setTimeout(A,260),()=>{v.current&&clearTimeout(v.current)}},[s,t,n,r,o,a]);const N=A=>{if(t.length===0)return;const D=(A%t.length+t.length)%t.length,M=t[D];f.current=D,x.current=M.length,h.current="holding",b.current=Date.now()+i,d(D),p(M)},R=()=>N(f.current+1),y=()=>N(f.current-1),j=t[l%t.length]??"";return{displayed:u,currentPrompt:j,index:l,next:R,prev:y}}let _s=0;function js({value:t="",onChange:s,onSubmit:n,onStop:r,onKeyDown:o,loading:a=!1,disabled:i=!1,placeholder:l="Let's get things done...",animatedPlaceholders:d,attachments:u,images:p,onAttachFiles:h,onAttachImages:x,onRemoveAttachment:f,onRemoveImage:v,acceptImage:b,acceptFile:N,maxImages:R,maxImageSize:y,leftSlot:j,rightSlot:A,className:D="",...M}){const W=c.useRef(null),H=c.useRef(null),U=c.useRef(0),[w,P]=c.useState(!1),[q,F]=c.useState([]),B=g=>{const I=++_s;F(Y=>[...Y,{id:I,msg:g}]),setTimeout(()=>F(Y=>Y.filter(G=>G.id!==I)),6e3)},_=g=>F(I=>I.filter(Y=>Y.id!==g)),k=g=>g.type.startsWith("image/"),$=()=>!0,z=b??k,X=N??$,E=g=>{const I=[],Y=[],G=[],K=[];let Z=0,ie=R!=null?R-((p==null?void 0:p.length)??0):1/0;for(const Q of g)z(Q)?y&&Q.size>y?G.push(Q.name):ie>0?(I.push(Q),ie--):Z++:X(Q)?Y.push(Q):K.push(Q.name);return{imageFiles:I,docFiles:Y,tooLarge:G,skipped:K,limitExceeded:Z}},m=g=>{const{imageFiles:I,docFiles:Y,tooLarge:G,skipped:K,limitExceeded:Z}=E(g);G.length&&B(`File${G.length>1?"s":""} too large${y?` (max ${y/1024/1024}MB)`:""}: ${G.join(", ")}`),K.length&&B(`Skipped unsupported file${K.length>1?"s":""}: ${K.join(", ")}`),Z&&B(`Max ${R} images per message`),x&&I.length&&x(I);const ie=Y.concat(x?[]:I);h&&ie.length&&h(ie)};c.useEffect(()=>{const g=H.current;g&&(g.style.height="auto",g.style.height=`${Math.min(g.scrollHeight,200)}px`)},[t]),c.useEffect(()=>{const g=I=>{var G,K,Z;if(a||i)return;const Y=(G=I.target)==null?void 0:G.tagName;Y==="INPUT"||Y==="TEXTAREA"||Y==="SELECT"||(K=I.target)!=null&&K.isContentEditable||I.ctrlKey||I.metaKey||I.altKey||I.key.length!==1&&I.key!=="Backspace"&&I.key!=="Delete"||(Z=H.current)==null||Z.focus()};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[a,i]);const T=g=>{g.preventDefault(),U.current++,g.dataTransfer.types.includes("Files")&&P(!0)},L=g=>{g.preventDefault(),U.current--,U.current===0&&P(!1)},O=g=>g.preventDefault(),te=g=>{g.preventDefault(),U.current=0,P(!1);const I=Array.from(g.dataTransfer.files);I.length&&m(I)},ne=g=>{const I=Array.from(g.target.files||[]);W.current&&(W.current.value=""),I.length&&m(I)},V=g=>{var Q;if(!x)return;const I=(Q=g.clipboardData)==null?void 0:Q.items;if(!I)return;const Y=[];for(const Ye of I){const Se=Ye.getAsFile();Se&&Y.push(Se)}if(Y.length===0)return;const{imageFiles:G,tooLarge:K,skipped:Z,limitExceeded:ie}=E(Y);K.length&&B(`File${K.length>1?"s":""} too large: ${K.join(", ")}`),Z.length&&B(`Skipped unsupported file${Z.length>1?"s":""}: ${Z.join(", ")}`),ie&&B(`Max ${R} images per message`),G.length&&(g.preventDefault(),x(G))},J=!a&&!i&&!!(d!=null&&d.length)&&t.length===0,re=Xe({prompts:d??[],enabled:J}),be=g=>{if(J){if(g.key==="ArrowDown"||g.key==="ArrowRight"){g.preventDefault(),re.next();return}if(g.key==="ArrowUp"||g.key==="ArrowLeft"){g.preventDefault(),re.prev();return}if(g.key==="Tab"&&!g.shiftKey){g.preventDefault(),s==null||s(re.currentPrompt);return}}o==null||o(g)},qe=(t.trim()||(p==null?void 0:p.length)>0||(u==null?void 0:u.length)>0)&&!i,Re=h||x;return e.jsxs("div",{className:["ds-prompt-input",D].filter(Boolean).join(" "),...M,children:[Re&&e.jsx("input",{ref:W,type:"file",multiple:!0,accept:"*/*",className:"ds-prompt-input__file-input",onChange:ne}),e.jsxs("div",{className:["ds-prompt-input__box",w&&"ds-prompt-input__box--dragging"].filter(Boolean).join(" "),onDragEnter:T,onDragLeave:L,onDragOver:O,onDrop:te,children:[w&&e.jsx("div",{className:"ds-prompt-input__drag-overlay",children:"Drop files here"}),e.jsx("textarea",{ref:H,value:t,onChange:g=>s==null?void 0:s(g.target.value),onKeyDown:be,onPaste:V,placeholder:J?"":l,disabled:a||i,rows:1,className:["ds-prompt-input__textarea",J&&"ds-prompt-input__textarea--anim"].filter(Boolean).join(" ")}),J&&e.jsxs("div",{className:"ds-prompt-input__anim","aria-hidden":"true",children:[e.jsx("span",{className:"ds-prompt-input__anim-text",children:re.displayed}),e.jsx("span",{className:"ds-prompt-input__anim-cursor"})]}),p&&p.length>0&&e.jsx("div",{className:"ds-prompt-input__images",children:p.map((g,I)=>e.jsxs("div",{className:"ds-prompt-input__image-thumb",children:[e.jsx("img",{src:g.preview,alt:""}),e.jsx("button",{className:"ds-prompt-input__image-remove",onClick:()=>v==null?void 0:v(I),"aria-label":"Remove image",type:"button",children:e.jsx(S.X,{size:12,strokeWidth:2})})]},I))}),q.length>0&&e.jsx("div",{className:"ds-prompt-input__warnings",children:q.map(g=>e.jsxs("div",{className:"ds-prompt-input__warning",role:"alert",children:[e.jsx("span",{children:g.msg}),e.jsx("button",{type:"button",className:"ds-prompt-input__warning-close",onClick:()=>_(g.id),"aria-label":"Dismiss",children:e.jsx(S.X,{size:C[1],strokeWidth:1.5})})]},g.id))}),u&&u.length>0&&e.jsx("div",{className:"ds-prompt-input__attachments",children:u.map((g,I)=>e.jsx(oe,{size:"xs",children:e.jsxs("span",{className:"ds-prompt-input__badge-content",children:[g.uploading?e.jsx(S.Loader,{size:C[1],strokeWidth:1.5,className:"spin"}):e.jsx(S.Paperclip,{size:C[1],strokeWidth:1.5}),g.filename,g.uploading?e.jsx("span",{className:"ds-prompt-input__uploading",children:"Uploading..."}):e.jsx("button",{type:"button",className:"ds-prompt-input__remove-btn",onClick:()=>f==null?void 0:f(I),children:e.jsx(S.X,{size:C[1],strokeWidth:1.5})})]})},I))}),e.jsxs("div",{className:"ds-prompt-input__toolbar",children:[Re&&e.jsx(ee,{variant:"ghost",size:"xs",icon:e.jsx(S.Paperclip,{size:C[2],strokeWidth:1.5}),"aria-label":"Attach files",onClick:()=>{var g;return(g=W.current)==null?void 0:g.click()}}),j,A,e.jsx("div",{className:"ds-prompt-input__spacer"}),a?e.jsx(ee,{variant:"primary",size:"xs",icon:e.jsx(S.Square,{size:C[2],strokeWidth:1.5}),onClick:r,"aria-label":"Stop"}):e.jsx(ee,{variant:"primary",size:"xs",icon:e.jsx(S.ArrowUp,{size:C[2],strokeWidth:1.5}),onClick:n,disabled:!qe,"aria-label":"Send"})]})]})]})}const Be={fast:0,standard:1,premium:2},Ie={fast:"data-5",standard:"data-3",premium:"data-6"};function Ns({models:t=[],value:s,onChange:n,size:r="xs",minTier:o,showAutoOption:a=!1,groupByTier:i=!0,className:l="",...d}){const[u,p]=c.useState(!1),h=c.useRef(null),x=c.useRef(null),f=c.useRef(null),[v,b]=c.useState({}),N=t.filter(w=>!o||w.name==="auto"?!0:(Be[w.tier]??1)>=(Be[o]??1)),R=N.find(w=>w.name==="auto"),y=N.filter(w=>w.name!=="auto"),j=t.find(w=>w.name===s),D=new Set(y.map(w=>w.tier).filter(Boolean)).size>1;c.useEffect(()=>{if(!u)return;const w=320,P=()=>{var $;const B=($=x.current)==null?void 0:$.getBoundingClientRect();if(!B)return;const _=window.innerHeight-B.bottom,k=_<w+8&&B.top>_;b({position:"fixed",zIndex:"var(--z-dropdown, 500)",left:B.left,...k?{bottom:window.innerHeight-B.top+4,top:"auto"}:{top:B.bottom+4,bottom:"auto"}})};P(),window.addEventListener("scroll",P,!0),window.addEventListener("resize",P);const q=B=>{var _,k;!((_=h.current)!=null&&_.contains(B.target))&&!((k=f.current)!=null&&k.contains(B.target))&&p(!1)},F=B=>{B.key==="Escape"&&p(!1)};return document.addEventListener("mousedown",q),document.addEventListener("keydown",F),()=>{window.removeEventListener("scroll",P,!0),window.removeEventListener("resize",P),document.removeEventListener("mousedown",q),document.removeEventListener("keydown",F)}},[u]);const M=w=>{n==null||n(w),p(!1)},W=w=>e.jsxs("button",{type:"button",className:["ds-model-picker__item",w.name===s&&"ds-model-picker__item--active"].filter(Boolean).join(" "),onClick:()=>M(w.name),children:[w.icon?e.jsx("span",{className:"ds-model-picker__item-icon",children:w.icon}):e.jsx(S.Cpu,{size:12,strokeWidth:1.5,className:"ds-model-picker__item-icon"}),e.jsx("span",{className:"ds-model-picker__item-name",children:w.displayName||w.name}),D&&w.tier&&e.jsx(oe,{size:"xs",variant:Ie[w.tier]||"default",children:w.tier})]},w.name),H=()=>!i||!D?y.map(W):["fast","standard","premium"].flatMap(w=>{const P=y.filter(q=>q.tier===w);return P.length?[e.jsx("div",{className:"ds-model-picker__group-label","data-tier":w,children:w.charAt(0).toUpperCase()+w.slice(1)},`lbl-${w}`),...P.map(W)]:[]}),U=u&&e.jsxs("div",{ref:f,className:"ds-model-picker__menu ds-scrollable","data-ds-portal":"",style:v,children:[a&&R&&e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",className:["ds-model-picker__item","ds-model-picker__item--auto",s==="auto"&&"ds-model-picker__item--active"].filter(Boolean).join(" "),onClick:()=>M("auto"),children:[e.jsx(S.Zap,{size:12,strokeWidth:1.5,className:"ds-model-picker__item-icon"}),e.jsx("span",{className:"ds-model-picker__item-name",children:"Auto (smart routing)"})]}),y.length>0&&e.jsx("div",{className:"ds-model-picker__separator"})]}),H()]});return e.jsxs("div",{ref:h,className:["ds-model-picker",l].filter(Boolean).join(" "),...d,children:[e.jsxs("button",{ref:x,type:"button",className:"ds-model-picker__trigger",onClick:()=>p(w=>!w),"aria-haspopup":"listbox","aria-expanded":u,children:[j!=null&&j.icon?e.jsx("span",{children:j.icon}):e.jsx(S.Cpu,{size:12,strokeWidth:1.5}),e.jsx("span",{className:"ds-model-picker__trigger-name",children:(j==null?void 0:j.displayName)||(j==null?void 0:j.name)||s}),D&&(j==null?void 0:j.tier)&&e.jsx(oe,{size:"xs",variant:Ie[j.tier]||"default",children:j.tier})]}),typeof document<"u"&&ue.createPortal(U,document.body)]})}const gs=({filename:t,pages:s})=>e.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"var(--space-2)",minWidth:0},children:[e.jsx("span",{className:"ds-sources-panel__filename",children:t}),s.length>0&&e.jsx("span",{className:"ds-sources-panel__pages",children:ke(s)})]});function ke(t){return t!=null&&t.length?"p. "+t.join(", "):null}function ws(t){const s=new Map;for(const n of t)s.has(n.filename)||s.set(n.filename,{filename:n.filename,url:n.url,items:[]}),s.get(n.filename).items.push(n);return[...s.values()]}function ys({sources:t=[],layout:s="list",title:n="Sources",maxVisible:r=5,onSourceClick:o}){const[a,i]=c.useState(!1),l=ws(t),d=l.length>r,u=a?l:l.slice(0,r),p=t.some(x=>x.snippet),h=["ds-sources-panel",s==="compact"&&"ds-sources-panel--compact"].filter(Boolean).join(" ");return s==="compact"?e.jsxs("div",{className:h,children:[u.map(x=>{const f=x.items.map(b=>b.page).filter(Boolean),v=!!o;return e.jsxs("div",{className:`ds-sources-panel__compact-row${v?" ds-sources-panel__compact-row--clickable":""}`,onClick:v?()=>o(x.items[0]):void 0,children:[e.jsx(S.FileText,{size:C[1],strokeWidth:1.5,className:"ds-sources-panel__compact-icon"}),e.jsx("span",{className:"ds-sources-panel__filename",children:x.filename}),f.length>0&&e.jsx("span",{className:"ds-sources-panel__pages",children:ke(f)})]},x.filename)}),d&&!a&&e.jsxs("button",{className:"ds-sources-panel__more",onClick:()=>i(!0),children:["+",l.length-r," more sources"]})]}):e.jsxs("div",{className:h,children:[n&&e.jsx("div",{className:"ds-sources-panel__title",children:n}),u.map(x=>{const f=x.items.map(b=>b.page).filter(Boolean),v=!!o;return p?e.jsx(xe,{title:e.jsx(gs,{filename:x.filename,pages:f}),padding:"s",children:x.items.map((b,N)=>e.jsx("div",{className:`ds-sources-panel__snippet${v?" ds-sources-panel__snippet--clickable":""}`,onClick:v?()=>o(b):void 0,children:b.snippet??`p. ${b.page}`},N))},x.filename):e.jsxs("div",{className:`ds-sources-panel__row${v?" ds-sources-panel__row--clickable":""}`,onClick:v?()=>o(x.items[0]):void 0,children:[e.jsx("span",{className:"ds-sources-panel__filename",children:x.filename}),f.length>0&&e.jsx("span",{className:"ds-sources-panel__pages",children:ke(f)})]},x.filename)}),d&&!a&&e.jsxs("button",{className:"ds-sources-panel__more",onClick:()=>i(!0),children:["+",l.length-r," more sources"]})]})}function De(t){return t>=1e6?(t/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e3?(t/1e3).toFixed(1).replace(/\.0$/,"")+"K":String(t)}function ks({used:t,limit:s,size:n="s",showCount:r=!0,showPercent:o=!1,warningThreshold:a=.8,errorThreshold:i=1}){const l=s>0?t/s:0,d=Math.min(l*100,100),u=l>=i?"error":l>=a?"warning":"normal";return e.jsxs("div",{className:`ds-token-counter ds-token-counter--${n}`,role:"meter","aria-valuenow":t,"aria-valuemax":s,children:[e.jsx("div",{className:"ds-token-counter__track",children:e.jsx("div",{className:`ds-token-counter__fill ds-token-counter__fill--${u}`,style:{width:`${d}%`}})}),(r||o)&&e.jsxs("div",{className:`ds-token-counter__label ds-token-counter__label--${u}`,children:[r&&e.jsxs("span",{children:[De(t)," / ",De(s)]}),o&&e.jsxs("span",{style:{marginLeft:"auto"},children:[Math.round(l*100),"%"]})]})]})}const Ce=5;function Es(t){return t<.34?"low":t<.67?"medium":"high"}function Rs({value:t=0,size:s="xs",showLabel:n="none",layout:r="inline"}){const o=Math.max(0,Math.min(1,t)),a=Math.round(o*Ce),i=Es(o);return e.jsxs("div",{className:["ds-confidence-bar",`ds-confidence-bar--${s}`,`ds-confidence-bar--${i}`,r==="block"&&"ds-confidence-bar--block"].filter(Boolean).join(" "),children:[e.jsx("div",{className:"ds-confidence-bar__segments","aria-hidden":"true",children:Array.from({length:Ce},(l,d)=>e.jsx("div",{className:`ds-confidence-bar__seg${d<a?" ds-confidence-bar__seg--filled":""}`},d))}),n==="text"&&e.jsx("span",{className:"ds-confidence-bar__label",children:i})]})}const Ss={add:"+",remove:"-",context:" "};function _e({line:t,lineNumbers:s}){return e.jsxs("div",{className:`ds-diff-view__line ds-diff-view__line--${t.type}`,children:[s&&t.lineNo!=null&&e.jsx("span",{className:"ds-diff-view__lineno",children:t.lineNo}),e.jsx("span",{className:"ds-diff-view__prefix",children:Ss[t.type]}),e.jsx("span",{className:"ds-diff-view__text",children:t.text})]})}function Ts({lines:t=[],layout:s="inline",wordWrap:n=!1,lineNumbers:r=!0,maxHeight:o,title:a}){const i=["ds-diff-view",`ds-diff-view--${s}`,n&&"ds-diff-view--wrap"].filter(Boolean).join(" "),l=o?{maxHeight:o,overflowY:"auto"}:void 0;if(s==="split"){const d=t.filter(p=>p.type==="remove"||p.type==="context"),u=t.filter(p=>p.type==="add"||p.type==="context");return e.jsxs("div",{className:i,children:[a&&e.jsx("div",{className:"ds-diff-view__title",children:a}),e.jsxs("div",{className:"ds-diff-view__body ds-scrollable",style:l,children:[e.jsx("div",{className:"ds-diff-view__split-col ds-scrollable",children:d.map((p,h)=>e.jsx(_e,{line:p,lineNumbers:r},h))}),e.jsx("div",{className:"ds-diff-view__split-col ds-scrollable",children:u.map((p,h)=>e.jsx(_e,{line:p,lineNumbers:r},h))})]})]})}return e.jsxs("div",{className:i,children:[a&&e.jsx("div",{className:"ds-diff-view__title",children:a}),e.jsx("div",{className:"ds-diff-view__body ds-scrollable",style:l,children:t.map((d,u)=>e.jsx(_e,{line:d,lineNumbers:r},u))})]})}function He({value:t="idle",onLike:s,onDislike:n,className:r="",...o}){const a=t!=="idle";return e.jsxs("div",{className:["ds-message-feedback",a&&"ds-message-feedback--voted",r].filter(Boolean).join(" "),...o,children:[(!a||t==="liked")&&e.jsx("button",{className:["ds-message-feedback__btn",t==="liked"&&"ds-message-feedback__btn--liked"].filter(Boolean).join(" "),onClick:s,disabled:a,"aria-label":"Like","aria-pressed":t==="liked",children:e.jsx(S.ThumbsUp,{size:C[1],strokeWidth:1.5,fill:t==="liked"?"currentColor":"none"})}),(!a||t==="disliked")&&e.jsx("button",{className:["ds-message-feedback__btn",t==="disliked"&&"ds-message-feedback__btn--disliked"].filter(Boolean).join(" "),onClick:n,disabled:a,"aria-label":"Dislike","aria-pressed":t==="disliked",children:e.jsx(S.ThumbsDown,{size:C[1],strokeWidth:1.5,fill:t==="disliked"?"currentColor":"none"})})]})}function $s(t){const s=t instanceof Date?t:new Date(t);if(isNaN(s))return null;const n=new Date,r=s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),o=new Date(n.getFullYear(),n.getMonth(),n.getDate()),a=new Date(o-864e5);if(s>=o)return r;if(s>=a)return`Yesterday ${r}`;const i=s.getDate(),l=s.toLocaleString([],{month:"short"});return`${i} ${l} ${r}`}function As({role:t="assistant",text:s,timestamp:n,feedbackValue:r="idle",onLike:o,onDislike:a,className:i="",...l}){const d=t==="assistant"&&(o||a),u=!!s,p=n?$s(n):null;return!d&&!u&&!p?null:e.jsxs("div",{className:["ds-message-footer",`ds-message-footer--${t}`,i].filter(Boolean).join(" "),...l,children:[t==="user"&&p&&e.jsx("span",{className:"ds-message-footer__timestamp ds-message-action",children:p}),d&&e.jsx(He,{className:"ds-message-action",value:r,onLike:o,onDislike:a}),u&&e.jsx(Ve,{className:"ds-message-action",text:s}),t==="assistant"&&p&&e.jsx("span",{className:"ds-message-footer__timestamp ds-message-action",children:p})]})}function Bs({label:t,className:s="",...n}){return e.jsxs("span",{className:["ds-thinking-dot",s].filter(Boolean).join(" "),...n,children:[e.jsx("span",{className:"ds-thinking-dot__pulse"}),t&&e.jsx("span",{className:"ds-thinking-dot__label",children:t})]})}function Is({variant:t="light",glow:s,mask:n=!0,style:r,...o}){const a=t==="dark",i=s??a,l=a?"rgba(255,250,250,0.05)":"var(--color-border-light)",d=a?"rgba(255,250,250,0.025)":"color-mix(in srgb, var(--color-border-light) 50%, transparent)";return e.jsx("div",{style:{position:"absolute",inset:0,pointerEvents:"none",overflow:"hidden",zIndex:0,...i&&{background:"radial-gradient(ellipse 1000px 500px at 50% 30%, rgba(234,100,100,0.18), transparent 70%)"},...r},...o,children:e.jsx("div",{style:{position:"absolute",inset:0,backgroundImage:[`linear-gradient(${l} 1px, transparent 1px)`,`linear-gradient(90deg, ${l} 1px, transparent 1px)`,`linear-gradient(${d} 1px, transparent 1px)`,`linear-gradient(90deg, ${d} 1px, transparent 1px)`].join(", "),backgroundSize:"80px 80px, 80px 80px, 16px 16px, 16px 16px",backgroundPosition:"-1px -1px, -1px -1px, -1px -1px, -1px -1px",...n&&{WebkitMaskImage:"radial-gradient(ellipse at center, #000 30%, transparent 85%)",maskImage:"radial-gradient(ellipse at center, #000 30%, transparent 85%)"}}})})}function Ds({children:t,axis:s="y",style:n,className:r="",...o}){const a=s==="x"?{overflowX:"auto",overflowY:"hidden"}:s==="both"?{overflow:"auto"}:{overflowY:"auto",overflowX:"hidden"};return e.jsx("div",{className:`ds-scrollable ${r}`,style:{...a,...n},...o,children:t})}const je=280,Cs=22,Ps=14,ae=8,he=6,Ls=200;function Ms(t){return t?typeof t=="function"?t():typeof t=="string"?document.querySelector(t):null:null}function zs(t,s,n,r){const o=window.innerWidth,a=window.innerHeight;if(a-t.bottom>=s+r+ae)return"bottom";if(t.top>=s+r+ae)return"top";if(o-t.right>=n+r+ae)return"right";if(t.left>=n+r+ae)return"left";const i=Math.max(t.top,a-t.bottom,o-t.right,t.left);return i===a-t.bottom?"bottom":i===t.top?"top":i===o-t.right?"right":"left"}function Fs(t,s,n,r,o){const a=window.innerWidth,i=window.innerHeight;let l,d;switch(t){case"top":l=s.top-n-o,d=s.left+s.width/2-r/2;break;case"bottom":l=s.bottom+o,d=s.left+s.width/2-r/2;break;case"left":l=s.top+s.height/2-n/2,d=s.left-r-o;break;default:l=s.top+s.height/2-n/2,d=s.right+o}const u=Math.max(ae,Math.min(a-r-ae,d));return{top:Math.max(ae,Math.min(i-n-ae,l)),left:u,arrowOffset:d-u}}function Os({steps:t,currentStep:s,onNext:n,onBack:r,onSkip:o,onFinish:a,overlay:i=!0,ring:l=!0,labelNext:d="Next",labelBack:u="Back",labelSkip:p="Skip tour",labelFinish:h="Done",statePrimary:x="idle",stateBack:f="idle"}){const v=c.useRef(null),b=c.useRef(t),N=c.useRef(s),R=c.useRef(l);b.current=t,N.current=s,R.current=l;const[y,j]=c.useState(!1),[A,D]=c.useState({position:"fixed",visibility:"hidden",width:je}),[M,W]=c.useState("bottom"),[H,U]=c.useState(null),w=c.useRef(!1),P=t[s],q=s===t.length-1,F=c.useCallback(()=>{const B=b.current[N.current];if(!B||!v.current)return;const _=Ms(B.target);if(!_)return;const k=_.getBoundingClientRect(),z=v.current.getBoundingClientRect().height||160,X=je,E=R.current?Cs:Ps,m=B.position||zs(k,z,X,E),{top:T,left:L,arrowOffset:O}=Fs(m,k,z,X,E);W(m),D({position:"fixed",top:T,left:L,width:je,visibility:"visible","--arrow-offset":`${O}px`}),U({top:k.top-he,left:k.left-he,width:k.width+he*2,height:k.height+he*2})},[]);return c.useEffect(()=>{window.addEventListener("scroll",F,!0),window.addEventListener("resize",F);const B=requestAnimationFrame(()=>{F(),j(!0),w.current=!0});return()=>{cancelAnimationFrame(B),window.removeEventListener("scroll",F,!0),window.removeEventListener("resize",F)}},[]),c.useEffect(()=>{if(!w.current)return;j(!1);const B=setTimeout(()=>{D(_=>({..._,visibility:"hidden"})),requestAnimationFrame(()=>{F(),j(!0)})},Ls+20);return()=>clearTimeout(B)},[s]),c.useEffect(()=>{y&&v.current&&v.current.focus({preventScroll:!0})},[y]),c.useEffect(()=>{const B=_=>{_.key==="Escape"&&o()};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[o]),c.useEffect(()=>{if(!y)return;const B=_=>{if(_.key!=="Tab"||!v.current)return;const k=Array.from(v.current.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'));if(!k.length)return;const $=k[0],z=k[k.length-1];_.shiftKey&&document.activeElement===$?(_.preventDefault(),z.focus()):!_.shiftKey&&document.activeElement===z&&(_.preventDefault(),$.focus())};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[y]),!P||typeof document>"u"?null:ue.createPortal(e.jsxs(e.Fragment,{children:[H&&e.jsx("div",{className:["ds-coachmark__spotlight",i&&"ds-coachmark__spotlight--overlay",!l&&"ds-coachmark__spotlight--no-ring",y&&"ds-coachmark__spotlight--visible"].filter(Boolean).join(" "),style:H,"aria-hidden":"true"}),e.jsxs("div",{ref:v,"data-ds-portal":"",role:"dialog","aria-modal":"false","aria-live":"polite","aria-label":P.title??`Step ${s+1} of ${t.length}`,className:["ds-coachmark__bubble",`ds-coachmark__bubble--${M}`,y&&"ds-coachmark__bubble--visible"].filter(Boolean).join(" "),style:A,tabIndex:-1,children:[e.jsx("button",{type:"button",className:"ds-coachmark__close",onClick:o,"aria-label":p,children:e.jsx(S.X,{size:16,strokeWidth:2})}),P.title&&e.jsx("div",{className:"ds-coachmark__title",children:P.title}),e.jsx("div",{className:"ds-coachmark__body",children:P.content}),e.jsxs("div",{className:"ds-coachmark__footer",children:[t.length>1&&e.jsxs("span",{className:"ds-coachmark__counter",children:[s+1," / ",t.length]}),e.jsxs("div",{className:"ds-coachmark__footer-nav",children:[s>0&&e.jsx(ee,{variant:"secondary",size:"s",state:f,onClick:r,children:u}),e.jsx(ee,{variant:"primary",size:"s",state:x,onClick:q?a:n,children:q?h:d})]})]})]})]}),document.body)}function Ws(t,s={}){const{storageKey:n}=s,[r,o]=c.useState(0),[a,i]=c.useState(!1),l=()=>n&&typeof localStorage<"u"&&localStorage.getItem(n)==="done",d=c.useCallback(()=>{i(!1),n&&typeof localStorage<"u"&&localStorage.setItem(n,"done")},[n]);return{currentStep:r,isActive:a,start:()=>{l()||(o(0),i(!0))},next:()=>o(u=>Math.min(u+1,t.length-1)),back:()=>o(u=>Math.max(u-1,0)),skip:d,finish:d}}function Us(){const t=c.useRef(null),s=c.useCallback(()=>{const n=t.current;if(!n)return;n.classList.remove("ds-shake"),n.offsetWidth,n.classList.add("ds-shake");const r=()=>{n.classList.remove("ds-shake"),n.removeEventListener("animationend",r)};n.addEventListener("animationend",r)},[]);return{ref:t,shake:s}}exports.Accordion=xe;exports.Alert=ct;exports.AnimatedNumber=os;exports.Avatar=Rt;exports.Badge=oe;exports.Banner=ts;exports.BottomSheet=mt;exports.Breadcrumb=Mt;exports.Button=ee;exports.Card=st;exports.ChatMessage=vs;exports.Checkbox=gt;exports.Coachmark=Os;exports.Code=pt;exports.CodeAccordion=Me;exports.ConfidenceBar=Rs;exports.CopyButton=Ve;exports.DiffView=Ts;exports.Drawer=Wt;exports.DrawerFooter=ge;exports.Dropdown=ss;exports.EmptyState=Ct;exports.EngineerGrid=Is;exports.FormField=Pt;exports.H1=nt;exports.H2=rt;exports.H3=at;exports.H4=ot;exports.InView=is;exports.Input=Ze;exports.Link=ht;exports.MessageFeedback=He;exports.MessageFooter=As;exports.Modal=ut;exports.ModalFooter=le;exports.ModelPicker=Ns;exports.NavRail=Xt;exports.NavRailAgent=Qt;exports.NavRailBody=qt;exports.NavRailCustomItem=Zt;exports.NavRailDivider=Kt;exports.NavRailFooter=Gt;exports.NavRailHeader=Yt;exports.NavRailItem=Ht;exports.NavRailRecents=Jt;exports.P1=it;exports.P2=Le;exports.P3=Ee;exports.Pagination=zt;exports.ProgressBar=ns;exports.PromptInput=js;exports.Radio=wt;exports.ReasoningBlock=ps;exports.Scrollable=Ds;exports.SegmentedControl=bt;exports.Select=et;exports.SidePage=Vt;exports.SidePageFooter=we;exports.Skeleton=ze;exports.SourcesPanel=ys;exports.Spinner=Pe;exports.Stat=Lt;exports.StepIndicator=hs;exports.Stepper=tt;exports.StreamingText=xs;exports.Tab=vt;exports.Table=St;exports.TableBody=$t;exports.TableHead=Tt;exports.TableRow=At;exports.TableSubheaderRow=Bt;exports.Tabs=xt;exports.Td=Dt;exports.Textarea=Qe;exports.Th=It;exports.ThinkingDot=Bs;exports.ToastContainer=fs;exports.Toggle=Nt;exports.TokenCounter=ks;exports.ToolCallBubble=Ue;exports.ToolCallCard=Ue;exports.Tooltip=ve;exports.iconSizes=C;exports.useAnimatedNumber=Fe;exports.useAnimatedPlaceholder=Xe;exports.useCoachmark=Ws;exports.useInView=Oe;exports.useShake=Us;exports.useStreamScroll=bs;exports.useToast=ds;
package/dist/index.es.js CHANGED
@@ -1774,7 +1774,16 @@ function Us({
1774
1774
  ].filter(Boolean).join(" "), l = je((c) => {
1775
1775
  !s || !r || c.target.closest('button, a, input, select, textarea, [role="button"], [tabindex]') || r();
1776
1776
  }, [s, r]);
1777
- return /* @__PURE__ */ e.jsx(_e.Provider, { value: { collapsed: s, side: n }, children: /* @__PURE__ */ e.jsx("nav", { className: i, onClick: l, ...a, children: t }) });
1777
+ return /* @__PURE__ */ e.jsx(_e.Provider, { value: { collapsed: s, side: n }, children: /* @__PURE__ */ e.jsx(
1778
+ "nav",
1779
+ {
1780
+ className: i,
1781
+ onClick: l,
1782
+ "data-expandable": s && r ? "" : void 0,
1783
+ ...a,
1784
+ children: t
1785
+ }
1786
+ ) });
1778
1787
  }
1779
1788
  function Vs({
1780
1789
  icon: t,
package/dist/tokens.css CHANGED
@@ -1 +1 @@
1
- @layer base{:root{--color-white: #F8F9FA;--color-black: #0E0F11;--color-red-light: #EE7A7A;--color-red: #EA6464;--color-red-dark: #E15252;--data-red: #EA6464;--data-orange: #F59E42;--data-yellow: #FFCD1B;--data-teal: #34D399;--data-blue: #60A5FA;--data-violet: #A78BFA;--data-pink: #F472B6;--color-info: #60A5FA;--color-info-dark: #2563EB;--color-success: #00C86E;--color-success-dark: #00A055;--color-warning: #FFBB00;--color-warning-dark: #D97706;--color-error: #FF1200;--color-error-dark: #DC2626;--color-surface-0: #0E0F11;--color-surface-1: #16181C;--color-surface-2: #1E2026;--color-surface-3: #262830;--color-fg-primary: rgba(248, 249, 250, .92);--color-fg-secondary: rgba(248, 249, 250, .65);--color-fg-disabled: rgba(248, 249, 250, .3);--color-state-hover: rgba(248, 249, 250, .07);--color-state-active: rgba(248, 249, 250, .12);--color-state-selected: rgba(248, 249, 250, .1);--color-state-focus: rgba(248, 249, 250, .3);--color-border-light: rgba(248, 249, 250, .08);--color-border-default: rgba(248, 249, 250, .2);--color-border-strong: rgba(248, 249, 250, .4);--color-border-focus: rgba(248, 249, 250, .5);--color-accent-default: var(--color-red);--color-accent-hover: var(--color-red-light);--color-accent-fg: var(--color-white);--color-accent-hover-fg: var(--color-accent-fg);--color-accent-bg: rgba(234, 100, 100, .12);--color-status-info: var(--color-info);--color-status-info-bg: rgba(37, 99, 235, .15);--color-status-success: var(--color-success);--color-status-success-bg: rgba(0, 160, 85, .15);--color-status-warning: var(--color-warning);--color-status-warning-bg: rgba(217, 119, 6, .15);--color-status-error: var(--color-error);--color-status-error-bg: rgba(220, 38, 38, .15);--color-overlay: rgba(14, 15, 17, .65);--data-1-fg: var(--data-red);--data-1-bg: rgba(234, 100, 100, .15);--data-1-border: rgba(234, 100, 100, .35);--data-2-fg: var(--data-orange);--data-2-bg: rgba(245, 158, 66, .15);--data-2-border: rgba(245, 158, 66, .35);--data-3-fg: var(--data-yellow);--data-3-bg: rgba(255, 205, 27, .15);--data-3-border: rgba(255, 205, 27, .35);--data-4-fg: var(--data-teal);--data-4-bg: rgba( 52, 211, 153, .15);--data-4-border: rgba( 52, 211, 153, .35);--data-5-fg: var(--data-blue);--data-5-bg: rgba( 96, 165, 250, .15);--data-5-border: rgba( 96, 165, 250, .35);--data-6-fg: var(--data-violet);--data-6-bg: rgba(167, 139, 250, .15);--data-6-border: rgba(167, 139, 250, .35);--data-7-fg: var(--data-pink);--data-7-bg: rgba(244, 114, 182, .15);--data-7-border: rgba(244, 114, 182, .35);--shadow-1: 0 2px 8px rgba(0, 0, 0, .4), 0 0 0 1px rgba(248, 249, 250, .06);--shadow-2: 0 8px 24px rgba(0, 0, 0, .5), 0 0 0 1px rgba(248, 249, 250, .08);--shadow-3: 0 16px 48px rgba(0, 0, 0, .6), 0 0 0 1px rgba(248, 249, 250, .1);--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-8: 32px;--space-10: 40px;--space-12: 48px;--space-16: 64px;--radius-1: 2px;--radius-2: 4px;--radius-3: 6px;--radius-4: 8px;--radius-6: 12px;--radius-8: 16px;--radius-full: 9999px;--height-1: 24px;--height-2: 32px;--height-2-5: 36px;--height-3: 44px;--height-4: 56px;--icon-1: 16px;--icon-2: 20px;--icon-3: 24px;--icon-4: 28px;--icon-5: 48px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;--font-weight-regular: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--text-4xl: 32px;--text-3xl: 28px;--text-2xl: 24px;--text-xl: 20px;--text-lg: 16px;--text-md: 14px;--text-sm: 12px;--text-xs: 10px;--tracking-4xl: 0;--tracking-3xl: 0;--tracking-2xl: 0;--tracking-xl: 0;--tracking-lg: .02em;--tracking-md: .04em;--tracking-sm: .06em;--z-sticky: 100;--z-drawer: 200;--z-modal: 300;--z-dropdown: 400;--z-toast: 500;--z-tooltip: 600;--layout-padding-x: 16px;--layout-padding-y: 32px;--layout-header-height: 64px;--easing-standard: cubic-bezier(.2, 0, 0, 1);--easing-decelerate: cubic-bezier(0, 0, .2, 1);--easing-accelerate: cubic-bezier(.3, 0, 1, 1);--easing-emphasized: cubic-bezier(.2, 0, 0, 1);--motion-duration-instant: .1s;--motion-duration-quick: .2s;--motion-duration-moderate: .3s;--motion-duration-slow: .5s;--motion-hover: var(--motion-duration-quick) var(--easing-standard);--motion-enter: var(--motion-duration-moderate) var(--easing-decelerate);--motion-exit: var(--motion-duration-quick) var(--easing-accelerate);--motion-emphasis: var(--motion-duration-slow) var(--easing-emphasized);--transition-fast: var(--motion-duration-instant) var(--easing-standard);--transition-normal: var(--motion-duration-quick) var(--easing-standard);--transition-slow: var(--motion-duration-moderate) var(--easing-standard);--state-disabled-opacity: .4;--focus-ring-color: var(--color-state-focus);--focus-ring-offset: 2px;--focus-ring-width: 2px;--focus-ring: 0 0 0 var(--focus-ring-offset) var(--color-surface-0), 0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);--font-ui: inherit;--ui-font-weight: var(--font-weight-medium);--ui-tracking: 0;--tab-tracking: 0;--ui-text-transform: none;--tab-font-size-xs: var(--text-sm);--tab-font-size-s: var(--text-md);--tab-font-size-m: var(--text-lg);--tab-font-size-l: var(--text-lg);--tab-icon-size-xs: var(--icon-1);--tab-icon-size-s: var(--icon-2);--tab-icon-size-m: var(--icon-2);--tab-icon-size-l: var(--icon-2);--label-font-size: var(--text-md);--label-color: var(--color-fg-primary);--label-tracking: 0;--label-text-transform: none;--field-border: var(--color-border-default);--field-border-active: var(--color-border-strong);--btn-padding-ratio: .5;--btn-font-weight: var(--font-weight-medium);--btn-font-size-xs: var(--text-sm);--btn-font-size-s: var(--text-md);--btn-font-size-m: var(--text-lg);--btn-font-size-l: var(--text-lg);--btn-icon-size-xs: var(--icon-1);--btn-icon-size-s: var(--icon-2);--btn-icon-size-m: var(--icon-2);--btn-icon-size-l: var(--icon-2);--btn-secondary-color: var(--color-fg-primary);--btn-secondary-border: var(--color-border-default);--btn-secondary-hover-border: var(--color-border-strong);--btn-secondary-hover-bg: var(--color-state-hover);--btn-secondary-hover-color: var(--btn-secondary-color);--badge-font-size-xs: 11px;--badge-font-size-s: var(--text-sm);--badge-font-size-m: var(--text-md);--badge-tracking: var(--ui-tracking);--badge-text-transform: var(--ui-text-transform);--card-border: var(--color-border-light);--card-hover-transform: none;--table-th-font-family: var(--font-ui);--table-th-font-size: inherit;--table-th-color: var(--color-fg-secondary);--table-th-weight: var(--font-weight-semibold);--table-th-tracking: 0;--table-th-text-transform: none;--table-wrap-border: var(--color-border-light);--table-row-border: var(--color-border-light);--table-subrow-bg: var(--color-surface-2);--table-subrow-color: var(--color-fg-secondary);--table-subrow-font: var(--font-ui);--table-subrow-tracking: 0;--table-subrow-transform: none;--color-accent-2: #FFCD1B;--color-accent-2-bg: rgba(255, 205, 27, .1);--color-accent-2-fg: #0A0A0B;--breakpoint-mobile: 375px;--breakpoint-tablet: 768px;--breakpoint-desktop: 1280px}[data-density=compact]{--height-1: 20px;--height-2: 28px;--height-2-5: 32px;--height-3: 36px;--height-4: 44px;--space-3: 8px;--space-4: 12px;--space-5: 16px;--space-6: 20px;--text-md: 13px;--text-sm: 11px}@media (max-width: 767px){[data-density=compact]{--height-1: 24px;--height-2: 32px;--height-2-5: 36px;--height-3: 44px;--height-4: 56px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--text-md: 14px;--text-sm: 12px}}[data-corners=sharp]{--radius-1: 0;--radius-2: 0;--radius-3: 0;--radius-4: 0;--radius-6: 0;--radius-8: 0}[data-typography=editorial]{--font-ui: "Fira Code", monospace;--ui-font-weight: var(--font-weight-regular);--ui-tracking: .15em;--tab-tracking: .1em;--ui-text-transform: uppercase;--btn-padding-ratio: .62;--btn-font-weight: var(--font-weight-regular);--btn-font-size-xs: var(--text-sm);--btn-font-size-s: var(--text-sm);--btn-font-size-m: var(--text-sm);--btn-font-size-l: var(--text-sm);--badge-font-size-xs: 10px;--badge-tracking: 0;--badge-text-transform: none}[data-density=airy]{--card-hover-transform: translateY(-3px)}[data-variant=edgy]{--radius-1: 0;--radius-2: 0;--radius-3: 0;--radius-4: 0;--radius-6: 0;--radius-8: 0;--font-ui: "Fira Code", monospace;--ui-font-weight: var(--font-weight-regular);--ui-tracking: .15em;--tab-tracking: .1em;--ui-text-transform: uppercase;--btn-padding-ratio: .62;--btn-font-weight: var(--font-weight-regular);--btn-font-size-xs: var(--text-sm);--btn-font-size-s: var(--text-sm);--btn-font-size-m: var(--text-sm);--btn-font-size-l: var(--text-sm);--color-surface-0: #0A0A0B;--color-surface-1: #111114;--color-surface-2: #18181C;--color-surface-3: #1F1F24;--color-border-light: rgba(255, 250, 250, .05);--color-border-default: rgba(255, 250, 250, .1);--color-border-strong: rgba(255, 250, 250, .22);--color-border-focus: rgba(255, 250, 250, .42);--shadow-1: 0 2px 12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 250, 250, .05);--shadow-2: 0 8px 32px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 250, 250, .06);--shadow-3: 0 20px 60px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 250, 250, .07);--tab-font-size-xs: var(--text-sm);--tab-font-size-s: var(--text-sm);--tab-font-size-m: var(--text-sm);--tab-font-size-l: var(--text-sm);--tab-icon-size-xs: 16px;--tab-icon-size-s: 16px;--tab-icon-size-m: 18px;--tab-icon-size-l: 20px;--label-font-size: var(--text-sm);--label-color: var(--color-fg-secondary);--field-border: rgba(248, 249, 250, .2);--field-border-active: rgba(248, 249, 250, .4);--btn-icon-size-xs: 16px;--btn-icon-size-s: 16px;--btn-icon-size-m: 18px;--btn-icon-size-l: 20px;--btn-secondary-color: var(--color-fg-primary);--btn-secondary-border: var(--color-border-default);--btn-secondary-hover-border: var(--color-accent-2);--btn-secondary-hover-bg: var(--color-accent-2);--btn-secondary-hover-color: var(--color-accent-2-fg);--badge-font-size-xs: 10px;--badge-tracking: 0;--badge-text-transform: none;--card-border: rgba(255, 250, 250, .12);--card-hover-transform: translateY(-3px);--table-th-font-family: "Fira Code", monospace;--table-th-color: var(--color-accent-default);--table-th-weight: var(--font-weight-regular);--table-th-tracking: .15em;--table-th-text-transform: uppercase;--table-subrow-bg: var(--color-surface-2);--table-subrow-color: var(--color-fg-secondary);--table-subrow-font: "Fira Code", monospace;--table-subrow-tracking: .15em;--table-subrow-transform: uppercase;--color-accent-hover: var(--color-accent-2);--color-accent-hover-fg: var(--color-accent-2-fg)}@supports (background: color-mix(in srgb,red,blue)){:root{--color-state-hover: color-mix(in srgb, currentColor 7%, transparent);--color-state-active: color-mix(in srgb, currentColor 12%, transparent);--color-state-selected: color-mix(in srgb, currentColor 10%, transparent)}}@media (min-width: 768px){:root{--text-4xl: 40px;--text-3xl: 36px;--text-2xl: 28px;--text-xl: 24px;--text-lg: 18px;--text-md: 16px;--text-sm: 14px;--tracking-lg: .02em;--tracking-md: .02em;--tracking-sm: .04em;--layout-padding-x: 20px;--layout-padding-y: 48px;--layout-header-height: 72px}}@media (min-width: 1280px){:root{--layout-padding-x: 24px;--layout-padding-y: 64px}}body{margin:0;min-width:320px;min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--color-surface-0);color:var(--color-fg-primary);transition:background-color var(--motion-emphasis),color var(--motion-emphasis)}*{box-sizing:border-box}::selection{background-color:var(--color-state-selected);color:var(--color-fg-primary)}@media (prefers-reduced-motion: reduce){:root{--motion-duration-instant: .01ms;--motion-duration-quick: .01ms;--motion-duration-moderate: .01ms;--motion-duration-slow: .01ms}}}.ds-spinner{display:inline-block;border-radius:var(--radius-full, 9999px);border-style:solid;border-color:currentColor;border-top-color:transparent;flex-shrink:0;animation:ds-spin .7s linear infinite}@keyframes ds-spin{to{transform:rotate(360deg)}}.ds-spinner--xs{width:12px;height:12px;border-width:1.5px}.ds-spinner--s{width:16px;height:16px;border-width:2px}.ds-spinner--m{width:20px;height:20px;border-width:2px}.ds-spinner--l{width:24px;height:24px;border-width:2.5px}.ds-spinner--xl{width:32px;height:32px;border-width:3px}.ds-spinner--default{color:var(--color-accent-default)}.ds-spinner--secondary{color:var(--color-fg-secondary)}.ds-spinner--on-accent{color:var(--color-accent-fg)}@media (prefers-reduced-motion: reduce){.ds-spinner{animation-duration:.01ms;animation-iteration-count:1}}.ds-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2, 8px);font-size:var(--text-lg, 16px);font-weight:var(--btn-font-weight);font-family:var(--font-ui, inherit);letter-spacing:var(--ui-tracking, 0);text-transform:var(--ui-text-transform, none);line-height:1;border:none;cursor:pointer;transition:background-color var(--motion-hover, .2s ease),border-color var(--motion-hover, .2s ease),color var(--motion-hover, .2s ease);white-space:nowrap;text-decoration:none;position:relative;isolation:isolate}.ds-button:disabled,.ds-button[aria-disabled=true]{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed;pointer-events:none}.ds-button--primary:disabled,.ds-button--primary[aria-disabled=true]{background-color:transparent;color:var(--btn-secondary-color);border:1px solid var(--btn-secondary-border)}.ds-button__icon{display:flex;align-items:center;justify-content:center;flex-shrink:0}.ds-button__icon>svg{width:var(--_btn-icon-sz, 20px);height:var(--_btn-icon-sz, 20px);stroke-width:1.5px}.ds-button--xs{--_btn-icon-sz: var(--btn-icon-size-xs, 14px)}.ds-button--s{--_btn-icon-sz: var(--btn-icon-size-s, 16px)}.ds-button--m{--_btn-icon-sz: var(--btn-icon-size-m, 20px)}.ds-button--l{--_btn-icon-sz: var(--btn-icon-size-l, 24px)}.ds-button--primary{color:var(--color-accent-fg);background-color:var(--color-accent-default)}.ds-button--primary:hover:not(:disabled):not([aria-disabled=true]){background-color:var(--color-accent-hover);color:var(--color-accent-hover-fg)}.ds-button--secondary{color:var(--btn-secondary-color);background-color:transparent;border:1px solid var(--btn-secondary-border)}.ds-button--secondary:before,.ds-button--ghost:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;border-radius:inherit;pointer-events:none;z-index:-1;transition:background-color var(--motion-hover, .2s ease)}.ds-button--secondary:hover:not(:disabled):not([aria-disabled=true]){border-color:var(--btn-secondary-hover-border);color:var(--btn-secondary-hover-color)}.ds-button--secondary:hover:not(:disabled):not([aria-disabled=true]):before{background-color:var(--btn-secondary-hover-bg)}.ds-button--ghost{color:var(--color-fg-secondary);background-color:transparent}.ds-button--ghost:hover:not(:disabled):not([aria-disabled=true]){color:var(--color-fg-primary)}.ds-button--ghost:hover:not(:disabled):not([aria-disabled=true]):before{background-color:var(--color-state-hover)}.ds-button--danger{color:var(--color-accent-fg);background-color:var(--color-error-dark)}.ds-button--danger:hover:not(:disabled):not([aria-disabled=true]){background-color:#b91c1c}.ds-button--xs{height:var(--height-1, 24px);padding:0 calc(var(--height-1, 24px) * var(--btn-padding-ratio, .5));font-size:var(--btn-font-size-xs, 12px);border-radius:var(--radius-2, 4px)}.ds-button--s{height:var(--height-2, 32px);padding:0 calc(var(--height-2, 32px) * var(--btn-padding-ratio, .5));font-size:var(--btn-font-size-s, 14px);border-radius:var(--radius-2, 4px)}.ds-button--sm{height:var(--height-2-5, 36px);padding:0 calc(var(--height-2-5, 36px) * var(--btn-padding-ratio, .5));font-size:var(--btn-font-size-s, 14px);border-radius:var(--radius-3, 6px)}.ds-button--m{height:var(--height-3, 44px);padding:0 calc(var(--height-3, 44px) * var(--btn-padding-ratio, .5));font-size:var(--btn-font-size-m, 16px);border-radius:var(--radius-3, 6px)}.ds-button--l{height:var(--height-4, 56px);padding:0 calc(var(--height-4, 56px) * var(--btn-padding-ratio, .5));font-size:var(--btn-font-size-l, 16px);border-radius:var(--radius-3, 6px);gap:var(--space-3, 12px)}.ds-button--full{width:100%}.ds-button--icon-only{aspect-ratio:1;padding-left:0;padding-right:0}.ds-button[data-state=loading],.ds-button[data-state=success],.ds-button[data-state=error]{cursor:default;pointer-events:none}.ds-button[data-state=loading]{opacity:.7}.ds-button--primary[data-state=loading]{background-color:transparent;color:var(--color-fg-disabled);border:1px solid var(--color-border-default);opacity:1}.ds-button--primary[data-state=success],.ds-button--secondary[data-state=success],.ds-button--danger[data-state=success]{background-color:var(--color-status-success-bg);border:none;box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 35%,transparent);color:var(--color-status-success)}.ds-button--primary[data-state=error],.ds-button--secondary[data-state=error],.ds-button--danger[data-state=error]{background-color:var(--color-status-error-bg);border:none;box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 35%,transparent);color:var(--color-status-error)}.ds-button--ghost[data-state=success]{color:var(--color-status-success)}.ds-button--ghost[data-state=error]{color:var(--color-status-error)}.ds-button:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-input-wrapper{display:flex;flex-direction:column;gap:var(--space-2, 8px)}.ds-input-wrapper--full{width:100%}.ds-input-wrapper--disabled{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed}.ds-input-label{font-family:var(--font-ui, inherit);font-size:var(--label-font-size);font-weight:var(--font-weight-regular, 400);letter-spacing:var(--label-tracking);text-transform:var(--label-text-transform);color:var(--label-color)}.ds-input-container{position:relative;display:flex;align-items:center}.ds-input{width:100%;font-family:inherit;color:var(--color-fg-primary);background-color:transparent;border:1px solid var(--field-border);transition:border-color var(--transition-normal, .2s ease);line-height:1.5}.ds-input::placeholder{color:var(--color-fg-secondary)}.ds-input:hover:not(:disabled){border-color:var(--field-border-active)}.ds-input:focus,.ds-input:active{outline:none;border-color:var(--field-border-active)}.ds-input:focus-visible{box-shadow:var(--focus-ring)}.ds-input:disabled{cursor:not-allowed}.ds-input--error{border-color:var(--color-error)}.ds-input--xs{height:var(--height-1, 24px);padding:0 calc(var(--height-1, 24px) / 4);font-size:var(--text-sm, 12px);border-radius:var(--radius-2, 4px)}.ds-input--s{height:var(--height-2, 32px);padding:0 calc(var(--height-2, 32px) / 4);font-size:var(--text-md, 14px);border-radius:var(--radius-2, 4px)}.ds-input--sm{height:var(--height-2-5, 36px);padding:0 10px;font-size:var(--text-md, 14px);border-radius:var(--radius-3, 6px)}.ds-input--m{height:var(--height-3, 44px);padding:0 calc(var(--height-3, 44px) / 4);font-size:var(--text-lg, 16px);border-radius:var(--radius-3, 6px)}.ds-input--with-icon.ds-input--xs{padding-left:calc(var(--height-1, 24px) / 4 + 16px + var(--height-1, 24px) / 4)}.ds-input--with-icon.ds-input--s{padding-left:calc(var(--height-2, 32px) / 4 + 20px + var(--height-2, 32px) / 4)}.ds-input--with-icon.ds-input--sm{padding-left:40px}.ds-input--with-icon.ds-input--m{padding-left:calc(var(--height-3, 44px) / 4 + 24px + var(--height-3, 44px) / 4)}.ds-input--with-icon-right.ds-input--xs{padding-right:calc(var(--height-1, 24px) / 4 + 16px + var(--height-1, 24px) / 4)}.ds-input--with-icon-right.ds-input--s{padding-right:calc(var(--height-2, 32px) / 4 + 20px + var(--height-2, 32px) / 4)}.ds-input--with-icon-right.ds-input--sm{padding-right:40px}.ds-input--with-icon-right.ds-input--m{padding-right:calc(var(--height-3, 44px) / 4 + 24px + var(--height-3, 44px) / 4)}.ds-input-icon{position:absolute;display:flex;align-items:center;color:var(--color-fg-secondary);pointer-events:none}.ds-input-icon--xs{left:6px}.ds-input-icon--s{left:8px}.ds-input-icon--m{left:11px}.ds-input-icon-right{position:absolute;display:flex;align-items:center;justify-content:center;background:none;border:none;color:var(--color-fg-secondary);cursor:pointer;transition:color var(--transition-normal, .2s ease);padding:0}.ds-input-icon-right:hover{color:var(--color-fg-primary)}.ds-input-icon-right--xs{right:6px}.ds-input-icon-right--s{right:8px}.ds-input-icon-right--m{right:11px}.ds-input-hint{font-size:var(--text-md, 14px);color:var(--color-fg-secondary)}.ds-input-error-wrap{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows var(--transition-fast, .1s ease)}.ds-input-wrapper--error .ds-input-error-wrap{grid-template-rows:1fr}.ds-input-error-inner{overflow:hidden;min-height:0}.ds-input-error{display:block;padding-top:var(--space-1, 4px);font-size:var(--text-md, 14px);color:var(--color-error)}.ds-textarea-wrapper{display:flex;flex-direction:column;gap:var(--space-2, 8px)}.ds-textarea-wrapper--full{width:100%}.ds-textarea-wrapper--disabled{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed;pointer-events:none}.ds-textarea-label{font-family:var(--font-ui, inherit);font-size:var(--label-font-size);font-weight:var(--font-weight-regular, 400);letter-spacing:var(--label-tracking);text-transform:var(--label-text-transform);color:var(--label-color)}.ds-textarea{width:100%;font-family:inherit;color:var(--color-fg-primary);background-color:transparent;border:1px solid var(--field-border);transition:border-color var(--transition-normal, .2s ease);line-height:1.5;resize:vertical;background:linear-gradient(315deg,transparent 5px,var(--field-border) 5px,var(--field-border) 6px,transparent 6px),linear-gradient(315deg,transparent 10px,var(--field-border) 10px,var(--field-border) 11px,transparent 11px);background-repeat:no-repeat;background-position:bottom right;background-size:16px 16px}.ds-textarea::placeholder{color:var(--color-fg-secondary)}.ds-textarea::-webkit-resizer{display:none}.ds-textarea:hover:not(:disabled){border-color:var(--field-border-active);background:linear-gradient(315deg,transparent 5px,var(--field-border-active) 5px,var(--field-border-active) 6px,transparent 6px),linear-gradient(315deg,transparent 10px,var(--field-border-active) 10px,var(--field-border-active) 11px,transparent 11px);background-repeat:no-repeat;background-position:bottom right;background-size:16px 16px}.ds-textarea:focus-visible{box-shadow:var(--focus-ring)}.ds-textarea:focus,.ds-textarea:active{outline:none;border-color:var(--field-border-active);background:linear-gradient(315deg,transparent 5px,var(--field-border-active) 5px,var(--field-border-active) 6px,transparent 6px),linear-gradient(315deg,transparent 10px,var(--field-border-active) 10px,var(--field-border-active) 11px,transparent 11px);background-repeat:no-repeat;background-position:bottom right;background-size:16px 16px}.ds-textarea:disabled{cursor:not-allowed}.ds-textarea--error{border-color:var(--color-error);background:linear-gradient(315deg,transparent 5px,var(--color-error) 5px,var(--color-error) 6px,transparent 6px),linear-gradient(315deg,transparent 10px,var(--color-error) 10px,var(--color-error) 11px,transparent 11px);background-repeat:no-repeat;background-position:bottom right;background-size:16px 16px}.ds-textarea--no-resize{resize:none;background:none}.ds-textarea--xs{padding:var(--space-2, 8px);font-size:var(--text-sm, 12px);border-radius:var(--radius-2, 4px)}.ds-textarea--s{padding:var(--space-2, 8px) var(--space-3, 12px);font-size:var(--text-md, 14px);border-radius:var(--radius-2, 4px)}.ds-textarea--m{padding:var(--space-3, 12px);font-size:var(--text-lg, 16px);border-radius:var(--radius-3, 6px)}.ds-textarea-hint{font-size:var(--text-md, 14px);color:var(--color-fg-secondary)}.ds-textarea-error{font-size:var(--text-md, 14px);color:var(--color-error)}.ds-select-wrapper{display:flex;flex-direction:column;gap:var(--space-2, 8px)}.ds-select-wrapper--full{width:100%}.ds-select-wrapper--disabled{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed;pointer-events:none}.ds-select-label{font-family:var(--font-ui, inherit);font-size:var(--label-font-size);font-weight:var(--font-weight-regular, 400);letter-spacing:var(--label-tracking);text-transform:var(--label-text-transform);color:var(--label-color)}.ds-select-container{position:relative}.ds-select-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:var(--space-3, 12px);font-family:inherit;color:var(--color-fg-primary);background-color:transparent;border:1px solid var(--field-border);cursor:pointer;transition:border-color var(--transition-normal, .2s ease);text-align:left;line-height:1.5}.ds-select-trigger>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ds-select-trigger:hover:not(:disabled){border-color:var(--field-border-active)}.ds-select-trigger:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-select-trigger:disabled{cursor:not-allowed}.ds-select-trigger--error{border-color:var(--color-error)}.ds-select-trigger--xs{height:var(--height-1, 24px);padding:0 calc(var(--height-1, 24px) / 4);font-size:var(--text-sm, 12px);border-radius:var(--radius-2, 4px)}.ds-select-trigger--s{height:var(--height-2, 32px);padding:0 calc(var(--height-2, 32px) / 4);font-size:var(--text-md, 14px);border-radius:var(--radius-2, 4px)}.ds-select-trigger--m{height:var(--height-3, 44px);padding:0 calc(var(--height-3, 44px) / 4);font-size:var(--text-lg, 16px);border-radius:var(--radius-3, 6px)}.ds-select-placeholder{color:var(--color-fg-secondary)}.ds-select-icon{flex-shrink:0;color:var(--color-fg-secondary);transition:transform var(--transition-normal, .2s ease)}.ds-select-icon--open{transform:rotate(180deg)}.ds-select-icon--up{transform:rotate(0)}@keyframes ds-select-in-down{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes ds-select-out-down{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-4px)}}@keyframes ds-select-in-up{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes ds-select-out-up{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(4px)}}.ds-select-dropdown{position:fixed;background-color:var(--color-surface-0);border:1px solid var(--field-border);box-shadow:var(--shadow-1);z-index:var(--z-dropdown);max-height:300px;overflow-y:auto}.ds-select-dropdown--down{animation:ds-select-in-down var(--motion-enter, .3s ease)}.ds-select-dropdown--down.ds-select-dropdown--closing{animation:ds-select-out-down var(--motion-exit, .2s ease) forwards}.ds-select-dropdown--up{animation:ds-select-in-up var(--motion-enter, .3s ease)}.ds-select-dropdown--up.ds-select-dropdown--closing{animation:ds-select-out-up var(--motion-exit, .2s ease) forwards}.ds-select-dropdown--s{border-radius:var(--radius-2, 4px)}.ds-select-dropdown--m{border-radius:var(--radius-3, 6px)}.ds-select-option{width:100%;font-family:inherit;color:var(--color-fg-primary);background-color:transparent;border:none;cursor:pointer;text-align:left;line-height:1.5;white-space:normal;word-wrap:break-word;position:relative;isolation:isolate}.ds-select-option:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;pointer-events:none;z-index:-1;transition:background-color var(--transition-normal, .2s ease)}.ds-select-option--s{min-height:var(--height-2, 32px);padding:var(--space-2, 8px) calc(var(--height-2, 32px) / 4);font-size:var(--text-md, 14px)}.ds-select-option--m{min-height:var(--height-3, 44px);padding:var(--space-2, 8px) calc(var(--height-3, 44px) / 4);font-size:var(--text-lg, 16px)}.ds-select-option:hover:before{background-color:var(--color-state-hover)}.ds-select-option--selected:before{background-color:var(--color-state-selected)}.ds-select-option--active:before{background-color:var(--color-state-hover)}.ds-select-error{font-size:var(--text-md, 14px);color:var(--color-error)}.ds-scrollable{scrollbar-width:thin;scrollbar-color:var(--color-border-default) transparent}.ds-scrollable::-webkit-scrollbar{width:4px;height:4px}.ds-scrollable::-webkit-scrollbar-track{background:transparent}.ds-scrollable::-webkit-scrollbar-thumb{background:var(--color-border-default);border-radius:var(--radius-full, 9999px)}.ds-scrollable::-webkit-scrollbar-thumb:hover{background:var(--color-border-strong)}.ds-stepper-wrapper{display:flex;flex-direction:column;gap:var(--space-2, 8px)}.ds-stepper-label{font-family:var(--font-ui, inherit);font-size:var(--label-font-size);font-weight:var(--font-weight-regular, 400);letter-spacing:var(--label-tracking);text-transform:var(--label-text-transform);color:var(--label-color)}.ds-stepper{display:flex;align-items:stretch;width:fit-content;border:1px solid var(--field-border);border-radius:var(--radius-2, 4px);transition:border-color var(--transition-normal, .2s ease)}.ds-stepper:hover:not(.ds-stepper--disabled){border-color:var(--field-border-active)}.ds-stepper:focus-within{border-color:var(--field-border-active)}.ds-stepper--disabled{cursor:not-allowed}.ds-stepper-button{display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;color:var(--color-fg-secondary);cursor:pointer;transition:color var(--transition-fast, .1s ease);flex-shrink:0;position:relative;isolation:isolate}.ds-stepper-button:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;border-radius:inherit;pointer-events:none;z-index:-1;transition:background-color var(--transition-fast, .1s ease)}.ds-stepper-button:hover:not(:disabled){color:var(--color-fg-primary)}.ds-stepper-button:hover:not(:disabled):before{background-color:var(--color-state-hover)}.ds-stepper-button:active:not(:disabled):before{background-color:var(--color-state-active)}.ds-stepper-button:focus-visible{outline:none;box-shadow:var(--focus-ring);z-index:1}.ds-stepper-button:disabled{opacity:.5;cursor:not-allowed}.ds-stepper-button--minus{border-radius:var(--radius-2, 4px) 0 0 var(--radius-2, 4px);border-right:1px solid var(--field-border)}.ds-stepper-button--plus{border-radius:0 var(--radius-2, 4px) var(--radius-2, 4px) 0;border-left:1px solid var(--field-border)}.ds-stepper-input{width:80px;text-align:center;border:none;background-color:transparent;color:var(--color-fg-primary);font-size:var(--text-lg, 16px);letter-spacing:var(--tracking-lg);outline:none;cursor:text}.ds-stepper-input:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-stepper-input:disabled{cursor:not-allowed}.ds-stepper-input::-webkit-inner-spin-button,.ds-stepper-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.ds-stepper-input[type=number]{-moz-appearance:textfield}.ds-stepper--xs{height:var(--height-1, 24px)}.ds-stepper--xs .ds-stepper-button{width:var(--height-1, 24px);padding:0}.ds-stepper--xs .ds-stepper-input{font-size:var(--text-sm, 12px);letter-spacing:var(--tracking-sm);padding:0 var(--space-2, 8px)}.ds-stepper--s{height:var(--height-2, 32px)}.ds-stepper--s .ds-stepper-button{width:var(--height-2, 32px);padding:0}.ds-stepper--s .ds-stepper-input{font-size:var(--text-md, 14px);letter-spacing:var(--tracking-md);padding:0 var(--space-2, 8px)}.ds-stepper--m{height:var(--height-3, 44px)}.ds-stepper--m .ds-stepper-button{width:var(--height-3, 44px);padding:0}.ds-stepper--m .ds-stepper-input{font-size:var(--text-lg, 16px);letter-spacing:var(--tracking-lg);padding:0 var(--space-3, 12px)}.ds-stepper-hint{font-size:var(--text-md, 14px);letter-spacing:var(--tracking-md);color:var(--color-fg-secondary)}.ds-stepper-error{font-size:var(--text-md, 14px);letter-spacing:var(--tracking-md);color:var(--color-status-error)}.ds-stepper-wrapper--error .ds-stepper{border-color:var(--color-status-error)}.ds-stepper-wrapper--error .ds-stepper:hover:not(.ds-stepper--disabled){border-color:var(--color-status-error)}.ds-stepper-wrapper--error .ds-stepper:focus-within{border-color:var(--color-status-error)}.ds-stepper-wrapper--disabled{opacity:.5;cursor:not-allowed}.ds-stepper-wrapper--disabled *{cursor:not-allowed}.ds-card{display:flex;flex-direction:column;min-width:0;background-color:transparent;border-radius:var(--radius-3, 6px);border:1px solid var(--card-border);transition:border-color var(--motion-hover, .2s ease),background-color var(--motion-hover, .2s ease),transform var(--motion-hover, .2s ease);text-decoration:none;color:inherit}.ds-card--interactive{cursor:pointer;background-color:var(--color-surface-1);border:none;position:relative;isolation:isolate}.ds-card--interactive:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;border-radius:inherit;pointer-events:none;z-index:-1;transition:background-color var(--transition-normal, .2s ease)}.ds-card--interactive:hover:not([aria-disabled=true]){transform:var(--card-hover-transform, none)}.ds-card--interactive:hover:not([aria-disabled=true]):before{background-color:var(--color-state-hover)}.ds-card--outline{background-color:transparent;border:1px solid var(--card-border);cursor:pointer;transition:border-color var(--motion-hover, .2s ease),transform var(--motion-hover, .2s ease)}.ds-card--outline:hover:not([aria-disabled=true]){border-color:var(--color-border-strong);transform:var(--card-hover-transform, none)}.ds-card--interactive:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-card[aria-disabled=true]{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed;pointer-events:none}.ds-card--none{padding:0;gap:0}.ds-card--s{padding:var(--space-3, 12px);gap:var(--space-2, 8px)}.ds-card--m{padding:var(--space-4, 16px);gap:var(--space-3, 12px)}.ds-card--l{padding:var(--space-6, 24px);gap:var(--space-4, 16px)}.ds-h1{font-size:var(--text-4xl, 32px);font-weight:var(--font-weight-regular, 400);line-height:1.2;color:var(--color-fg-primary);letter-spacing:var(--tracking-4xl);margin:0}.ds-h2{font-size:var(--text-3xl, 24px);font-weight:var(--font-weight-regular, 400);line-height:1.3;color:var(--color-fg-primary);letter-spacing:var(--tracking-3xl);margin:0}.ds-h3{font-size:var(--text-2xl, 20px);font-weight:var(--font-weight-regular, 400);line-height:1.3;color:var(--color-fg-primary);letter-spacing:var(--tracking-2xl);margin:0}.ds-h4{font-size:var(--text-xl, 18px);font-weight:var(--font-weight-regular, 400);line-height:1.4;color:var(--color-fg-primary);letter-spacing:var(--tracking-xl);margin:0}.ds-p1{font-size:var(--text-lg, 16px);font-weight:var(--font-weight-regular, 400);line-height:1.5;color:var(--color-fg-primary);letter-spacing:var(--tracking-lg);margin:0}.ds-p1--secondary{color:var(--color-fg-secondary)}.ds-p2{font-size:var(--text-md, 14px);font-weight:var(--font-weight-regular, 400);line-height:1.5;color:var(--color-fg-primary);letter-spacing:var(--tracking-md);margin:0}.ds-p2--secondary{color:var(--color-fg-secondary)}.ds-p3{font-size:var(--text-sm, 12px);font-weight:var(--font-weight-regular, 400);line-height:1.5;color:var(--color-fg-primary);letter-spacing:var(--tracking-sm);margin:0}.ds-p3--secondary{color:var(--color-fg-secondary)}.ds-badge{display:inline-flex;align-items:center;justify-content:center;font-family:var(--font-ui, inherit);font-weight:var(--ui-font-weight, 500);letter-spacing:var(--badge-tracking);text-transform:var(--badge-text-transform);white-space:nowrap}.ds-badge--xs{padding:1px var(--space-1, 4px);font-size:var(--badge-font-size-xs);letter-spacing:var(--tracking-sm);border-radius:var(--radius-1, 2px)}.ds-badge--s{padding:2px var(--space-2, 8px);font-size:var(--badge-font-size-s);border-radius:var(--radius-2, 4px)}.ds-badge--m{padding:3px var(--space-3, 12px);font-size:var(--badge-font-size-m);border-radius:var(--radius-3, 6px)}.ds-badge--default{background-color:var(--color-state-selected);color:var(--color-fg-secondary)}.ds-badge--info{background-color:var(--color-status-info-bg);color:var(--color-status-info)}.ds-badge--success{background-color:var(--color-status-success-bg);color:var(--color-status-success)}.ds-badge--warning{background-color:var(--color-status-warning-bg);color:var(--color-status-warning)}.ds-badge--error{background-color:var(--color-status-error-bg);color:var(--color-status-error)}.ds-badge--accent{background-color:var(--color-accent-bg);color:var(--color-accent-default)}.ds-badge--danger{background-color:var(--color-status-error-bg);color:var(--color-status-error)}.ds-badge--data-1{background-color:var(--data-1-bg);color:var(--data-1-fg)}.ds-badge--data-2{background-color:var(--data-2-bg);color:var(--data-2-fg)}.ds-badge--data-3{background-color:var(--data-3-bg);color:var(--data-3-fg)}.ds-badge--data-4{background-color:var(--data-4-bg);color:var(--data-4-fg)}.ds-badge--data-5{background-color:var(--data-5-bg);color:var(--data-5-fg)}.ds-badge--data-6{background-color:var(--data-6-bg);color:var(--data-6-fg)}.ds-badge--data-7{background-color:var(--data-7-bg);color:var(--data-7-fg)}[data-variant=edgy] .ds-badge{box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 35%,transparent)}.ds-alert{display:flex;align-items:flex-start;gap:var(--space-3, 12px);padding:var(--space-3, 12px);border-radius:var(--radius-3, 6px)}.ds-alert--no-title{align-items:center}.ds-alert__icon{flex-shrink:0;display:flex;align-items:center;justify-content:center}.ds-alert:not(.ds-alert--no-title) .ds-alert__icon{margin-top:2px}.ds-alert__content{flex:1;min-width:0}.ds-alert__title{font-size:var(--text-lg, 16px);font-weight:var(--font-weight-regular, 400);margin-bottom:var(--space-2, 8px)}.ds-alert__message{font-size:var(--text-md, 14px);line-height:1.5}.ds-alert__close{flex-shrink:0;background:none;border:none;color:inherit;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;opacity:.7;transition:opacity var(--transition-normal, .2s ease)}.ds-alert__close:hover{opacity:1}.ds-alert__close:focus-visible{outline:none;box-shadow:var(--focus-ring);border-radius:var(--radius-2, 4px)}.ds-alert--info{background:linear-gradient(var(--color-status-info-bg),var(--color-status-info-bg)),var(--color-surface-1);color:var(--color-status-info)}.ds-alert--info .ds-alert__message{color:var(--color-fg-primary)}.ds-alert--success{background:linear-gradient(var(--color-status-success-bg),var(--color-status-success-bg)),var(--color-surface-1);color:var(--color-status-success)}.ds-alert--success .ds-alert__message{color:var(--color-fg-primary)}.ds-alert--warning{background:linear-gradient(var(--color-status-warning-bg),var(--color-status-warning-bg)),var(--color-surface-1);color:var(--color-status-warning)}.ds-alert--warning .ds-alert__message{color:var(--color-fg-primary)}.ds-alert--error{background:linear-gradient(var(--color-status-error-bg),var(--color-status-error-bg)),var(--color-surface-1);color:var(--color-status-error)}.ds-alert--error .ds-alert__message{color:var(--color-fg-primary)}@keyframes ds-modal-backdrop-in{0%{opacity:0}to{opacity:1}}@keyframes ds-modal-backdrop-out{0%{opacity:1}to{opacity:0}}@keyframes ds-modal-content-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes ds-modal-content-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(8px)}}.ds-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:var(--color-overlay);display:flex;align-items:flex-start;justify-content:center;z-index:var(--z-modal);padding:var(--space-4, 16px);overflow-y:auto;animation:ds-modal-backdrop-in var(--motion-enter, .3s ease)}.ds-modal{background-color:var(--color-surface-1);border-radius:var(--radius-4, 8px);box-shadow:var(--shadow-2);display:flex;flex-direction:column;margin:auto 0;position:relative;animation:ds-modal-content-in var(--motion-enter, .3s ease) .05s both}.ds-modal__close{position:absolute;top:var(--space-2, 8px);right:var(--space-2, 8px);z-index:1}.ds-modal-overlay--closing{animation:ds-modal-backdrop-out var(--motion-exit, .2s ease) forwards}.ds-modal-overlay--closing .ds-modal{animation:ds-modal-content-out var(--motion-exit, .2s ease) forwards}.ds-modal--s{width:100%;max-width:400px}.ds-modal--m{width:100%;max-width:600px}.ds-modal--l{width:100%;max-width:900px}.ds-modal__header{display:flex;flex-direction:column;padding:var(--space-6, 24px) var(--space-6, 24px) var(--space-4, 16px);gap:var(--space-4, 16px)}.ds-modal__title{font-size:var(--text-2xl, 20px);font-weight:var(--font-weight-medium, 500);color:var(--color-fg-primary);margin:0}.ds-modal__subheader{display:flex;flex-direction:column;gap:var(--space-4, 16px)}.ds-modal__body{padding:0 var(--space-6, 24px) var(--space-6, 24px);flex:1}.ds-modal__body:last-child{border-bottom-left-radius:var(--radius-4, 8px);border-bottom-right-radius:var(--radius-4, 8px)}.ds-modal--scrollable{max-height:85vh}.ds-modal--scrollable .ds-modal__body{overflow-y:auto;min-height:0;padding-top:var(--space-6, 24px);overscroll-behavior:contain}.ds-modal--scrollable .ds-modal__header{border-bottom:1px solid var(--color-border-light)}.ds-modal--scrollable .ds-modal__footer{border-top:1px solid var(--color-border-light)}.ds-modal__footer{display:flex;align-items:center;justify-content:flex-start;gap:var(--space-3, 12px);padding:var(--space-4, 16px) var(--space-6, 24px) var(--space-6, 24px);background-color:var(--color-surface-1);position:relative;z-index:10;border-bottom-left-radius:var(--space-3, 12px);border-bottom-right-radius:var(--space-3, 12px)}@keyframes ds-sheet-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes ds-sheet-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes ds-sheet-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes ds-sheet-out{0%{transform:translateY(0)}to{transform:translateY(100%)}}.ds-bottom-sheet-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--color-overlay);z-index:var(--z-modal);display:flex;align-items:flex-end;animation:ds-sheet-overlay-in .2s ease}.ds-bottom-sheet-overlay--closing{animation:ds-sheet-overlay-out .32s ease forwards}.ds-bottom-sheet{width:100%;max-width:1280px;height:95vh;margin:0 auto;background-color:var(--color-surface-1);border-radius:var(--radius-4, 12px) var(--radius-4, 12px) 0 0;box-shadow:var(--shadow-2);display:flex;flex-direction:column;position:relative;animation:ds-sheet-in .35s cubic-bezier(.32,.72,0,1)}.ds-bottom-sheet__close{position:absolute;top:var(--space-2, 8px);right:var(--space-2, 8px);z-index:1}.ds-bottom-sheet--closing{animation:ds-sheet-out .32s cubic-bezier(.32,.72,0,1) forwards}.ds-bottom-sheet__handle{width:36px;height:4px;background:var(--color-border-default);border-radius:var(--radius-full, 9999px);margin:var(--space-3) auto var(--space-1);flex-shrink:0}.ds-bottom-sheet__header{display:flex;flex-direction:column;padding:var(--space-4) var(--space-6) var(--space-4);gap:var(--space-4);border-bottom:1px solid var(--color-border-light);flex-shrink:0}.ds-bottom-sheet__title{font-size:var(--text-2xl, 20px);font-weight:var(--font-weight-medium, 500);color:var(--color-fg-primary);margin:0}.ds-bottom-sheet__subheader{display:flex;flex-direction:column;gap:var(--space-4)}.ds-bottom-sheet__body{padding:var(--space-6);flex:1;overflow-y:auto;min-height:0;overscroll-behavior:contain}.ds-bottom-sheet .ds-modal__footer{border-top:1px solid var(--color-border-light);border-bottom-left-radius:0;border-bottom-right-radius:0}.ds-code-accordion{min-width:0}.ds-code-accordion__header{display:flex;align-items:center;justify-content:space-between;width:100%;background-color:var(--color-surface-1);border:none;border-radius:var(--radius-3, 6px);color:var(--color-fg-primary);font-size:var(--text-lg, 16px);font-family:inherit;cursor:pointer;position:relative;isolation:isolate}.ds-code-accordion__header:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;border-radius:inherit;pointer-events:none;z-index:-1;transition:background-color var(--transition-normal, .2s ease)}.ds-code-accordion__header[aria-expanded=true]{border-radius:var(--radius-3, 6px) var(--radius-3, 6px) 0 0}.ds-code-accordion__header:hover:before{background-color:var(--color-state-hover)}.ds-code-accordion__header:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-code-accordion__title{font-weight:var(--font-weight-regular, 400)}.ds-code-accordion__icon{flex-shrink:0;color:var(--color-fg-secondary);transition:transform var(--transition-normal, .2s ease)}.ds-code-accordion__icon--expanded{transform:rotate(180deg)}.ds-code-accordion__content{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows var(--transition-normal, .2s ease)}.ds-code-accordion--expanded .ds-code-accordion__content{grid-template-rows:1fr}.ds-code-accordion__inner{overflow:hidden;min-height:0;opacity:0;visibility:hidden;transition:opacity var(--transition-normal, .2s ease) .05s,visibility 0s var(--transition-normal, .2s ease)}.ds-code-accordion--expanded .ds-code-accordion__inner{opacity:1;visibility:visible;transition:opacity var(--transition-normal, .2s ease) .05s,visibility 0s 0s}.ds-code-accordion__pre{overflow-x:auto;font-family:Fira Mono,SF Mono,Monaco,Cascadia Code,Roboto Mono,Consolas,monospace;font-size:var(--text-md, 14px);background-color:var(--color-surface-2);color:var(--color-fg-primary);border-radius:0 0 var(--radius-3, 6px) var(--radius-3, 6px);line-height:1.6;margin:0}.ds-code-accordion--s .ds-code-accordion__header,.ds-code-accordion--s .ds-code-accordion__pre{padding:var(--space-2, 8px)}.ds-code-accordion--m .ds-code-accordion__header,.ds-code-accordion--m .ds-code-accordion__pre{padding:var(--space-3, 12px)}.ds-code-accordion--l .ds-code-accordion__header,.ds-code-accordion--l .ds-code-accordion__pre{padding:var(--space-4, 16px)}.ds-code-accordion__pre code{background:none;border:none;padding:0;font-family:inherit;font-size:inherit;color:inherit}@media (max-width: 640px){.ds-code-accordion__header{font-size:var(--text-md, 14px)}.ds-code-accordion--l .ds-code-accordion__header,.ds-code-accordion--l .ds-code-accordion__pre{padding:var(--space-3, 12px)}}@media (prefers-reduced-motion: reduce){.ds-code-accordion__inner{transition:none}}.ds-code-inline{font-family:Fira Mono,SF Mono,Monaco,Cascadia Code,Roboto Mono,Consolas,monospace;font-size:.9em;background-color:var(--color-surface-2);color:var(--color-fg-primary);padding:2px 6px;border-radius:var(--radius-3, 6px);white-space:nowrap}.ds-code-block{font-family:Fira Mono,SF Mono,Monaco,Cascadia Code,Roboto Mono,Consolas,monospace;font-size:var(--text-md, 14px);background-color:var(--color-surface-2);color:var(--color-fg-primary);padding:var(--space-3, 12px);border-radius:var(--radius-3, 6px);overflow-x:auto;line-height:1.6;margin:0}.ds-code-block code{background:none;border:none;padding:0;font-family:inherit;font-size:inherit;color:inherit}.ds-link{color:var(--color-accent-default);text-decoration:none;cursor:pointer;transition:color var(--transition-fast, .1s ease),text-decoration var(--transition-fast, .1s ease);font-size:inherit;font-weight:inherit;line-height:inherit}.ds-link:hover{color:var(--color-accent-hover);text-decoration:underline}.ds-link:active{color:var(--color-accent-hover)}.ds-link:focus-visible{outline:none;box-shadow:var(--focus-ring);border-radius:2px}.ds-tabs{display:flex;gap:var(--space-2, 8px);flex-wrap:wrap}.ds-tab{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2, 8px);font-family:var(--font-ui, inherit);font-weight:var(--ui-font-weight, 500);letter-spacing:var(--tab-tracking);text-transform:var(--ui-text-transform, none);line-height:1;cursor:pointer;background-color:transparent;color:var(--color-fg-primary);transition:border-color var(--motion-hover, .2s ease),background-color var(--motion-hover, .2s ease);white-space:nowrap;text-decoration:none}.ds-tab--ghost{border:none;color:var(--color-fg-secondary);position:relative;isolation:isolate}.ds-tab--ghost:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;border-radius:inherit;pointer-events:none;z-index:-1;transition:background-color var(--motion-hover, .2s ease)}.ds-tab--ghost:hover:not(.ds-tab--selected):not(:disabled):not([aria-disabled=true]){color:var(--color-fg-primary)}.ds-tab--ghost:hover:not(.ds-tab--selected):not(:disabled):not([aria-disabled=true]):before{background-color:var(--color-state-hover)}.ds-tab--ghost.ds-tab--selected{color:var(--color-fg-primary)}.ds-tab--ghost.ds-tab--selected:before{background-color:var(--color-state-selected)}.ds-tab--xs{--_tab-icon-sz: var(--tab-icon-size-xs)}.ds-tab--s,.ds-tab--sm{--_tab-icon-sz: var(--tab-icon-size-s, 14px)}.ds-tab--m{--_tab-icon-sz: var(--tab-icon-size-m, 16px)}.ds-tab--l{--_tab-icon-sz: var(--tab-icon-size-l, 20px)}.ds-tab--xs{height:var(--height-1, 24px);padding:0 calc(var(--height-1, 24px) / 2);font-size:var(--tab-font-size-xs);border-radius:var(--radius-2, 4px)}.ds-tab--s{height:var(--height-2, 32px);padding:0 calc(var(--height-2, 32px) / 2);font-size:var(--tab-font-size-s, 13px);border-radius:var(--radius-2, 4px)}.ds-tab--sm{height:var(--height-2-5, 36px);padding:0 14px;font-size:var(--tab-font-size-s, 13px);border-radius:var(--radius-3, 6px)}.ds-tab--m{height:var(--height-3, 44px);padding:0 calc(var(--height-3, 44px) / 2);font-size:var(--tab-font-size-m, 14px);border-radius:var(--radius-3, 6px)}.ds-tab--l{height:var(--height-4, 56px);padding:0 calc(var(--height-4, 56px) / 2);font-size:var(--tab-font-size-l, 15px);border-radius:var(--radius-3, 6px);gap:var(--space-3, 12px)}.ds-tab:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-tab:disabled,.ds-tab[aria-disabled=true]{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed;pointer-events:none}.ds-tab-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0}.ds-tab-icon>svg{width:var(--_tab-icon-sz, 16px);height:var(--_tab-icon-sz, 16px);stroke-width:1.5px}.ds-tab--icon-only{aspect-ratio:1;padding-left:0;padding-right:0}.ds-seg{display:inline-flex;position:relative;padding:3px;border:1px solid var(--color-border-default);border-radius:var(--radius-3, 6px);background:var(--color-surface-1)}.ds-seg--disabled{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed;pointer-events:none}.ds-seg__pill{position:absolute;top:3px;bottom:3px;background:var(--color-state-hover);border-radius:calc(var(--radius-3, 6px) - 2px);pointer-events:none;z-index:0}.ds-seg__btn{position:relative;z-index:1;display:inline-flex;align-items:center;gap:var(--space-1, 4px);background:transparent;border:none;cursor:pointer;font-family:var(--font-ui, inherit);font-size:var(--text-md, 14px);letter-spacing:var(--ui-tracking, 0);text-transform:var(--ui-text-transform, none);color:var(--color-fg-secondary);border-radius:calc(var(--radius-3, 6px) - 2px);white-space:nowrap;transition:color var(--motion-hover, .2s ease)}.ds-seg__btn:hover:not(:disabled){color:var(--color-fg-primary)}.ds-seg__btn:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-seg__btn--active{color:var(--color-fg-primary)}.ds-seg__btn-icon{display:flex;align-items:center;flex-shrink:0}.ds-seg--s .ds-seg__btn{height:var(--height-1, 24px);padding:0 var(--space-2, 8px);font-size:var(--text-sm, 12px)}.ds-seg--m .ds-seg__btn{height:var(--height-2, 32px);padding:0 var(--space-3, 12px)}.ds-seg--sm .ds-seg__btn{height:var(--height-2-5, 36px);padding:0 var(--space-3, 12px)}.ds-seg--l .ds-seg__btn{height:var(--height-3, 44px);padding:0 var(--space-4, 16px);font-size:var(--text-lg, 16px)}@media (prefers-reduced-motion: reduce){.ds-seg__pill{transition:none}}.ds-accordion{min-width:0}.ds-accordion__header{display:flex;align-items:center;justify-content:space-between;width:100%;background-color:var(--color-surface-1);border:none;border-radius:var(--radius-3, 6px);color:var(--color-fg-primary);font-size:var(--text-xl, 18px);font-family:inherit;cursor:pointer;position:relative;isolation:isolate}.ds-accordion__header:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;border-radius:inherit;pointer-events:none;z-index:-1;transition:background-color var(--transition-normal, .2s ease)}.ds-accordion__header[aria-expanded=true]{border-radius:var(--radius-3, 6px) var(--radius-3, 6px) 0 0}.ds-accordion__header:hover:before{background-color:var(--color-state-hover)}.ds-accordion__header:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-accordion__title{font-weight:var(--font-weight-regular, 400)}.ds-accordion__icon{flex-shrink:0;color:var(--color-fg-secondary);transition:transform var(--transition-normal, .2s ease)}.ds-accordion__icon--expanded{transform:rotate(180deg)}.ds-accordion__content{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows var(--transition-normal, .2s ease)}.ds-accordion--expanded .ds-accordion__content{grid-template-rows:1fr}.ds-accordion__content-inner{overflow:hidden;min-height:0;opacity:0;visibility:hidden;transition:opacity var(--transition-normal, .2s ease) .05s,visibility 0s var(--transition-normal, .2s ease)}.ds-accordion--expanded .ds-accordion__content-inner{opacity:1;visibility:visible;transition:opacity var(--transition-normal, .2s ease) .05s,visibility 0s 0s}.ds-accordion__content-body{display:flex;flex-direction:column;background-color:var(--color-surface-1);border-radius:0 0 var(--radius-3, 6px) var(--radius-3, 6px)}.ds-accordion--s .ds-accordion__header{padding:var(--space-3, 12px)}.ds-accordion--s .ds-accordion__content-body{padding:var(--space-3, 12px);gap:var(--space-2, 8px)}.ds-accordion--m .ds-accordion__header{padding:var(--space-4, 16px)}.ds-accordion--m .ds-accordion__content-body{padding:var(--space-4, 16px);gap:var(--space-3, 12px)}.ds-accordion--l .ds-accordion__header{padding:var(--space-6, 24px)}.ds-accordion--l .ds-accordion__content-body{padding:var(--space-6, 24px);gap:var(--space-4, 16px)}@media (max-width: 640px){.ds-accordion__header{font-size:var(--text-lg, 16px)}.ds-accordion--l .ds-accordion__header{padding:var(--space-4, 16px)}.ds-accordion--l .ds-accordion__content-inner{padding:var(--space-4, 16px);gap:var(--space-3, 12px)}}.ds-tooltip-wrapper{position:relative;display:inline-flex}.ds-tooltip{background-color:var(--color-surface-3);color:var(--color-fg-secondary);font-size:var(--text-sm, 12px);letter-spacing:var(--tracking-sm);width:max-content;max-width:200px;padding:var(--space-2, 8px);border:1px solid var(--color-border-default);box-shadow:var(--shadow-1);z-index:var(--z-tooltip);border-radius:var(--radius-2, 4px);white-space:normal;word-wrap:break-word;pointer-events:none;line-height:1.4}.ds-tooltip--top:after{content:"";position:absolute;top:100%;left:calc(50% + var(--arrow-offset, 0px));transform:translate(-50%);border:4px solid transparent;border-top-color:var(--color-border-default)}.ds-tooltip--top:before{content:"";position:absolute;top:100%;left:calc(50% + var(--arrow-offset, 0px));transform:translate(-50%);border:3px solid transparent;border-top-color:var(--color-surface-3);z-index:1}.ds-tooltip--bottom:after{content:"";position:absolute;bottom:100%;left:calc(50% + var(--arrow-offset, 0px));transform:translate(-50%);border:4px solid transparent;border-bottom-color:var(--color-border-default)}.ds-tooltip--bottom:before{content:"";position:absolute;bottom:100%;left:calc(50% + var(--arrow-offset, 0px));transform:translate(-50%);border:3px solid transparent;border-bottom-color:var(--color-surface-3);z-index:1}.ds-tooltip--left:after{content:"";position:absolute;left:100%;top:50%;transform:translateY(-50%);border:4px solid transparent;border-left-color:var(--color-border-default)}.ds-tooltip--left:before{content:"";position:absolute;left:100%;top:50%;transform:translateY(-50%);border:3px solid transparent;border-left-color:var(--color-surface-3);z-index:1}.ds-tooltip--right:after{content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%);border:4px solid transparent;border-right-color:var(--color-border-default)}.ds-tooltip--right:before{content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%);border:3px solid transparent;border-right-color:var(--color-surface-3);z-index:1}.ds-toggle{display:inline-flex;align-items:center;gap:var(--space-3, 12px);cursor:pointer}.ds-toggle--disabled{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed}.ds-toggle__input{position:absolute;opacity:0;pointer-events:none}.ds-toggle__track{position:relative;display:flex;align-items:center;background-color:var(--color-surface-1);border:1px solid var(--field-border);transition:background-color var(--transition-normal, .2s ease),border-color var(--transition-normal, .2s ease);flex-shrink:0}.ds-toggle__input:focus-visible+.ds-toggle__track{box-shadow:var(--focus-ring)}.ds-toggle__input:checked+.ds-toggle__track{background-color:var(--color-accent-default);border-color:var(--color-accent-default)}.ds-toggle__input:not(:checked)+.ds-toggle__track:hover{border-color:var(--field-border-active)}.ds-toggle__thumb{background-color:var(--color-accent-fg);border-radius:50%;transition:transform var(--transition-normal, .2s ease);box-shadow:0 1px 3px #0003}.ds-toggle__label{font-size:var(--text-lg, 16px);color:var(--color-fg-primary);-webkit-user-select:none;user-select:none}.ds-toggle--xs .ds-toggle__track{width:calc(var(--icon-1, 16px) * 1.75);height:var(--icon-1, 16px);border-radius:calc(var(--icon-1, 16px) / 2);padding:2px}.ds-toggle--xs .ds-toggle__thumb{width:calc(var(--icon-1, 16px) - 4px);height:calc(var(--icon-1, 16px) - 4px)}.ds-toggle--xs .ds-toggle__input:checked+.ds-toggle__track .ds-toggle__thumb{transform:translate(calc(var(--icon-1, 16px) * .75))}.ds-toggle--xs .ds-toggle__label{font-size:var(--text-sm, 12px)}.ds-toggle--s .ds-toggle__track{width:calc(var(--icon-2, 20px) * 1.75);height:var(--icon-2, 20px);border-radius:calc(var(--icon-2, 20px) / 2);padding:2px}.ds-toggle--s .ds-toggle__thumb{width:calc(var(--icon-2, 20px) - 4px);height:calc(var(--icon-2, 20px) - 4px)}.ds-toggle--s .ds-toggle__input:checked+.ds-toggle__track .ds-toggle__thumb{transform:translate(calc(var(--icon-2, 20px) * .75))}.ds-toggle--s .ds-toggle__label{font-size:var(--text-md, 14px)}.ds-toggle--m .ds-toggle__track{width:calc(var(--icon-3, 24px) * 1.75);height:var(--icon-3, 24px);border-radius:calc(var(--icon-3, 24px) / 2);padding:2px}.ds-toggle--m .ds-toggle__thumb{width:calc(var(--icon-3, 24px) - 4px);height:calc(var(--icon-3, 24px) - 4px)}.ds-toggle--m .ds-toggle__input:checked+.ds-toggle__track .ds-toggle__thumb{transform:translate(calc(var(--icon-3, 24px) * .75))}.ds-toggle--m .ds-toggle__label{font-size:var(--text-lg, 16px)}.ds-toggle--l .ds-toggle__track{width:calc(var(--icon-4, 28px) * 1.75);height:var(--icon-4, 28px);border-radius:calc(var(--icon-4, 28px) / 2);padding:3px}.ds-toggle--l .ds-toggle__thumb{width:calc(var(--icon-4, 28px) - 6px);height:calc(var(--icon-4, 28px) - 6px)}.ds-toggle--l .ds-toggle__input:checked+.ds-toggle__track .ds-toggle__thumb{transform:translate(calc(var(--icon-4, 28px) * .75))}.ds-toggle--l .ds-toggle__label{font-size:var(--text-lg, 16px)}.ds-checkbox{display:inline-flex;align-items:center;gap:var(--space-3, 12px);cursor:pointer}.ds-checkbox--disabled{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed}.ds-checkbox__input{position:absolute;opacity:0;pointer-events:none}.ds-checkbox__box{position:relative;display:flex;align-items:center;justify-content:center;background-color:var(--color-surface-1);border:1px solid var(--field-border);transition:background-color var(--transition-normal, .2s ease),border-color var(--transition-normal, .2s ease);flex-shrink:0;border-radius:4px}.ds-checkbox__input:focus-visible+.ds-checkbox__box{box-shadow:var(--focus-ring)}.ds-checkbox__input:checked+.ds-checkbox__box{background-color:var(--color-accent-default);border-color:var(--color-accent-default)}.ds-checkbox__input:not(:checked)+.ds-checkbox__box:hover{border-color:var(--field-border-active)}.ds-checkbox__icon{color:var(--color-accent-fg)}.ds-checkbox__label{font-size:var(--text-lg, 16px);color:var(--color-fg-primary);-webkit-user-select:none;user-select:none}.ds-checkbox--xs .ds-checkbox__box{width:var(--icon-1, 16px);height:var(--icon-1, 16px)}.ds-checkbox--xs .ds-checkbox__label{font-size:var(--text-sm, 12px)}.ds-checkbox--s .ds-checkbox__box{width:var(--icon-2, 20px);height:var(--icon-2, 20px)}.ds-checkbox--s .ds-checkbox__label{font-size:var(--text-md, 14px)}.ds-checkbox--m .ds-checkbox__box{width:var(--icon-3, 24px);height:var(--icon-3, 24px)}.ds-checkbox--m .ds-checkbox__label{font-size:var(--text-lg, 16px)}.ds-checkbox--l .ds-checkbox__box{width:var(--icon-4, 28px);height:var(--icon-4, 28px)}.ds-checkbox--l .ds-checkbox__label{font-size:var(--text-lg, 16px)}.ds-radio{display:inline-flex;align-items:center;gap:var(--space-3, 12px);cursor:pointer}.ds-radio--disabled{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed}.ds-radio__input{position:absolute;opacity:0;pointer-events:none}.ds-radio__circle{position:relative;display:flex;align-items:center;justify-content:center;background-color:var(--color-surface-1);border:1px solid var(--field-border);transition:background-color var(--transition-normal, .2s ease),border-color var(--transition-normal, .2s ease);flex-shrink:0;border-radius:50%}.ds-radio__input:checked+.ds-radio__circle{background-color:var(--color-accent-default);border-color:var(--color-accent-default)}.ds-radio__input:focus-visible+.ds-radio__circle{box-shadow:var(--focus-ring)}.ds-radio__input:not(:checked)+.ds-radio__circle:hover{border-color:var(--field-border-active)}.ds-radio__dot{background-color:var(--color-accent-fg);border-radius:50%;opacity:0;transition:opacity var(--transition-normal, .2s ease)}.ds-radio__input:checked+.ds-radio__circle .ds-radio__dot{opacity:1}.ds-radio__label{font-size:var(--text-lg, 16px);color:var(--color-fg-primary);-webkit-user-select:none;user-select:none}.ds-radio--xs .ds-radio__circle{width:var(--icon-1, 16px);height:var(--icon-1, 16px)}.ds-radio--xs .ds-radio__dot{width:6px;height:6px}.ds-radio--xs .ds-radio__label{font-size:var(--text-sm, 12px)}.ds-radio--s .ds-radio__circle{width:var(--icon-2, 20px);height:var(--icon-2, 20px)}.ds-radio--s .ds-radio__dot{width:8px;height:8px}.ds-radio--s .ds-radio__label{font-size:var(--text-md, 14px)}.ds-radio--m .ds-radio__circle{width:var(--icon-3, 24px);height:var(--icon-3, 24px)}.ds-radio--m .ds-radio__dot{width:10px;height:10px}.ds-radio--m .ds-radio__label{font-size:var(--text-lg, 16px)}.ds-radio--l .ds-radio__circle{width:var(--icon-4, 28px);height:var(--icon-4, 28px)}.ds-radio--l .ds-radio__dot{width:12px;height:12px}.ds-radio--l .ds-radio__label{font-size:var(--text-lg, 16px)}.ds-skeleton{display:block;background-color:var(--color-surface-2);animation:ds-skeleton-pulse 1.5s ease-in-out infinite}@keyframes ds-skeleton-pulse{0%,to{opacity:.4}50%{opacity:.85}}.ds-skeleton--rect{border-radius:var(--radius-2, 4px)}.ds-skeleton--circle{border-radius:var(--radius-full, 9999px)}.ds-skeleton--text{height:1em;border-radius:var(--radius-2, 4px)}.ds-skeleton--pill{border-radius:var(--radius-full, 9999px)}.ds-skeleton-text{display:flex;flex-direction:column;gap:var(--space-2, 8px);width:100%}.ds-avatar__initials{font-size:.4em;font-weight:var(--font-weight-medium, 500);line-height:1;letter-spacing:.02em;-webkit-user-select:none;user-select:none}.ds-avatar img{width:100%;height:100%;border-radius:inherit;object-fit:cover;display:block}.ds-avatar{flex-shrink:0;border-radius:var(--radius-full, 9999px);display:grid;place-items:center;border:1px solid var(--color-border-default);background-color:hsl(var(--ds-avatar-h, 220) 22% 88%);color:hsl(var(--ds-avatar-h, 220) 30% 35%);overflow:hidden}[data-theme=dark] .ds-avatar,:root:not([data-theme=light]) .ds-avatar{background-color:hsl(var(--ds-avatar-h, 220) 18% 22%);color:hsl(var(--ds-avatar-h, 220) 40% 72%)}.ds-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:var(--radius-3, 6px);border:1px solid var(--table-wrap-border)}.ds-table-wrap--scroll{overflow-y:auto}.ds-table{width:100%;border-collapse:collapse;background-color:var(--color-surface-1)}.ds-table thead{background-color:var(--color-surface-2)}.ds-table th{font-family:var(--table-th-font-family);font-weight:var(--table-th-weight);font-size:var(--table-th-font-size);color:var(--table-th-color);letter-spacing:var(--table-th-tracking);text-transform:var(--table-th-text-transform);text-align:left;white-space:nowrap;-webkit-user-select:none;user-select:none;position:sticky;top:var(--ds-table-sticky-top, 0px);z-index:2;background-color:var(--color-surface-2);box-shadow:0 1px 0 var(--table-row-border)}.ds-th--sortable{cursor:pointer}.ds-th--sortable:hover{color:var(--color-fg-primary)}.ds-th--sortable:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-table td{text-align:left;color:var(--color-fg-primary);border-bottom:1px solid var(--table-row-border);vertical-align:middle}.ds-table tbody tr:last-child td{border-bottom:none}.ds-table--compact th,.ds-table--compact td{padding:var(--space-2, 8px) var(--space-3, 12px);font-size:var(--text-sm, 12px);letter-spacing:var(--tracking-sm);line-height:1.4}.ds-table--default th,.ds-table--default td{padding:var(--space-3, 12px) var(--space-4, 16px);font-size:var(--text-md, 14px);letter-spacing:var(--tracking-md)}.ds-table-row--interactive{cursor:pointer;transition:background-color var(--transition-fast, .1s ease)}.ds-table-row--interactive:hover{background-color:var(--color-state-hover)}.ds-table-row--interactive:active{background-color:var(--color-state-active)}.ds-table-row--interactive:focus-visible{outline:2px solid var(--focus-ring-color);outline-offset:-2px}.ds-table-row--selected,.ds-table-row--selected.ds-table-row--interactive:hover{background-color:var(--color-state-selected)}.ds-table-cell--center{text-align:center}.ds-table-cell--right{text-align:right}.ds-table-cell--secondary{color:var(--color-fg-secondary)}.ds-table-cell--muted{color:var(--color-fg-disabled)}.ds-table-cell--truncate{max-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ds-table-cell--nowrap{white-space:nowrap}.ds-th__inner{display:inline-flex;align-items:center;gap:var(--space-1, 4px)}.ds-th__sort-icon{flex-shrink:0;opacity:.35;transition:opacity var(--transition-fast, .1s ease)}.ds-th--sorted .ds-th__sort-icon{opacity:1;color:var(--color-accent-default)}.ds-th--sortable:hover .ds-th__sort-icon{opacity:.7}.ds-table-row--subheader td{font-family:var(--table-subrow-font);color:var(--table-subrow-color);background-color:var(--table-subrow-bg);letter-spacing:var(--table-subrow-tracking);text-transform:var(--table-subrow-transform);font-weight:var(--table-th-weight);border-top:1px solid var(--table-row-border);border-bottom:1px solid var(--table-row-border);pointer-events:none;-webkit-user-select:none;user-select:none}@keyframes ds-row-exit{to{opacity:0;transform:translateY(-3px)}}@keyframes ds-row-flash{0%{background-color:var(--color-accent-bg)}to{background-color:transparent}}.ds-table-row{transition:background-color .1s ease;transition:opacity .18s ease,transform .18s ease,background-color .1s ease}@starting-style{.ds-table-row{opacity:0;transform:translateY(-3px)}}.ds-table-row--exiting{animation:ds-row-exit .18s ease forwards;pointer-events:none}.ds-table-row--updated{animation:ds-row-flash .6s ease}@media (prefers-reduced-motion: reduce){.ds-table-row,.ds-table-row--exiting,.ds-table-row--updated{animation:none;transition:none}}.ds-empty-state{display:flex;flex-direction:column;align-items:center;text-align:center}.ds-empty-state__icon{color:var(--color-fg-disabled);flex-shrink:0;display:flex;align-items:center}.ds-empty-state--s .ds-empty-state__icon svg{width:var(--icon-3, 24px);height:var(--icon-3, 24px)}.ds-empty-state--m .ds-empty-state__icon svg,.ds-empty-state--l .ds-empty-state__icon svg{width:var(--icon-5, 48px);height:var(--icon-5, 48px)}.ds-empty-state__title{font-size:var(--text-lg, 16px);font-weight:var(--font-weight-medium, 500);color:var(--color-fg-primary);line-height:1.4}.ds-empty-state__description{font-size:var(--text-md, 14px);color:var(--color-fg-secondary);line-height:1.5;max-width:360px}.ds-empty-state--s{padding:var(--space-6, 24px);gap:var(--space-2, 8px)}.ds-empty-state--s .ds-empty-state__title{font-size:var(--text-md, 14px)}.ds-empty-state--s .ds-empty-state__description{font-size:var(--text-sm, 12px)}.ds-empty-state--m{padding:var(--space-10, 40px);gap:var(--space-3, 12px)}.ds-empty-state--l{padding:var(--space-16, 64px);gap:var(--space-4, 16px)}.ds-empty-state--l .ds-empty-state__title{font-size:var(--text-xl, 18px)}.ds-empty-state__action{margin-top:var(--space-1, 4px)}.ds-field{display:flex;flex-direction:column}.ds-field[data-disabled]{opacity:var(--state-disabled-opacity, .4);pointer-events:none;cursor:not-allowed}.ds-field-label{font-family:var(--font-ui, inherit);font-size:var(--label-font-size);font-weight:var(--font-weight-regular, 400);letter-spacing:var(--label-tracking);text-transform:var(--label-text-transform);color:var(--label-color);margin-bottom:var(--space-1, 4px)}.ds-field[data-required] .ds-field-label:after{content:" *";color:var(--color-error)}.ds-field-hint,.ds-field-error{font-size:var(--text-md, 14px);line-height:1.5;margin-top:var(--space-2, 8px)}.ds-field-hint{color:var(--color-fg-secondary)}.ds-field-error{color:var(--color-error)}[data-state=error] .ds-field-control .ds-input,[data-state=error] .ds-field-control .ds-textarea,[data-state=error] .ds-field-control .ds-select-trigger{border-color:var(--color-error)}[data-density=compact] .ds-field-hint,[data-density=compact] .ds-field-error{font-size:var(--text-sm, 12px);margin-top:var(--space-1, 4px)}.ds-stat{display:flex;flex-direction:column;gap:var(--space-1, 4px)}.ds-stat--inline{flex-direction:row;align-items:baseline;gap:var(--space-3, 12px)}.ds-stat--xs .ds-stat-label{font-size:11px}.ds-stat--xs .ds-stat-value{font-size:20px}.ds-stat--s .ds-stat-label{font-size:var(--text-sm, 12px)}.ds-stat--s .ds-stat-value{font-size:24px}.ds-stat--m .ds-stat-label{font-size:var(--text-md, 14px)}.ds-stat--m .ds-stat-value{font-size:32px}.ds-stat--l .ds-stat-label{font-size:var(--text-md, 14px)}.ds-stat--l .ds-stat-value{font-size:40px}.ds-stat-label{font-family:var(--font-ui, inherit);color:var(--color-fg-secondary);letter-spacing:var(--ui-tracking, 0);text-transform:var(--ui-text-transform, none);line-height:1.2}.ds-stat-value{font-weight:var(--font-weight-semibold, 600);color:var(--color-fg-primary);line-height:1.1;font-variant-numeric:tabular-nums}.ds-stat-delta{font-size:var(--text-sm, 12px);font-weight:var(--font-weight-medium, 500);line-height:1.2}.ds-stat-delta--up{color:var(--color-status-success)}.ds-stat-delta--down{color:var(--color-status-error)}.ds-stat-delta--neutral{color:var(--color-fg-secondary)}[data-density=compact] .ds-stat--m .ds-stat-value{font-size:24px}[data-density=compact] .ds-stat--l .ds-stat-value{font-size:32px}.ds-breadcrumb-list{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;font-family:var(--font-ui, inherit);font-size:var(--text-md, 14px)}.ds-breadcrumb-item{display:flex;align-items:center}.ds-breadcrumb-sep{padding:0 var(--space-2, 8px);color:var(--color-fg-disabled);-webkit-user-select:none;user-select:none}.ds-breadcrumb-list a{color:var(--color-fg-secondary);text-decoration:none;border-radius:var(--radius-1, 2px);transition:color var(--motion-hover, .2s ease)}.ds-breadcrumb-list a:hover{color:var(--color-fg-primary)}.ds-breadcrumb-list a:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-breadcrumb-list [aria-current=page]{color:var(--color-fg-primary);font-weight:var(--font-weight-medium, 500)}[data-density=compact] .ds-breadcrumb-list{font-size:var(--text-sm, 12px)}.ds-pagination{display:flex;align-items:center;gap:var(--space-1, 4px);font-family:var(--font-ui, inherit)}.ds-pagination-page,.ds-pagination-arrow{display:flex;align-items:center;justify-content:center;height:var(--height-2, 32px);min-width:var(--height-2, 32px);padding:0 var(--space-2, 8px);border:none;background:none;color:var(--color-fg-secondary);font-family:inherit;font-size:var(--text-md, 14px);border-radius:var(--radius-2, 4px);cursor:pointer;transition:background-color var(--motion-hover, .2s ease),color var(--motion-hover, .2s ease)}.ds-pagination-page:hover:not(:disabled),.ds-pagination-arrow:hover:not(:disabled){background-color:var(--color-state-hover);color:var(--color-fg-primary)}.ds-pagination-page:focus-visible,.ds-pagination-arrow:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-pagination-page:disabled,.ds-pagination-arrow:disabled{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed}.ds-pagination-page--current{background-color:var(--color-state-selected);color:var(--color-fg-primary);font-weight:var(--font-weight-medium, 500);cursor:default}.ds-pagination-page--current:hover{background-color:var(--color-state-selected)}.ds-pagination-gap{display:flex;align-items:center;justify-content:center;min-width:var(--height-2, 32px);color:var(--color-fg-disabled);font-size:var(--text-md, 14px);-webkit-user-select:none;user-select:none}[data-density=compact] .ds-pagination-page,[data-density=compact] .ds-pagination-arrow{font-size:var(--text-sm, 12px)}@keyframes ds-drawer-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes ds-drawer-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes ds-drawer-in-right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes ds-drawer-out-right{0%{transform:translate(0)}to{transform:translate(100%)}}@keyframes ds-drawer-in-left{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes ds-drawer-out-left{0%{transform:translate(0)}to{transform:translate(-100%)}}.ds-drawer-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--color-overlay);z-index:var(--z-drawer);animation:ds-drawer-overlay-in var(--motion-enter, .3s ease)}.ds-drawer-overlay--closing{animation:ds-drawer-overlay-out var(--motion-exit, .2s ease) forwards}.ds-drawer{position:fixed;top:0;bottom:0;width:var(--ds-drawer-width, 360px);max-width:100vw;background-color:var(--color-surface-1);box-shadow:var(--shadow-3);display:flex;flex-direction:column;overflow:hidden}.ds-drawer[data-side=right]{right:0;border-radius:var(--radius-4, 8px) 0 0 var(--radius-4, 8px);animation:ds-drawer-in-right var(--motion-enter, .3s ease)}.ds-drawer[data-side=left]{left:0;border-radius:0 var(--radius-4, 8px) var(--radius-4, 8px) 0;animation:ds-drawer-in-left var(--motion-enter, .3s ease)}.ds-drawer--closing[data-side=right]{animation:ds-drawer-out-right var(--motion-exit, .2s ease) forwards}.ds-drawer--closing[data-side=left]{animation:ds-drawer-out-left var(--motion-exit, .2s ease) forwards}.ds-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:var(--space-5, 20px) var(--space-6, 24px);border-bottom:1px solid var(--color-border-light);flex-shrink:0}.ds-drawer-title{font-size:var(--text-xl, 18px);font-weight:var(--font-weight-medium, 500);color:var(--color-fg-primary);margin:0}.ds-drawer-close{display:flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;color:var(--color-fg-secondary);padding:var(--space-1, 4px);border-radius:var(--radius-2, 4px);transition:color var(--motion-hover, .2s ease)}.ds-drawer-close:hover{color:var(--color-fg-primary)}.ds-drawer-close:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-drawer-body{flex:1;overflow-y:auto;padding:var(--space-6, 24px)}.ds-drawer-footer{padding:var(--space-4, 16px) var(--space-6, 24px);border-top:1px solid var(--color-border-light);display:flex;gap:var(--space-3, 12px);flex-shrink:0}@media (max-width: 639px){.ds-drawer{width:100vw!important;border-radius:0!important}}@keyframes ds-side-page-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes ds-side-page-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes ds-side-page-in{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes ds-side-page-out{0%{transform:translate(0)}to{transform:translate(100%)}}.ds-side-page-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--color-overlay);z-index:var(--z-modal);display:flex;align-items:stretch;justify-content:flex-end;animation:ds-side-page-overlay-in .2s ease}.ds-side-page-overlay--closing{animation:ds-side-page-overlay-out .32s ease forwards}.ds-side-page{width:90vw;max-width:960px;height:100%;background-color:var(--color-surface-1);border-radius:var(--radius-4, 12px) 0 0 var(--radius-4, 12px);box-shadow:var(--shadow-2);display:flex;flex-direction:column;position:relative;animation:ds-side-page-in .35s cubic-bezier(.32,.72,0,1)}.ds-side-page--closing{animation:ds-side-page-out .32s cubic-bezier(.32,.72,0,1) forwards}.ds-side-page__close{position:absolute;top:var(--space-2, 8px);right:var(--space-2, 8px);z-index:1}.ds-side-page__header{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-6) var(--space-6) var(--space-4);padding-right:calc(var(--space-6, 24px) + 32px + var(--space-2, 8px));border-bottom:1px solid var(--color-border-light);flex-shrink:0}.ds-side-page__title{font-size:var(--text-2xl, 20px);font-weight:var(--font-weight-medium, 500);color:var(--color-fg-primary);margin:0}.ds-side-page__subheader{display:flex;flex-direction:column;gap:var(--space-4)}.ds-side-page__body{padding:var(--space-6);flex:1;overflow-y:auto;min-height:0;overscroll-behavior:contain}.ds-side-page__footer{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4) var(--space-6) var(--space-6);border-top:1px solid var(--color-border-light);background-color:var(--color-surface-1);flex-shrink:0}.ds-nav-rail{display:flex;flex-direction:column;width:240px;background-color:var(--color-surface-1);overflow:hidden;transition:width var(--motion-hover);flex-shrink:0;box-sizing:border-box}.ds-nav-rail--left{border-right:1px solid var(--color-border-light)}.ds-nav-rail--right{border-left:1px solid var(--color-border-light)}.ds-nav-rail--collapsed{width:56px}.ds-nav-rail__item{position:relative;display:flex;align-items:center;gap:var(--space-3);height:var(--height-3, 44px);min-height:var(--height-3, 44px);flex-shrink:0;padding:0 var(--space-3);margin:1px 0;color:var(--color-fg-secondary);border-radius:var(--radius-3);outline:none;cursor:pointer;text-decoration:none;border:none;background:transparent;width:100%;text-align:left;box-sizing:border-box;transition:color var(--motion-hover);font-family:var(--font-ui, inherit)}.ds-nav-rail__item:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;background-color:transparent;pointer-events:none;transition:background-color var(--motion-hover);z-index:0}.ds-nav-rail__item:hover:before{background-color:var(--color-state-hover)}.ds-nav-rail__item:active:before{background-color:var(--color-state-active)}.ds-nav-rail__item[data-selected]{color:var(--color-fg-primary);font-weight:var(--font-weight-medium, 500)}.ds-nav-rail__item[data-selected]:before{background-color:var(--color-state-selected)}.ds-nav-rail__item[data-selected]:after{content:"";position:absolute;left:calc(-1 * var(--space-2));top:var(--space-2);bottom:var(--space-2);width:2px;background:var(--color-fg-primary);border-radius:0 var(--radius-1) var(--radius-1) 0}.ds-nav-rail--right .ds-nav-rail__item[data-selected]:after{left:auto;right:calc(-1 * var(--space-2));border-radius:var(--radius-1) 0 0 var(--radius-1)}.ds-nav-rail__item:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-nav-rail__item[data-disabled]{color:var(--color-fg-disabled);cursor:not-allowed;pointer-events:none}.ds-nav-rail__item[data-disabled]:before,.ds-nav-rail__item[data-disabled]:after{display:none}.ds-nav-rail__item[data-open]{box-shadow:inset 0 0 0 1px var(--color-border-strong)}.ds-nav-rail__item[data-open][data-selected]{box-shadow:inset 0 0 0 1px var(--color-border-strong),var(--focus-ring, none)}.ds-nav-rail__item[data-onboarding]{box-shadow:0 0 0 2px var(--color-accent-2)}.ds-nav-rail__icon,.ds-nav-rail__label,.ds-nav-rail__count,.ds-nav-rail__dot,.ds-nav-rail__badge-collapsed,.ds-nav-rail__badge-expanded{position:relative;z-index:1}.ds-nav-rail__icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:20px;height:20px}.ds-nav-rail__label{flex:1;font-size:var(--text-s, 14px);line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ds-nav-rail__count{font-size:var(--text-xs, 12px);color:var(--color-fg-secondary);min-width:16px;text-align:right;flex-shrink:0}.ds-nav-rail__count--zero{color:var(--color-fg-disabled)}.ds-nav-rail__dot{position:absolute;top:8px;right:8px;width:6px;height:6px;border-radius:var(--radius-full);background-color:var(--color-accent-default);animation:ds-nav-rail-pulse 2s ease-in-out infinite}@keyframes ds-nav-rail-pulse{0%,to{opacity:1}50%{opacity:.35}}@media (prefers-reduced-motion: reduce){.ds-nav-rail__dot{animation:none}.ds-nav-rail{transition:none}}.ds-nav-rail__badge-collapsed{position:absolute;top:6px;right:6px;line-height:1}.ds-nav-rail__header{display:flex;flex-direction:column;align-items:flex-start;padding:var(--space-2) var(--space-2) var(--space-1);flex-shrink:0}.ds-nav-rail__body{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:var(--space-1) var(--space-2)}.ds-nav-rail__footer{display:flex;flex-direction:column;padding:var(--space-1) var(--space-2) var(--space-2);flex-shrink:0}.ds-nav-rail__divider{border:none;border-top:1px solid var(--color-border-light);margin:var(--space-1) var(--space-2);flex-shrink:0}.ds-nav-rail__recents{display:flex;flex-direction:column}.ds-nav-rail__recents-toggle{display:flex;align-items:center;gap:var(--space-1);padding:var(--space-2) var(--space-3) var(--space-1);background:none;border:none;cursor:pointer;outline:none;width:100%;text-align:left;color:var(--color-fg-disabled)}.ds-nav-rail__recents-toggle:focus-visible{outline:none;box-shadow:var(--focus-ring);border-radius:var(--radius-2)}.ds-nav-rail__recents-label{flex:1;font-size:var(--text-xs, 12px);line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;letter-spacing:.04em}.ds-nav-rail__recents-chevron{flex-shrink:0;transition:transform var(--motion-hover)}.ds-nav-rail__recents-toggle--closed .ds-nav-rail__recents-chevron{transform:rotate(-90deg)}.ds-nav-rail__recents-body{display:flex;flex-direction:column}.ds-nav-rail__agent .ds-nav-rail__icon{width:24px;height:24px}.ds-nav-rail--collapsed{--_strip-offset: calc((56px - var(--height-3, 44px)) / 2)}.ds-nav-rail--collapsed .ds-nav-rail__item{justify-content:center;padding:0;width:var(--height-3, 44px);margin-left:auto;margin-right:auto}.ds-nav-rail--collapsed .ds-nav-rail__item[data-selected]:after{left:calc(-1 * var(--_strip-offset))}.ds-nav-rail--right.ds-nav-rail--collapsed .ds-nav-rail__item[data-selected]:after{left:auto;right:calc(-1 * var(--_strip-offset))}.ds-nav-rail--collapsed .ds-nav-rail__body,.ds-nav-rail--collapsed .ds-nav-rail__header,.ds-nav-rail--collapsed .ds-nav-rail__footer{padding-left:0;padding-right:0}.ds-nav-rail--collapsed .ds-nav-rail__header{align-items:center}.ds-nav-rail--collapsed .ds-nav-rail__label,.ds-nav-rail--collapsed .ds-nav-rail__count,.ds-nav-rail--collapsed .ds-nav-rail__badge-expanded{display:none}.ds-banner{display:flex;align-items:center;gap:var(--space-3, 12px);min-height:var(--height-3, 44px);padding:0 var(--space-5, 20px);width:100%;font-family:var(--font-ui, inherit);font-size:var(--text-md, 14px)}.ds-banner-icon{display:flex;align-items:center;flex-shrink:0}.ds-banner-text{flex:1;color:var(--color-fg-primary);line-height:1.5}.ds-banner-action{background:none;border:1px solid currentColor;border-radius:var(--radius-2, 4px);color:inherit;cursor:pointer;font-family:inherit;font-size:var(--text-sm, 12px);font-weight:var(--font-weight-medium, 500);padding:2px var(--space-3, 12px);white-space:nowrap;transition:opacity var(--motion-hover, .2s ease)}.ds-banner-action:hover{opacity:.8}.ds-banner-action:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-banner-dismiss{display:flex;align-items:center;background:none;border:none;color:inherit;cursor:pointer;opacity:.7;padding:0;flex-shrink:0;transition:opacity var(--motion-hover, .2s ease)}.ds-banner-dismiss:hover{opacity:1}.ds-banner-dismiss:focus-visible{outline:none;box-shadow:var(--focus-ring);border-radius:var(--radius-2, 4px)}.ds-banner--info{background:linear-gradient(var(--color-status-info-bg),var(--color-status-info-bg)),var(--color-surface-1);color:var(--color-status-info)}.ds-banner--success{background:linear-gradient(var(--color-status-success-bg),var(--color-status-success-bg)),var(--color-surface-1);color:var(--color-status-success)}.ds-banner--warning{background:linear-gradient(var(--color-status-warning-bg),var(--color-status-warning-bg)),var(--color-surface-1);color:var(--color-status-warning)}.ds-banner--error{background:linear-gradient(var(--color-status-error-bg),var(--color-status-error-bg)),var(--color-surface-1);color:var(--color-status-error)}.ds-dropdown{position:relative;display:inline-block}.ds-dropdown--full-width{display:block;width:100%}.ds-dropdown__trigger{display:inline-flex}.ds-dropdown--full-width>.ds-dropdown__trigger{display:flex;width:100%}.ds-dropdown--full-width .ds-tooltip-wrapper{width:100%;justify-content:center}@keyframes ds-dropdown-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes ds-dropdown-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-4px)}}.ds-dropdown__menu{position:fixed;z-index:var(--z-dropdown);min-width:180px;background-color:var(--color-surface-0);border:1px solid var(--color-border-default);border-radius:var(--radius-3, 6px);box-shadow:var(--shadow-2);padding:var(--space-2, 8px);animation:ds-dropdown-in var(--motion-enter, .3s ease)}.ds-dropdown__menu--closing{animation:ds-dropdown-out var(--motion-exit, .2s ease) forwards}.ds-dropdown__item{display:flex;align-items:center;gap:var(--space-2, 8px);width:100%;height:var(--height-2, 32px);padding:0 var(--space-3, 12px);background:none;border:none;border-radius:var(--radius-2, 4px);cursor:pointer;font-size:var(--text-md, 14px);font-family:var(--font-ui, inherit);font-weight:var(--font-weight-regular, 400);color:var(--color-fg-secondary);text-align:left;text-decoration:none;transition:background-color var(--transition-normal, .2s ease),color var(--transition-normal, .2s ease)}.ds-dropdown__item:hover:not(:disabled):not([aria-disabled=true]),.ds-dropdown__item:focus-visible{background-color:var(--color-state-hover);color:var(--color-fg-primary);outline:none}.ds-dropdown__item:disabled,.ds-dropdown__item[aria-disabled=true]{color:var(--color-fg-disabled);cursor:not-allowed}.ds-dropdown__item--danger{color:var(--color-status-error)}.ds-dropdown__item--danger:hover:not(:disabled):not([aria-disabled=true]){background-color:var(--color-status-error-bg);color:var(--color-status-error)}.ds-dropdown__item-icon{display:flex;align-items:center;flex-shrink:0}.ds-dropdown__item-label{flex:1}.ds-dropdown__item-shortcut{font-size:var(--text-sm, 12px);color:var(--color-fg-disabled);padding-left:var(--space-3, 12px)}.ds-dropdown__separator{height:1px;background-color:var(--color-border-light);margin:var(--space-2, 8px) 0}.ds-dropdown__section{padding:var(--space-2, 8px) var(--space-2, 8px) var(--space-2, 8px)}.ds-dropdown__section-label{font-size:var(--text-sm, 12px);color:var(--color-fg-secondary);margin-bottom:var(--space-2, 8px);padding:0 var(--space-1, 4px)}.ds-progress{display:flex;align-items:center;gap:var(--space-2, 8px);width:100%}.ds-progress__track{flex:1;background-color:var(--color-state-selected);border-radius:var(--radius-full, 9999px);overflow:hidden}.ds-progress__fill{height:100%;border-radius:var(--radius-full, 9999px);transition:width .35s ease}.ds-progress--instant .ds-progress__fill{transition:none}.ds-progress__fill--default{background-color:var(--color-accent-default)}.ds-progress__fill--success{background-color:var(--color-status-success)}.ds-progress__fill--warning{background-color:var(--color-status-warning)}.ds-progress__fill--danger{background-color:var(--color-status-error)}.ds-progress--xs .ds-progress__track{height:var(--space-1, 4px)}.ds-progress--s .ds-progress__track{height:var(--space-2, 8px)}.ds-progress--m .ds-progress__track{height:var(--space-3, 12px)}.ds-progress--l .ds-progress__track{height:var(--space-6, 24px)}.ds-progress__value{flex-shrink:0;font-size:var(--text-sm, 12px);color:var(--color-fg-secondary);font-family:var(--font-ui, inherit);min-width:2.5ch;text-align:right}@media (prefers-reduced-motion: reduce){.ds-progress__fill{transition:none}}.ds-toast-container{position:fixed;z-index:var(--z-toast);display:flex;flex-direction:column;gap:var(--space-2, 8px);pointer-events:none}.ds-toast-container--bottom-right{bottom:var(--space-6, 24px);right:var(--space-6, 24px);align-items:flex-end}.ds-toast-container--bottom-left{bottom:var(--space-6, 24px);left:var(--space-6, 24px);align-items:flex-start}.ds-toast-container--top-right{top:var(--space-6, 24px);right:var(--space-6, 24px);align-items:flex-end}.ds-toast-container--top-left{top:var(--space-6, 24px);left:var(--space-6, 24px);align-items:flex-start}.ds-toast-container--bottom-center{bottom:var(--space-6, 24px);left:50%;transform:translate(-50%);align-items:center}.ds-toast{display:flex;align-items:center;gap:var(--space-3, 12px);padding:var(--space-3, 12px);border-radius:var(--radius-3, 6px);box-shadow:var(--shadow-3);font-size:var(--text-md, 14px);pointer-events:all;max-width:380px;min-width:240px;opacity:0;transform:translateY(8px);transition:opacity var(--motion-enter, .3s ease),transform var(--motion-enter, .3s ease)}.ds-toast--visible{opacity:1;transform:translateY(0)}.ds-toast--default{background:linear-gradient(var(--color-status-info-bg),var(--color-status-info-bg)),var(--color-surface-1);color:var(--color-status-info)}.ds-toast--success{background:linear-gradient(var(--color-status-success-bg),var(--color-status-success-bg)),var(--color-surface-1);color:var(--color-status-success)}.ds-toast--warning{background:linear-gradient(var(--color-status-warning-bg),var(--color-status-warning-bg)),var(--color-surface-1);color:var(--color-status-warning)}.ds-toast--error{background:linear-gradient(var(--color-status-error-bg),var(--color-status-error-bg)),var(--color-surface-1);color:var(--color-status-error)}.ds-toast__icon{flex-shrink:0;display:flex;align-items:center}.ds-toast__message{flex:1;color:var(--color-fg-primary);line-height:1.5}.ds-toast__close{flex-shrink:0;background:none;border:none;cursor:pointer;color:inherit;opacity:.7;padding:0;display:flex;align-items:center;transition:opacity var(--transition-normal, .2s ease)}.ds-toast__close:hover{opacity:1}.ds-toast__close:focus-visible{outline:none;box-shadow:var(--focus-ring);border-radius:var(--radius-2, 4px)}.ds-tool-card{border-radius:var(--radius-3);overflow:hidden}.ds-tool-card .ds-accordion__header{font-size:var(--text-sm, 12px)}.ds-tool-card__title-row{display:flex;align-items:center;gap:var(--space-2, 8px);min-width:0}.ds-tool-card__icon{display:inline-flex;flex-shrink:0;color:var(--color-fg-secondary)}.ds-tool-card__label{font-family:var(--font-mono, monospace);font-size:var(--text-sm, 12px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ds-tool-card__body{display:flex;flex-direction:column;gap:var(--space-3, 12px)}.ds-tool-card--running .ds-accordion__icon{display:none}.ds-tool-card--running .ds-accordion__header{cursor:default;pointer-events:none}.ds-tool-card--bubble{display:flex;align-items:center;padding:var(--space-3, 12px);background:var(--color-surface-1);color:var(--color-fg-secondary)}.ds-streaming-text{white-space:pre-wrap}.ds-cursor{display:inline-block;margin-left:2px;background:currentColor;opacity:.8;vertical-align:text-bottom;animation:ds-cursor-blink 1s steps(2,end) infinite}.ds-cursor--line{width:2px;height:1.1em}.ds-cursor--block{width:.5em;height:1em}@keyframes ds-cursor-blink{50%{opacity:0}}@media (prefers-reduced-motion: reduce){.ds-cursor{animation:none;opacity:.6}}.ds-reasoning__title{display:flex;align-items:center;gap:var(--space-2, 8px)}.ds-reasoning__icon{color:var(--color-fg-secondary);flex-shrink:0}.ds-step-indicator{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3, 12px)}.ds-step-indicator__dots{display:flex;gap:var(--space-2, 8px);align-items:center}.ds-step-indicator__dot{width:18px;height:6px;border-radius:var(--radius-full, 9999px);border:none;padding:0;background:var(--color-border-default);cursor:default;transition:width var(--transition-fast, .15s ease),background-color var(--transition-fast, .15s ease);display:inline-flex;align-items:center;justify-content:center;color:transparent}.ds-step-indicator__dot:not(:disabled){cursor:pointer}.ds-step-indicator__dot:not(:disabled):hover{background:var(--color-fg-secondary)}.ds-step-indicator__dot--active{background:var(--color-accent-default);width:28px}.ds-step-indicator__dot--done{background:var(--color-accent-default);color:#fff}.ds-step-indicator__dot:disabled:not(.ds-step-indicator__dot--active):not(.ds-step-indicator__dot--done){opacity:.5}.ds-step-indicator__counter{font-variant-numeric:tabular-nums;letter-spacing:.02em}.ds-chat-message{display:flex;flex-direction:column;position:relative}.ds-chat-message--user{align-items:flex-end;padding-left:10%}.ds-chat-message--user .ds-chat-message__bubble{position:relative;max-width:80%;padding:var(--space-3, 12px) var(--space-4, 16px);background:var(--color-surface-1);border-radius:var(--radius-4, 8px) var(--radius-4, 8px) 0 var(--radius-4, 8px);overflow-wrap:break-word;word-break:break-word}.ds-chat-message--user .ds-chat-message__bubble:after{content:"";position:absolute;bottom:0;right:-6px;width:0;height:0;border-style:solid;border-width:6px 0 0 6px;border-color:transparent transparent transparent var(--color-surface-1)}.ds-chat-message--user .ds-chat-message__footer{margin-top:var(--space-1, 4px);margin-bottom:var(--space-2, 8px);display:flex;justify-content:flex-end}.ds-chat-message--assistant{padding-left:var(--space-2, 8px);padding-right:10%}.ds-chat-message--assistant .ds-chat-message__footer{margin-top:var(--space-1, 4px);margin-bottom:var(--space-2, 8px);display:flex;align-items:center;gap:var(--space-1, 4px)}.ds-chat-message--tool{padding-left:var(--space-2, 8px)}.ds-chat-message--system{align-items:center;padding:var(--space-1, 4px) 0}.ds-chat-message__system-label{font-size:var(--text-sm, 12px);color:var(--color-fg-secondary);background:var(--color-state-selected);padding:var(--space-1, 4px) var(--space-3, 12px);border-radius:var(--radius-full, 9999px)}.ds-chat-message__attachments{display:flex;flex-wrap:wrap;gap:var(--space-2, 8px);margin-bottom:var(--space-3, 12px)}.ds-chat-message:has(.ds-chat-message__footer) .ds-chat-message__body>*:last-child,.ds-chat-message:has(.ds-chat-message__footer) .ds-chat-message__bubble>*:last-child{margin-bottom:0}.ds-message-action{display:inline-flex;flex-shrink:0;opacity:0;transition:opacity var(--transition-fast)}.ds-chat-message--assistant:hover .ds-message-action,.ds-chat-message--user:hover .ds-message-action,.ds-message-action:focus-within{opacity:1}@media (hover: none){.ds-message-action{opacity:1}}.ds-chat-message__timestamp{font-size:var(--text-xs, 11px);color:var(--color-fg-secondary);white-space:nowrap;align-items:center;margin-left:var(--space-3, 12px)}.ds-chat-message--user .ds-chat-message__footer .ds-chat-message__timestamp{margin-left:0;margin-right:var(--space-3, 12px)}.ds-prompt-input{display:flex;gap:var(--space-3);background-color:var(--color-surface-0)}.ds-prompt-input__file-input{display:none}.ds-prompt-input__box{flex:1;display:flex;flex-direction:column;gap:var(--space-3);border:1px solid var(--color-border-default);border-radius:var(--radius-3);padding:var(--space-3);box-shadow:var(--shadow-1);transition:border-color var(--transition-fast),background-color var(--transition-fast);position:relative}.ds-prompt-input__box:hover{border-color:var(--color-border-strong)}.ds-prompt-input__box:focus-within{border-color:var(--color-border-focus);box-shadow:var(--focus-ring)}.ds-prompt-input__box--dragging{border-color:var(--color-accent-default)!important;background-color:var(--color-accent-bg)}.ds-prompt-input__drag-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-3);border:2px dashed var(--color-accent-default);background:var(--color-accent-bg);z-index:10;pointer-events:none;color:var(--color-accent-default);font-size:var(--text-md);font-family:inherit}.ds-prompt-input__textarea{resize:none;background-color:transparent;border:none;color:var(--color-fg-primary);font-size:var(--text-md);font-family:inherit;outline:none;width:100%}.ds-prompt-input__textarea--anim{caret-color:transparent}.ds-prompt-input__anim{position:absolute;top:var(--space-3);left:var(--space-3);right:var(--space-3);pointer-events:none;-webkit-user-select:none;user-select:none;font-size:var(--text-md);font-family:inherit;line-height:1.4;color:var(--color-fg-secondary);opacity:.78;display:flex;align-items:baseline;flex-wrap:nowrap;overflow:hidden;white-space:nowrap;text-overflow:clip}.ds-prompt-input__anim-text{display:inline-block;white-space:nowrap}.ds-prompt-input__anim-cursor{display:inline-block;width:.55ch;height:1.05em;margin-left:1px;background:currentColor;transform:translateY(.16em);animation:ds-prompt-cursor-blink 1.05s steps(1) infinite;flex-shrink:0}@keyframes ds-prompt-cursor-blink{0%,50%{opacity:1}50.01%,to{opacity:0}}.ds-prompt-input__images{display:flex;gap:var(--space-2);flex-wrap:wrap}.ds-prompt-input__image-thumb{position:relative;width:56px;height:56px;border-radius:var(--radius-3);overflow:hidden;border:1px solid var(--color-border-default)}.ds-prompt-input__image-thumb img{width:100%;height:100%;object-fit:cover}.ds-prompt-input__image-remove{position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:50%;background-color:var(--color-overlay);border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;line-height:1}.ds-prompt-input__attachments{display:flex;flex-wrap:wrap;gap:var(--space-2)}.ds-prompt-input__badge-content{display:flex;align-items:center;gap:var(--space-2)}.ds-prompt-input__uploading{color:var(--color-fg-secondary);font-size:var(--text-sm)}.ds-prompt-input__remove-btn{background:none;border:none;cursor:pointer;padding:0;display:flex;color:var(--color-fg-primary)}.ds-prompt-input__warnings{display:flex;flex-direction:column;gap:var(--space-2)}.ds-prompt-input__warning{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius-3);background:var(--color-state-warning-subtle, var(--color-surface-1));color:var(--color-fg-primary);font-size:var(--text-sm)}.ds-prompt-input__warning-close{background:none;border:none;cursor:pointer;padding:0;display:flex;color:inherit;flex-shrink:0}.ds-prompt-input__toolbar{display:flex;align-items:center;gap:var(--space-2)}.ds-prompt-input__spacer{flex:1}.ds-model-picker{position:relative;display:inline-flex}.ds-model-picker__trigger{display:inline-flex;align-items:center;gap:var(--space-2, 8px);padding:4px var(--space-2, 8px);border:1px solid var(--color-border-default);border-radius:var(--radius-3);background:transparent;color:var(--color-fg-primary);font-size:var(--text-sm);font-family:inherit;cursor:pointer;transition:border-color var(--transition-fast),background-color var(--transition-fast);white-space:nowrap}.ds-model-picker__trigger:hover{border-color:var(--color-border-strong);background:var(--color-state-hover)}.ds-model-picker__trigger-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ds-model-picker__menu{background:var(--color-surface-1);border:1px solid var(--color-border-default);border-radius:var(--radius-3);box-shadow:var(--shadow-2);padding:var(--space-1, 4px);min-width:200px;max-height:320px;overflow-y:auto}.ds-model-picker__separator{height:1px;background:var(--color-border-light);margin:var(--space-1, 4px) 0}.ds-model-picker__group-label{padding:var(--space-1, 4px) var(--space-2, 8px);font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--color-fg-secondary)}.ds-model-picker__group-label[data-tier=fast]{color:var(--data-5-fg)}.ds-model-picker__group-label[data-tier=standard]{color:var(--data-3-fg)}.ds-model-picker__group-label[data-tier=premium]{color:var(--data-6-fg)}.ds-model-picker__item{display:flex;align-items:center;gap:var(--space-2, 8px);width:100%;padding:var(--space-2, 8px) var(--space-2, 8px);border:none;border-radius:var(--radius-2);background:transparent;color:var(--color-fg-primary);font-size:var(--text-sm);font-family:inherit;cursor:pointer;text-align:left;transition:background-color var(--transition-fast)}.ds-model-picker__item:hover{background:var(--color-state-hover)}.ds-model-picker__item--active{background:var(--color-state-selected)}.ds-model-picker__item--auto{background:var(--color-accent-bg)}.ds-model-picker__item--auto:hover{background:var(--color-accent-bg);filter:brightness(1.1)}.ds-model-picker__item-icon{display:inline-flex;flex-shrink:0;color:var(--color-fg-secondary)}.ds-model-picker__item-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ds-sources-panel{display:flex;flex-direction:column;gap:var(--space-1, 4px)}.ds-sources-panel__title{font-size:var(--text-xs, 11px);font-weight:600;color:var(--color-fg-secondary);text-transform:uppercase;letter-spacing:.08em;padding:0 var(--space-1, 4px);margin-bottom:var(--space-1, 4px)}.ds-sources-panel .ds-accordion__header{font-size:var(--text-sm, 12px)}.ds-sources-panel__row{display:flex;align-items:center;gap:var(--space-2, 8px);padding:var(--space-2, 8px) var(--space-3, 12px);border-radius:var(--radius-3, 6px);background:var(--color-surface-1);font-size:var(--text-sm, 12px);cursor:default}.ds-sources-panel__row--clickable{cursor:pointer}.ds-sources-panel__row--clickable:hover .ds-sources-panel__filename{color:var(--color-accent-default);text-decoration:underline}.ds-sources-panel__filename{font-weight:400;color:var(--color-fg-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.ds-sources-panel__pages{color:var(--color-fg-secondary);flex-shrink:0;font-variant-numeric:tabular-nums}.ds-sources-panel__snippet{font-size:var(--text-sm, 12px);color:var(--color-fg-secondary);line-height:1.5;padding:var(--space-1, 4px) var(--space-2, 8px);border-left:2px solid var(--color-border-default);margin:var(--space-1, 4px) 0}.ds-sources-panel__snippet--clickable{cursor:pointer}.ds-sources-panel__snippet--clickable:hover{border-left-color:var(--color-accent-default);color:var(--color-fg-primary)}.ds-sources-panel__more{font-size:var(--text-sm, 12px);color:var(--color-accent-default);background:none;border:none;padding:var(--space-1, 4px) var(--space-1, 4px);cursor:pointer;text-align:left}.ds-sources-panel__more:hover{text-decoration:underline}.ds-sources-panel--compact .ds-sources-panel__compact-row{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-sm, 12px);padding:var(--space-1) 0;cursor:default}.ds-sources-panel--compact .ds-sources-panel__compact-row--clickable{cursor:pointer}.ds-sources-panel--compact .ds-sources-panel__compact-row--clickable:hover .ds-sources-panel__filename{color:var(--color-accent-default);text-decoration:underline}.ds-sources-panel--compact .ds-sources-panel__compact-icon{flex-shrink:0;color:var(--color-fg-secondary)}.ds-sources-panel--compact .ds-sources-panel__filename{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ds-sources-panel--compact .ds-sources-panel__pages{flex-shrink:0}.ds-token-counter{display:flex;flex-direction:column;gap:var(--space-1)}.ds-token-counter__track{width:100%;background-color:var(--color-state-selected);border-radius:var(--radius-full);overflow:hidden}.ds-token-counter--s .ds-token-counter__track{height:4px}.ds-token-counter--m .ds-token-counter__track{height:6px}.ds-token-counter__fill{height:100%;border-radius:var(--radius-full);transition:width .35s ease,background-color .35s ease}.ds-token-counter__fill--normal{background-color:var(--color-fg-secondary)}.ds-token-counter__fill--warning{background-color:var(--data-2-fg)}.ds-token-counter__fill--error{background-color:var(--data-1-fg)}.ds-token-counter__label{font-size:var(--text-sm, 12px);font-family:var(--font-mono, monospace);color:var(--color-fg-secondary);display:flex;justify-content:space-between}.ds-token-counter__label--normal{color:var(--color-fg-secondary)}.ds-token-counter__label--warning{color:var(--data-2-fg)}.ds-token-counter__label--error{color:var(--data-1-fg)}.ds-confidence-bar{display:inline-flex;align-items:center;gap:var(--space-2)}.ds-confidence-bar--block{display:flex}.ds-confidence-bar__segments{display:flex;gap:2px;align-items:center}.ds-confidence-bar__seg{border-radius:var(--radius-full);flex-shrink:0;opacity:.2}.ds-confidence-bar__seg--filled{opacity:1}.ds-confidence-bar--xs .ds-confidence-bar__seg{width:8px;height:3px}.ds-confidence-bar--s .ds-confidence-bar__seg{width:10px;height:4px}.ds-confidence-bar--low .ds-confidence-bar__seg{background-color:var(--data-1-fg)}.ds-confidence-bar--medium .ds-confidence-bar__seg{background-color:var(--data-2-fg)}.ds-confidence-bar--high .ds-confidence-bar__seg{background-color:var(--data-4-fg)}.ds-confidence-bar__label{font-size:var(--text-sm, 12px);color:var(--color-fg-secondary);white-space:nowrap}.ds-diff-view{font-family:var(--font-mono, monospace);font-size:var(--text-sm, 12px);border-radius:var(--radius-3);border:1px solid var(--color-border-light);overflow:hidden}.ds-diff-view__title{padding:var(--space-2) var(--space-3);font-family:var(--font-ui, inherit);font-size:var(--text-sm, 12px);font-weight:600;color:var(--color-fg-secondary);border-bottom:1px solid var(--color-border-light);background:var(--color-surface-1)}.ds-diff-view__body{overflow-x:auto;overflow-y:auto}.ds-diff-view__line{display:flex;align-items:stretch;min-width:0}.ds-diff-view__line--add{background-color:var(--data-4-bg)}.ds-diff-view__line--remove{background-color:var(--data-1-bg)}.ds-diff-view__line--context{background-color:transparent}.ds-diff-view__lineno{flex-shrink:0;width:3.5ch;padding:2px var(--space-2);text-align:right;color:var(--color-fg-secondary);opacity:.5;border-right:1px solid var(--color-border-light);-webkit-user-select:none;user-select:none}.ds-diff-view__prefix{flex-shrink:0;width:1.5ch;padding:2px 0 2px var(--space-2);-webkit-user-select:none;user-select:none}.ds-diff-view__line--add .ds-diff-view__prefix{color:var(--data-4-fg)}.ds-diff-view__line--remove .ds-diff-view__prefix{color:var(--data-1-fg)}.ds-diff-view__line--context .ds-diff-view__prefix{color:var(--color-fg-secondary);opacity:.4}.ds-diff-view__text{flex:1;padding:2px var(--space-2) 2px var(--space-1);white-space:pre;min-width:0;color:var(--color-fg-primary)}.ds-diff-view--wrap .ds-diff-view__text{white-space:pre-wrap;word-break:break-all}.ds-diff-view__line--context .ds-diff-view__text{color:var(--color-fg-secondary)}.ds-diff-view--split .ds-diff-view__body{display:flex}.ds-diff-view__split-col{flex:1;min-width:0;overflow-x:auto}.ds-diff-view__split-col+.ds-diff-view__split-col{border-left:1px solid var(--color-border-light)}.ds-message-feedback{display:inline-flex;gap:var(--space-2, 8px)}.ds-message-feedback__btn{display:inline-flex;align-items:center;justify-content:center;padding:4px;background:none;border:none;border-radius:var(--radius-3);color:var(--color-fg-secondary);cursor:pointer;transition:color var(--transition-fast),background var(--transition-fast),opacity var(--transition-fast)}.ds-message-feedback__btn:hover{color:var(--color-fg-primary);background:var(--color-state-hover)}.ds-message-feedback__btn:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-message-feedback__btn--liked{color:var(--color-accent-default);cursor:default;pointer-events:none}.ds-message-feedback__btn--disliked{color:var(--color-status-error);cursor:default;pointer-events:none}.ds-message-feedback.ds-message-feedback--voted{opacity:1}.ds-message-footer{display:inline-flex;align-items:center;gap:var(--space-2, 8px)}.ds-message-footer__timestamp{font-size:var(--text-xs, 11px);color:var(--color-fg-secondary);white-space:nowrap}.ds-thinking-dot{display:inline-flex;align-items:center;gap:var(--space-2, 8px)}.ds-thinking-dot__pulse{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--color-accent-default);flex-shrink:0;animation:ds-thinking-pulse 1.4s ease-in-out infinite}.ds-thinking-dot__label{font-size:var(--text-xs, 11px);color:var(--color-fg-secondary);animation:ds-thinking-color 2s ease-in-out infinite}@keyframes ds-thinking-pulse{0%,to{opacity:.3;transform:scale(1)}50%{opacity:1;transform:scale(1.3)}}@keyframes ds-thinking-color{0%,to{color:var(--color-fg-secondary)}50%{color:var(--color-fg-primary)}}.ds-coachmark__spotlight{position:fixed;pointer-events:none;border-radius:var(--radius-3);z-index:var(--z-tooltip);--_overlay: transparent;--_ring: var(--color-accent-2);box-shadow:0 0 0 2px var(--_ring),0 0 0 9999px var(--_overlay);opacity:0;transition:opacity var(--motion-exit, .2s ease)}.ds-coachmark__spotlight--overlay{--_overlay: var(--color-overlay, rgba(14, 15, 17, .65))}.ds-coachmark__spotlight--no-ring{--_ring: transparent}.ds-coachmark__spotlight--visible{opacity:1;transition:opacity var(--motion-enter, .3s ease)}.ds-coachmark__bubble{width:280px;background:var(--color-surface-3);border:1px solid var(--color-border-default);border-radius:var(--radius-4, 8px);box-shadow:var(--shadow-2);z-index:calc(var(--z-tooltip) + 1);display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-4);outline:none;opacity:0;transition:opacity var(--motion-exit, .2s ease)}.ds-coachmark__bubble--visible{opacity:1;transition:opacity var(--motion-enter, .3s ease)}.ds-coachmark__title{font-size:var(--text-s, 14px);font-weight:var(--font-weight-medium, 500);color:var(--color-fg-primary);line-height:1.3;font-family:var(--font-ui, inherit);padding-right:28px}.ds-coachmark__body{font-size:var(--text-s, 14px);color:var(--color-fg-secondary);line-height:1.5;font-family:var(--font-ui, inherit)}.ds-coachmark__close{position:absolute;top:var(--space-3);right:var(--space-3);display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;background:transparent;color:var(--color-fg-secondary);border-radius:var(--radius-2);cursor:pointer;outline:none;transition:color var(--motion-hover),background-color var(--motion-hover)}.ds-coachmark__close:hover{background-color:var(--color-state-hover);color:var(--color-fg-primary)}.ds-coachmark__close:active{background-color:var(--color-state-active)}.ds-coachmark__close:focus-visible{box-shadow:var(--focus-ring)}.ds-coachmark__footer{display:flex;align-items:center;gap:var(--space-2)}.ds-coachmark__counter{font-size:var(--text-xs, 12px);color:var(--color-fg-disabled);font-family:var(--font-ui, inherit);flex:1}.ds-coachmark__footer-nav{display:flex;align-items:center;gap:var(--space-2)}.ds-coachmark__bubble--top:after{content:"";position:absolute;top:100%;left:calc(50% + var(--arrow-offset, 0px));transform:translate(-50%);border:10px solid transparent;border-top-color:var(--color-border-default)}.ds-coachmark__bubble--top:before{content:"";position:absolute;top:100%;left:calc(50% + var(--arrow-offset, 0px));transform:translate(-50%);border:9px solid transparent;border-top-color:var(--color-surface-3);z-index:1}.ds-coachmark__bubble--bottom:after{content:"";position:absolute;bottom:100%;left:calc(50% + var(--arrow-offset, 0px));transform:translate(-50%);border:10px solid transparent;border-bottom-color:var(--color-border-default)}.ds-coachmark__bubble--bottom:before{content:"";position:absolute;bottom:100%;left:calc(50% + var(--arrow-offset, 0px));transform:translate(-50%);border:9px solid transparent;border-bottom-color:var(--color-surface-3);z-index:1}.ds-coachmark__bubble--left:after{content:"";position:absolute;left:100%;top:50%;transform:translateY(-50%);border:10px solid transparent;border-left-color:var(--color-border-default)}.ds-coachmark__bubble--left:before{content:"";position:absolute;left:100%;top:50%;transform:translateY(-50%);border:9px solid transparent;border-left-color:var(--color-surface-3);z-index:1}.ds-coachmark__bubble--right:after{content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%);border:10px solid transparent;border-right-color:var(--color-border-default)}.ds-coachmark__bubble--right:before{content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%);border:9px solid transparent;border-right-color:var(--color-surface-3);z-index:1}@keyframes ds-shake{0%{transform:translate(0)}15%{transform:translate(-6px)}30%{transform:translate(6px)}45%{transform:translate(-4px)}60%{transform:translate(4px)}75%{transform:translate(-2px)}90%{transform:translate(2px)}to{transform:translate(0)}}.ds-shake{animation:ds-shake .45s var(--easing-standard, cubic-bezier(.2, 0, 0, 1))}@media (prefers-reduced-motion: reduce){.ds-shake{animation:none}}
1
+ @layer base{:root{--color-white: #F8F9FA;--color-black: #0E0F11;--color-red-light: #EE7A7A;--color-red: #EA6464;--color-red-dark: #E15252;--data-red: #EA6464;--data-orange: #F59E42;--data-yellow: #FFCD1B;--data-teal: #34D399;--data-blue: #60A5FA;--data-violet: #A78BFA;--data-pink: #F472B6;--color-info: #60A5FA;--color-info-dark: #2563EB;--color-success: #00C86E;--color-success-dark: #00A055;--color-warning: #FFBB00;--color-warning-dark: #D97706;--color-error: #FF1200;--color-error-dark: #DC2626;--color-surface-0: #0E0F11;--color-surface-1: #16181C;--color-surface-2: #1E2026;--color-surface-3: #262830;--color-fg-primary: rgba(248, 249, 250, .92);--color-fg-secondary: rgba(248, 249, 250, .65);--color-fg-disabled: rgba(248, 249, 250, .3);--color-state-hover: rgba(248, 249, 250, .07);--color-state-active: rgba(248, 249, 250, .12);--color-state-selected: rgba(248, 249, 250, .1);--color-state-focus: rgba(248, 249, 250, .3);--color-border-light: rgba(248, 249, 250, .08);--color-border-default: rgba(248, 249, 250, .2);--color-border-strong: rgba(248, 249, 250, .4);--color-border-focus: rgba(248, 249, 250, .5);--color-accent-default: var(--color-red);--color-accent-hover: var(--color-red-light);--color-accent-fg: var(--color-white);--color-accent-hover-fg: var(--color-accent-fg);--color-accent-bg: rgba(234, 100, 100, .12);--color-status-info: var(--color-info);--color-status-info-bg: rgba(37, 99, 235, .15);--color-status-success: var(--color-success);--color-status-success-bg: rgba(0, 160, 85, .15);--color-status-warning: var(--color-warning);--color-status-warning-bg: rgba(217, 119, 6, .15);--color-status-error: var(--color-error);--color-status-error-bg: rgba(220, 38, 38, .15);--color-overlay: rgba(14, 15, 17, .65);--data-1-fg: var(--data-red);--data-1-bg: rgba(234, 100, 100, .15);--data-1-border: rgba(234, 100, 100, .35);--data-2-fg: var(--data-orange);--data-2-bg: rgba(245, 158, 66, .15);--data-2-border: rgba(245, 158, 66, .35);--data-3-fg: var(--data-yellow);--data-3-bg: rgba(255, 205, 27, .15);--data-3-border: rgba(255, 205, 27, .35);--data-4-fg: var(--data-teal);--data-4-bg: rgba( 52, 211, 153, .15);--data-4-border: rgba( 52, 211, 153, .35);--data-5-fg: var(--data-blue);--data-5-bg: rgba( 96, 165, 250, .15);--data-5-border: rgba( 96, 165, 250, .35);--data-6-fg: var(--data-violet);--data-6-bg: rgba(167, 139, 250, .15);--data-6-border: rgba(167, 139, 250, .35);--data-7-fg: var(--data-pink);--data-7-bg: rgba(244, 114, 182, .15);--data-7-border: rgba(244, 114, 182, .35);--shadow-1: 0 2px 8px rgba(0, 0, 0, .4), 0 0 0 1px rgba(248, 249, 250, .06);--shadow-2: 0 8px 24px rgba(0, 0, 0, .5), 0 0 0 1px rgba(248, 249, 250, .08);--shadow-3: 0 16px 48px rgba(0, 0, 0, .6), 0 0 0 1px rgba(248, 249, 250, .1);--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-8: 32px;--space-10: 40px;--space-12: 48px;--space-16: 64px;--radius-1: 2px;--radius-2: 4px;--radius-3: 6px;--radius-4: 8px;--radius-6: 12px;--radius-8: 16px;--radius-full: 9999px;--height-1: 24px;--height-2: 32px;--height-2-5: 36px;--height-3: 44px;--height-4: 56px;--icon-1: 16px;--icon-2: 20px;--icon-3: 24px;--icon-4: 28px;--icon-5: 48px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;--font-weight-regular: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--text-4xl: 32px;--text-3xl: 28px;--text-2xl: 24px;--text-xl: 20px;--text-lg: 16px;--text-md: 14px;--text-sm: 12px;--text-xs: 10px;--tracking-4xl: 0;--tracking-3xl: 0;--tracking-2xl: 0;--tracking-xl: 0;--tracking-lg: .02em;--tracking-md: .04em;--tracking-sm: .06em;--z-sticky: 100;--z-drawer: 200;--z-modal: 300;--z-dropdown: 400;--z-toast: 500;--z-tooltip: 600;--layout-padding-x: 16px;--layout-padding-y: 32px;--layout-header-height: 64px;--easing-standard: cubic-bezier(.2, 0, 0, 1);--easing-decelerate: cubic-bezier(0, 0, .2, 1);--easing-accelerate: cubic-bezier(.3, 0, 1, 1);--easing-emphasized: cubic-bezier(.2, 0, 0, 1);--motion-duration-instant: .1s;--motion-duration-quick: .2s;--motion-duration-moderate: .3s;--motion-duration-slow: .5s;--motion-hover: var(--motion-duration-quick) var(--easing-standard);--motion-enter: var(--motion-duration-moderate) var(--easing-decelerate);--motion-exit: var(--motion-duration-quick) var(--easing-accelerate);--motion-emphasis: var(--motion-duration-slow) var(--easing-emphasized);--transition-fast: var(--motion-duration-instant) var(--easing-standard);--transition-normal: var(--motion-duration-quick) var(--easing-standard);--transition-slow: var(--motion-duration-moderate) var(--easing-standard);--state-disabled-opacity: .4;--focus-ring-color: var(--color-state-focus);--focus-ring-offset: 2px;--focus-ring-width: 2px;--focus-ring: 0 0 0 var(--focus-ring-offset) var(--color-surface-0), 0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);--font-ui: inherit;--ui-font-weight: var(--font-weight-medium);--ui-tracking: 0;--tab-tracking: 0;--ui-text-transform: none;--tab-font-size-xs: var(--text-sm);--tab-font-size-s: var(--text-md);--tab-font-size-m: var(--text-lg);--tab-font-size-l: var(--text-lg);--tab-icon-size-xs: var(--icon-1);--tab-icon-size-s: var(--icon-2);--tab-icon-size-m: var(--icon-2);--tab-icon-size-l: var(--icon-2);--label-font-size: var(--text-md);--label-color: var(--color-fg-primary);--label-tracking: 0;--label-text-transform: none;--field-border: var(--color-border-default);--field-border-active: var(--color-border-strong);--btn-padding-ratio: .5;--btn-font-weight: var(--font-weight-medium);--btn-font-size-xs: var(--text-sm);--btn-font-size-s: var(--text-md);--btn-font-size-m: var(--text-lg);--btn-font-size-l: var(--text-lg);--btn-icon-size-xs: var(--icon-1);--btn-icon-size-s: var(--icon-2);--btn-icon-size-m: var(--icon-2);--btn-icon-size-l: var(--icon-2);--btn-secondary-color: var(--color-fg-primary);--btn-secondary-border: var(--color-border-default);--btn-secondary-hover-border: var(--color-border-strong);--btn-secondary-hover-bg: var(--color-state-hover);--btn-secondary-hover-color: var(--btn-secondary-color);--badge-font-size-xs: 11px;--badge-font-size-s: var(--text-sm);--badge-font-size-m: var(--text-md);--badge-tracking: var(--ui-tracking);--badge-text-transform: var(--ui-text-transform);--card-border: var(--color-border-light);--card-hover-transform: none;--table-th-font-family: var(--font-ui);--table-th-font-size: inherit;--table-th-color: var(--color-fg-secondary);--table-th-weight: var(--font-weight-semibold);--table-th-tracking: 0;--table-th-text-transform: none;--table-wrap-border: var(--color-border-light);--table-row-border: var(--color-border-light);--table-subrow-bg: var(--color-surface-2);--table-subrow-color: var(--color-fg-secondary);--table-subrow-font: var(--font-ui);--table-subrow-tracking: 0;--table-subrow-transform: none;--color-accent-2: #FFCD1B;--color-accent-2-bg: rgba(255, 205, 27, .1);--color-accent-2-fg: #0A0A0B;--breakpoint-mobile: 375px;--breakpoint-tablet: 768px;--breakpoint-desktop: 1280px}[data-density=compact]{--height-1: 20px;--height-2: 28px;--height-2-5: 32px;--height-3: 36px;--height-4: 44px;--space-3: 8px;--space-4: 12px;--space-5: 16px;--space-6: 20px;--text-md: 13px;--text-sm: 11px}@media (max-width: 767px){[data-density=compact]{--height-1: 24px;--height-2: 32px;--height-2-5: 36px;--height-3: 44px;--height-4: 56px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--text-md: 14px;--text-sm: 12px}}[data-corners=sharp]{--radius-1: 0;--radius-2: 0;--radius-3: 0;--radius-4: 0;--radius-6: 0;--radius-8: 0}[data-typography=editorial]{--font-ui: "Fira Code", monospace;--ui-font-weight: var(--font-weight-regular);--ui-tracking: .15em;--tab-tracking: .1em;--ui-text-transform: uppercase;--btn-padding-ratio: .62;--btn-font-weight: var(--font-weight-regular);--btn-font-size-xs: var(--text-sm);--btn-font-size-s: var(--text-sm);--btn-font-size-m: var(--text-sm);--btn-font-size-l: var(--text-sm);--badge-font-size-xs: 10px;--badge-tracking: 0;--badge-text-transform: none}[data-density=airy]{--card-hover-transform: translateY(-3px)}[data-variant=edgy]{--radius-1: 0;--radius-2: 0;--radius-3: 0;--radius-4: 0;--radius-6: 0;--radius-8: 0;--font-ui: "Fira Code", monospace;--ui-font-weight: var(--font-weight-regular);--ui-tracking: .15em;--tab-tracking: .1em;--ui-text-transform: uppercase;--btn-padding-ratio: .62;--btn-font-weight: var(--font-weight-regular);--btn-font-size-xs: var(--text-sm);--btn-font-size-s: var(--text-sm);--btn-font-size-m: var(--text-sm);--btn-font-size-l: var(--text-sm);--color-surface-0: #0A0A0B;--color-surface-1: #111114;--color-surface-2: #18181C;--color-surface-3: #1F1F24;--color-border-light: rgba(255, 250, 250, .05);--color-border-default: rgba(255, 250, 250, .1);--color-border-strong: rgba(255, 250, 250, .22);--color-border-focus: rgba(255, 250, 250, .42);--shadow-1: 0 2px 12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 250, 250, .05);--shadow-2: 0 8px 32px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 250, 250, .06);--shadow-3: 0 20px 60px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 250, 250, .07);--tab-font-size-xs: var(--text-sm);--tab-font-size-s: var(--text-sm);--tab-font-size-m: var(--text-sm);--tab-font-size-l: var(--text-sm);--tab-icon-size-xs: 16px;--tab-icon-size-s: 16px;--tab-icon-size-m: 18px;--tab-icon-size-l: 20px;--label-font-size: var(--text-sm);--label-color: var(--color-fg-secondary);--field-border: rgba(248, 249, 250, .2);--field-border-active: rgba(248, 249, 250, .4);--btn-icon-size-xs: 16px;--btn-icon-size-s: 16px;--btn-icon-size-m: 18px;--btn-icon-size-l: 20px;--btn-secondary-color: var(--color-fg-primary);--btn-secondary-border: var(--color-border-default);--btn-secondary-hover-border: var(--color-accent-2);--btn-secondary-hover-bg: var(--color-accent-2);--btn-secondary-hover-color: var(--color-accent-2-fg);--badge-font-size-xs: 10px;--badge-tracking: 0;--badge-text-transform: none;--card-border: rgba(255, 250, 250, .12);--card-hover-transform: translateY(-3px);--table-th-font-family: "Fira Code", monospace;--table-th-color: var(--color-accent-default);--table-th-weight: var(--font-weight-regular);--table-th-tracking: .15em;--table-th-text-transform: uppercase;--table-subrow-bg: var(--color-surface-2);--table-subrow-color: var(--color-fg-secondary);--table-subrow-font: "Fira Code", monospace;--table-subrow-tracking: .15em;--table-subrow-transform: uppercase;--color-accent-hover: var(--color-accent-2);--color-accent-hover-fg: var(--color-accent-2-fg)}@supports (background: color-mix(in srgb,red,blue)){:root{--color-state-hover: color-mix(in srgb, currentColor 7%, transparent);--color-state-active: color-mix(in srgb, currentColor 12%, transparent);--color-state-selected: color-mix(in srgb, currentColor 10%, transparent)}}@media (min-width: 768px){:root{--text-4xl: 40px;--text-3xl: 36px;--text-2xl: 28px;--text-xl: 24px;--text-lg: 18px;--text-md: 16px;--text-sm: 14px;--tracking-lg: .02em;--tracking-md: .02em;--tracking-sm: .04em;--layout-padding-x: 20px;--layout-padding-y: 48px;--layout-header-height: 72px}}@media (min-width: 1280px){:root{--layout-padding-x: 24px;--layout-padding-y: 64px}}body{margin:0;min-width:320px;min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--color-surface-0);color:var(--color-fg-primary);transition:background-color var(--motion-emphasis),color var(--motion-emphasis)}*{box-sizing:border-box}::selection{background-color:var(--color-state-selected);color:var(--color-fg-primary)}@media (prefers-reduced-motion: reduce){:root{--motion-duration-instant: .01ms;--motion-duration-quick: .01ms;--motion-duration-moderate: .01ms;--motion-duration-slow: .01ms}}}.ds-spinner{display:inline-block;border-radius:var(--radius-full, 9999px);border-style:solid;border-color:currentColor;border-top-color:transparent;flex-shrink:0;animation:ds-spin .7s linear infinite}@keyframes ds-spin{to{transform:rotate(360deg)}}.ds-spinner--xs{width:12px;height:12px;border-width:1.5px}.ds-spinner--s{width:16px;height:16px;border-width:2px}.ds-spinner--m{width:20px;height:20px;border-width:2px}.ds-spinner--l{width:24px;height:24px;border-width:2.5px}.ds-spinner--xl{width:32px;height:32px;border-width:3px}.ds-spinner--default{color:var(--color-accent-default)}.ds-spinner--secondary{color:var(--color-fg-secondary)}.ds-spinner--on-accent{color:var(--color-accent-fg)}@media (prefers-reduced-motion: reduce){.ds-spinner{animation-duration:.01ms;animation-iteration-count:1}}.ds-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2, 8px);font-size:var(--text-lg, 16px);font-weight:var(--btn-font-weight);font-family:var(--font-ui, inherit);letter-spacing:var(--ui-tracking, 0);text-transform:var(--ui-text-transform, none);line-height:1;border:none;cursor:pointer;transition:background-color var(--motion-hover, .2s ease),border-color var(--motion-hover, .2s ease),color var(--motion-hover, .2s ease);white-space:nowrap;text-decoration:none;position:relative;isolation:isolate}.ds-button:disabled,.ds-button[aria-disabled=true]{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed;pointer-events:none}.ds-button--primary:disabled,.ds-button--primary[aria-disabled=true]{background-color:transparent;color:var(--btn-secondary-color);border:1px solid var(--btn-secondary-border)}.ds-button__icon{display:flex;align-items:center;justify-content:center;flex-shrink:0}.ds-button__icon>svg{width:var(--_btn-icon-sz, 20px);height:var(--_btn-icon-sz, 20px);stroke-width:1.5px}.ds-button--xs{--_btn-icon-sz: var(--btn-icon-size-xs, 14px)}.ds-button--s{--_btn-icon-sz: var(--btn-icon-size-s, 16px)}.ds-button--m{--_btn-icon-sz: var(--btn-icon-size-m, 20px)}.ds-button--l{--_btn-icon-sz: var(--btn-icon-size-l, 24px)}.ds-button--primary{color:var(--color-accent-fg);background-color:var(--color-accent-default)}.ds-button--primary:hover:not(:disabled):not([aria-disabled=true]){background-color:var(--color-accent-hover);color:var(--color-accent-hover-fg)}.ds-button--secondary{color:var(--btn-secondary-color);background-color:transparent;border:1px solid var(--btn-secondary-border)}.ds-button--secondary:before,.ds-button--ghost:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;border-radius:inherit;pointer-events:none;z-index:-1;transition:background-color var(--motion-hover, .2s ease)}.ds-button--secondary:hover:not(:disabled):not([aria-disabled=true]){border-color:var(--btn-secondary-hover-border);color:var(--btn-secondary-hover-color)}.ds-button--secondary:hover:not(:disabled):not([aria-disabled=true]):before{background-color:var(--btn-secondary-hover-bg)}.ds-button--ghost{color:var(--color-fg-secondary);background-color:transparent}.ds-button--ghost:hover:not(:disabled):not([aria-disabled=true]){color:var(--color-fg-primary)}.ds-button--ghost:hover:not(:disabled):not([aria-disabled=true]):before{background-color:var(--color-state-hover)}.ds-button--danger{color:var(--color-accent-fg);background-color:var(--color-error-dark)}.ds-button--danger:hover:not(:disabled):not([aria-disabled=true]){background-color:#b91c1c}.ds-button--xs{height:var(--height-1, 24px);padding:0 calc(var(--height-1, 24px) * var(--btn-padding-ratio, .5));font-size:var(--btn-font-size-xs, 12px);border-radius:var(--radius-2, 4px)}.ds-button--s{height:var(--height-2, 32px);padding:0 calc(var(--height-2, 32px) * var(--btn-padding-ratio, .5));font-size:var(--btn-font-size-s, 14px);border-radius:var(--radius-2, 4px)}.ds-button--sm{height:var(--height-2-5, 36px);padding:0 calc(var(--height-2-5, 36px) * var(--btn-padding-ratio, .5));font-size:var(--btn-font-size-s, 14px);border-radius:var(--radius-3, 6px)}.ds-button--m{height:var(--height-3, 44px);padding:0 calc(var(--height-3, 44px) * var(--btn-padding-ratio, .5));font-size:var(--btn-font-size-m, 16px);border-radius:var(--radius-3, 6px)}.ds-button--l{height:var(--height-4, 56px);padding:0 calc(var(--height-4, 56px) * var(--btn-padding-ratio, .5));font-size:var(--btn-font-size-l, 16px);border-radius:var(--radius-3, 6px);gap:var(--space-3, 12px)}.ds-button--full{width:100%}.ds-button--icon-only{aspect-ratio:1;padding-left:0;padding-right:0}.ds-button[data-state=loading],.ds-button[data-state=success],.ds-button[data-state=error]{cursor:default;pointer-events:none}.ds-button[data-state=loading]{opacity:.7}.ds-button--primary[data-state=loading]{background-color:transparent;color:var(--color-fg-disabled);border:1px solid var(--color-border-default);opacity:1}.ds-button--primary[data-state=success],.ds-button--secondary[data-state=success],.ds-button--danger[data-state=success]{background-color:var(--color-status-success-bg);border:none;box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 35%,transparent);color:var(--color-status-success)}.ds-button--primary[data-state=error],.ds-button--secondary[data-state=error],.ds-button--danger[data-state=error]{background-color:var(--color-status-error-bg);border:none;box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 35%,transparent);color:var(--color-status-error)}.ds-button--ghost[data-state=success]{color:var(--color-status-success)}.ds-button--ghost[data-state=error]{color:var(--color-status-error)}.ds-button:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-input-wrapper{display:flex;flex-direction:column;gap:var(--space-2, 8px)}.ds-input-wrapper--full{width:100%}.ds-input-wrapper--disabled{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed}.ds-input-label{font-family:var(--font-ui, inherit);font-size:var(--label-font-size);font-weight:var(--font-weight-regular, 400);letter-spacing:var(--label-tracking);text-transform:var(--label-text-transform);color:var(--label-color)}.ds-input-container{position:relative;display:flex;align-items:center}.ds-input{width:100%;font-family:inherit;color:var(--color-fg-primary);background-color:transparent;border:1px solid var(--field-border);transition:border-color var(--transition-normal, .2s ease);line-height:1.5}.ds-input::placeholder{color:var(--color-fg-secondary)}.ds-input:hover:not(:disabled){border-color:var(--field-border-active)}.ds-input:focus,.ds-input:active{outline:none;border-color:var(--field-border-active)}.ds-input:focus-visible{box-shadow:var(--focus-ring)}.ds-input:disabled{cursor:not-allowed}.ds-input--error{border-color:var(--color-error)}.ds-input--xs{height:var(--height-1, 24px);padding:0 calc(var(--height-1, 24px) / 4);font-size:var(--text-sm, 12px);border-radius:var(--radius-2, 4px)}.ds-input--s{height:var(--height-2, 32px);padding:0 calc(var(--height-2, 32px) / 4);font-size:var(--text-md, 14px);border-radius:var(--radius-2, 4px)}.ds-input--sm{height:var(--height-2-5, 36px);padding:0 10px;font-size:var(--text-md, 14px);border-radius:var(--radius-3, 6px)}.ds-input--m{height:var(--height-3, 44px);padding:0 calc(var(--height-3, 44px) / 4);font-size:var(--text-lg, 16px);border-radius:var(--radius-3, 6px)}.ds-input--with-icon.ds-input--xs{padding-left:calc(var(--height-1, 24px) / 4 + 16px + var(--height-1, 24px) / 4)}.ds-input--with-icon.ds-input--s{padding-left:calc(var(--height-2, 32px) / 4 + 20px + var(--height-2, 32px) / 4)}.ds-input--with-icon.ds-input--sm{padding-left:40px}.ds-input--with-icon.ds-input--m{padding-left:calc(var(--height-3, 44px) / 4 + 24px + var(--height-3, 44px) / 4)}.ds-input--with-icon-right.ds-input--xs{padding-right:calc(var(--height-1, 24px) / 4 + 16px + var(--height-1, 24px) / 4)}.ds-input--with-icon-right.ds-input--s{padding-right:calc(var(--height-2, 32px) / 4 + 20px + var(--height-2, 32px) / 4)}.ds-input--with-icon-right.ds-input--sm{padding-right:40px}.ds-input--with-icon-right.ds-input--m{padding-right:calc(var(--height-3, 44px) / 4 + 24px + var(--height-3, 44px) / 4)}.ds-input-icon{position:absolute;display:flex;align-items:center;color:var(--color-fg-secondary);pointer-events:none}.ds-input-icon--xs{left:6px}.ds-input-icon--s{left:8px}.ds-input-icon--m{left:11px}.ds-input-icon-right{position:absolute;display:flex;align-items:center;justify-content:center;background:none;border:none;color:var(--color-fg-secondary);cursor:pointer;transition:color var(--transition-normal, .2s ease);padding:0}.ds-input-icon-right:hover{color:var(--color-fg-primary)}.ds-input-icon-right--xs{right:6px}.ds-input-icon-right--s{right:8px}.ds-input-icon-right--m{right:11px}.ds-input-hint{font-size:var(--text-md, 14px);color:var(--color-fg-secondary)}.ds-input-error-wrap{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows var(--transition-fast, .1s ease)}.ds-input-wrapper--error .ds-input-error-wrap{grid-template-rows:1fr}.ds-input-error-inner{overflow:hidden;min-height:0}.ds-input-error{display:block;padding-top:var(--space-1, 4px);font-size:var(--text-md, 14px);color:var(--color-error)}.ds-textarea-wrapper{display:flex;flex-direction:column;gap:var(--space-2, 8px)}.ds-textarea-wrapper--full{width:100%}.ds-textarea-wrapper--disabled{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed;pointer-events:none}.ds-textarea-label{font-family:var(--font-ui, inherit);font-size:var(--label-font-size);font-weight:var(--font-weight-regular, 400);letter-spacing:var(--label-tracking);text-transform:var(--label-text-transform);color:var(--label-color)}.ds-textarea{width:100%;font-family:inherit;color:var(--color-fg-primary);background-color:transparent;border:1px solid var(--field-border);transition:border-color var(--transition-normal, .2s ease);line-height:1.5;resize:vertical;background:linear-gradient(315deg,transparent 5px,var(--field-border) 5px,var(--field-border) 6px,transparent 6px),linear-gradient(315deg,transparent 10px,var(--field-border) 10px,var(--field-border) 11px,transparent 11px);background-repeat:no-repeat;background-position:bottom right;background-size:16px 16px}.ds-textarea::placeholder{color:var(--color-fg-secondary)}.ds-textarea::-webkit-resizer{display:none}.ds-textarea:hover:not(:disabled){border-color:var(--field-border-active);background:linear-gradient(315deg,transparent 5px,var(--field-border-active) 5px,var(--field-border-active) 6px,transparent 6px),linear-gradient(315deg,transparent 10px,var(--field-border-active) 10px,var(--field-border-active) 11px,transparent 11px);background-repeat:no-repeat;background-position:bottom right;background-size:16px 16px}.ds-textarea:focus-visible{box-shadow:var(--focus-ring)}.ds-textarea:focus,.ds-textarea:active{outline:none;border-color:var(--field-border-active);background:linear-gradient(315deg,transparent 5px,var(--field-border-active) 5px,var(--field-border-active) 6px,transparent 6px),linear-gradient(315deg,transparent 10px,var(--field-border-active) 10px,var(--field-border-active) 11px,transparent 11px);background-repeat:no-repeat;background-position:bottom right;background-size:16px 16px}.ds-textarea:disabled{cursor:not-allowed}.ds-textarea--error{border-color:var(--color-error);background:linear-gradient(315deg,transparent 5px,var(--color-error) 5px,var(--color-error) 6px,transparent 6px),linear-gradient(315deg,transparent 10px,var(--color-error) 10px,var(--color-error) 11px,transparent 11px);background-repeat:no-repeat;background-position:bottom right;background-size:16px 16px}.ds-textarea--no-resize{resize:none;background:none}.ds-textarea--xs{padding:var(--space-2, 8px);font-size:var(--text-sm, 12px);border-radius:var(--radius-2, 4px)}.ds-textarea--s{padding:var(--space-2, 8px) var(--space-3, 12px);font-size:var(--text-md, 14px);border-radius:var(--radius-2, 4px)}.ds-textarea--m{padding:var(--space-3, 12px);font-size:var(--text-lg, 16px);border-radius:var(--radius-3, 6px)}.ds-textarea-hint{font-size:var(--text-md, 14px);color:var(--color-fg-secondary)}.ds-textarea-error{font-size:var(--text-md, 14px);color:var(--color-error)}.ds-select-wrapper{display:flex;flex-direction:column;gap:var(--space-2, 8px)}.ds-select-wrapper--full{width:100%}.ds-select-wrapper--disabled{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed;pointer-events:none}.ds-select-label{font-family:var(--font-ui, inherit);font-size:var(--label-font-size);font-weight:var(--font-weight-regular, 400);letter-spacing:var(--label-tracking);text-transform:var(--label-text-transform);color:var(--label-color)}.ds-select-container{position:relative}.ds-select-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:var(--space-3, 12px);font-family:inherit;color:var(--color-fg-primary);background-color:transparent;border:1px solid var(--field-border);cursor:pointer;transition:border-color var(--transition-normal, .2s ease);text-align:left;line-height:1.5}.ds-select-trigger>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ds-select-trigger:hover:not(:disabled){border-color:var(--field-border-active)}.ds-select-trigger:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-select-trigger:disabled{cursor:not-allowed}.ds-select-trigger--error{border-color:var(--color-error)}.ds-select-trigger--xs{height:var(--height-1, 24px);padding:0 calc(var(--height-1, 24px) / 4);font-size:var(--text-sm, 12px);border-radius:var(--radius-2, 4px)}.ds-select-trigger--s{height:var(--height-2, 32px);padding:0 calc(var(--height-2, 32px) / 4);font-size:var(--text-md, 14px);border-radius:var(--radius-2, 4px)}.ds-select-trigger--m{height:var(--height-3, 44px);padding:0 calc(var(--height-3, 44px) / 4);font-size:var(--text-lg, 16px);border-radius:var(--radius-3, 6px)}.ds-select-placeholder{color:var(--color-fg-secondary)}.ds-select-icon{flex-shrink:0;color:var(--color-fg-secondary);transition:transform var(--transition-normal, .2s ease)}.ds-select-icon--open{transform:rotate(180deg)}.ds-select-icon--up{transform:rotate(0)}@keyframes ds-select-in-down{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes ds-select-out-down{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-4px)}}@keyframes ds-select-in-up{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes ds-select-out-up{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(4px)}}.ds-select-dropdown{position:fixed;background-color:var(--color-surface-0);border:1px solid var(--field-border);box-shadow:var(--shadow-1);z-index:var(--z-dropdown);max-height:300px;overflow-y:auto}.ds-select-dropdown--down{animation:ds-select-in-down var(--motion-enter, .3s ease)}.ds-select-dropdown--down.ds-select-dropdown--closing{animation:ds-select-out-down var(--motion-exit, .2s ease) forwards}.ds-select-dropdown--up{animation:ds-select-in-up var(--motion-enter, .3s ease)}.ds-select-dropdown--up.ds-select-dropdown--closing{animation:ds-select-out-up var(--motion-exit, .2s ease) forwards}.ds-select-dropdown--s{border-radius:var(--radius-2, 4px)}.ds-select-dropdown--m{border-radius:var(--radius-3, 6px)}.ds-select-option{width:100%;font-family:inherit;color:var(--color-fg-primary);background-color:transparent;border:none;cursor:pointer;text-align:left;line-height:1.5;white-space:normal;word-wrap:break-word;position:relative;isolation:isolate}.ds-select-option:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;pointer-events:none;z-index:-1;transition:background-color var(--transition-normal, .2s ease)}.ds-select-option--s{min-height:var(--height-2, 32px);padding:var(--space-2, 8px) calc(var(--height-2, 32px) / 4);font-size:var(--text-md, 14px)}.ds-select-option--m{min-height:var(--height-3, 44px);padding:var(--space-2, 8px) calc(var(--height-3, 44px) / 4);font-size:var(--text-lg, 16px)}.ds-select-option:hover:before{background-color:var(--color-state-hover)}.ds-select-option--selected:before{background-color:var(--color-state-selected)}.ds-select-option--active:before{background-color:var(--color-state-hover)}.ds-select-error{font-size:var(--text-md, 14px);color:var(--color-error)}.ds-scrollable{scrollbar-width:thin;scrollbar-color:var(--color-border-default) transparent}.ds-scrollable::-webkit-scrollbar{width:4px;height:4px}.ds-scrollable::-webkit-scrollbar-track{background:transparent}.ds-scrollable::-webkit-scrollbar-thumb{background:var(--color-border-default);border-radius:var(--radius-full, 9999px)}.ds-scrollable::-webkit-scrollbar-thumb:hover{background:var(--color-border-strong)}.ds-stepper-wrapper{display:flex;flex-direction:column;gap:var(--space-2, 8px)}.ds-stepper-label{font-family:var(--font-ui, inherit);font-size:var(--label-font-size);font-weight:var(--font-weight-regular, 400);letter-spacing:var(--label-tracking);text-transform:var(--label-text-transform);color:var(--label-color)}.ds-stepper{display:flex;align-items:stretch;width:fit-content;border:1px solid var(--field-border);border-radius:var(--radius-2, 4px);transition:border-color var(--transition-normal, .2s ease)}.ds-stepper:hover:not(.ds-stepper--disabled){border-color:var(--field-border-active)}.ds-stepper:focus-within{border-color:var(--field-border-active)}.ds-stepper--disabled{cursor:not-allowed}.ds-stepper-button{display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;color:var(--color-fg-secondary);cursor:pointer;transition:color var(--transition-fast, .1s ease);flex-shrink:0;position:relative;isolation:isolate}.ds-stepper-button:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;border-radius:inherit;pointer-events:none;z-index:-1;transition:background-color var(--transition-fast, .1s ease)}.ds-stepper-button:hover:not(:disabled){color:var(--color-fg-primary)}.ds-stepper-button:hover:not(:disabled):before{background-color:var(--color-state-hover)}.ds-stepper-button:active:not(:disabled):before{background-color:var(--color-state-active)}.ds-stepper-button:focus-visible{outline:none;box-shadow:var(--focus-ring);z-index:1}.ds-stepper-button:disabled{opacity:.5;cursor:not-allowed}.ds-stepper-button--minus{border-radius:var(--radius-2, 4px) 0 0 var(--radius-2, 4px);border-right:1px solid var(--field-border)}.ds-stepper-button--plus{border-radius:0 var(--radius-2, 4px) var(--radius-2, 4px) 0;border-left:1px solid var(--field-border)}.ds-stepper-input{width:80px;text-align:center;border:none;background-color:transparent;color:var(--color-fg-primary);font-size:var(--text-lg, 16px);letter-spacing:var(--tracking-lg);outline:none;cursor:text}.ds-stepper-input:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-stepper-input:disabled{cursor:not-allowed}.ds-stepper-input::-webkit-inner-spin-button,.ds-stepper-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.ds-stepper-input[type=number]{-moz-appearance:textfield}.ds-stepper--xs{height:var(--height-1, 24px)}.ds-stepper--xs .ds-stepper-button{width:var(--height-1, 24px);padding:0}.ds-stepper--xs .ds-stepper-input{font-size:var(--text-sm, 12px);letter-spacing:var(--tracking-sm);padding:0 var(--space-2, 8px)}.ds-stepper--s{height:var(--height-2, 32px)}.ds-stepper--s .ds-stepper-button{width:var(--height-2, 32px);padding:0}.ds-stepper--s .ds-stepper-input{font-size:var(--text-md, 14px);letter-spacing:var(--tracking-md);padding:0 var(--space-2, 8px)}.ds-stepper--m{height:var(--height-3, 44px)}.ds-stepper--m .ds-stepper-button{width:var(--height-3, 44px);padding:0}.ds-stepper--m .ds-stepper-input{font-size:var(--text-lg, 16px);letter-spacing:var(--tracking-lg);padding:0 var(--space-3, 12px)}.ds-stepper-hint{font-size:var(--text-md, 14px);letter-spacing:var(--tracking-md);color:var(--color-fg-secondary)}.ds-stepper-error{font-size:var(--text-md, 14px);letter-spacing:var(--tracking-md);color:var(--color-status-error)}.ds-stepper-wrapper--error .ds-stepper{border-color:var(--color-status-error)}.ds-stepper-wrapper--error .ds-stepper:hover:not(.ds-stepper--disabled){border-color:var(--color-status-error)}.ds-stepper-wrapper--error .ds-stepper:focus-within{border-color:var(--color-status-error)}.ds-stepper-wrapper--disabled{opacity:.5;cursor:not-allowed}.ds-stepper-wrapper--disabled *{cursor:not-allowed}.ds-card{display:flex;flex-direction:column;min-width:0;background-color:transparent;border-radius:var(--radius-3, 6px);border:1px solid var(--card-border);transition:border-color var(--motion-hover, .2s ease),background-color var(--motion-hover, .2s ease),transform var(--motion-hover, .2s ease);text-decoration:none;color:inherit}.ds-card--interactive{cursor:pointer;background-color:var(--color-surface-1);border:none;position:relative;isolation:isolate}.ds-card--interactive:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;border-radius:inherit;pointer-events:none;z-index:-1;transition:background-color var(--transition-normal, .2s ease)}.ds-card--interactive:hover:not([aria-disabled=true]){transform:var(--card-hover-transform, none)}.ds-card--interactive:hover:not([aria-disabled=true]):before{background-color:var(--color-state-hover)}.ds-card--outline{background-color:transparent;border:1px solid var(--card-border);cursor:pointer;transition:border-color var(--motion-hover, .2s ease),transform var(--motion-hover, .2s ease)}.ds-card--outline:hover:not([aria-disabled=true]){border-color:var(--color-border-strong);transform:var(--card-hover-transform, none)}.ds-card--interactive:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-card[aria-disabled=true]{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed;pointer-events:none}.ds-card--none{padding:0;gap:0}.ds-card--s{padding:var(--space-3, 12px);gap:var(--space-2, 8px)}.ds-card--m{padding:var(--space-4, 16px);gap:var(--space-3, 12px)}.ds-card--l{padding:var(--space-6, 24px);gap:var(--space-4, 16px)}.ds-h1{font-size:var(--text-4xl, 32px);font-weight:var(--font-weight-regular, 400);line-height:1.2;color:var(--color-fg-primary);letter-spacing:var(--tracking-4xl);margin:0}.ds-h2{font-size:var(--text-3xl, 24px);font-weight:var(--font-weight-regular, 400);line-height:1.3;color:var(--color-fg-primary);letter-spacing:var(--tracking-3xl);margin:0}.ds-h3{font-size:var(--text-2xl, 20px);font-weight:var(--font-weight-regular, 400);line-height:1.3;color:var(--color-fg-primary);letter-spacing:var(--tracking-2xl);margin:0}.ds-h4{font-size:var(--text-xl, 18px);font-weight:var(--font-weight-regular, 400);line-height:1.4;color:var(--color-fg-primary);letter-spacing:var(--tracking-xl);margin:0}.ds-p1{font-size:var(--text-lg, 16px);font-weight:var(--font-weight-regular, 400);line-height:1.5;color:var(--color-fg-primary);letter-spacing:var(--tracking-lg);margin:0}.ds-p1--secondary{color:var(--color-fg-secondary)}.ds-p2{font-size:var(--text-md, 14px);font-weight:var(--font-weight-regular, 400);line-height:1.5;color:var(--color-fg-primary);letter-spacing:var(--tracking-md);margin:0}.ds-p2--secondary{color:var(--color-fg-secondary)}.ds-p3{font-size:var(--text-sm, 12px);font-weight:var(--font-weight-regular, 400);line-height:1.5;color:var(--color-fg-primary);letter-spacing:var(--tracking-sm);margin:0}.ds-p3--secondary{color:var(--color-fg-secondary)}.ds-badge{display:inline-flex;align-items:center;justify-content:center;font-family:var(--font-ui, inherit);font-weight:var(--ui-font-weight, 500);letter-spacing:var(--badge-tracking);text-transform:var(--badge-text-transform);white-space:nowrap}.ds-badge--xs{padding:1px var(--space-1, 4px);font-size:var(--badge-font-size-xs);letter-spacing:var(--tracking-sm);border-radius:var(--radius-1, 2px)}.ds-badge--s{padding:2px var(--space-2, 8px);font-size:var(--badge-font-size-s);border-radius:var(--radius-2, 4px)}.ds-badge--m{padding:3px var(--space-3, 12px);font-size:var(--badge-font-size-m);border-radius:var(--radius-3, 6px)}.ds-badge--default{background-color:var(--color-state-selected);color:var(--color-fg-secondary)}.ds-badge--info{background-color:var(--color-status-info-bg);color:var(--color-status-info)}.ds-badge--success{background-color:var(--color-status-success-bg);color:var(--color-status-success)}.ds-badge--warning{background-color:var(--color-status-warning-bg);color:var(--color-status-warning)}.ds-badge--error{background-color:var(--color-status-error-bg);color:var(--color-status-error)}.ds-badge--accent{background-color:var(--color-accent-bg);color:var(--color-accent-default)}.ds-badge--danger{background-color:var(--color-status-error-bg);color:var(--color-status-error)}.ds-badge--data-1{background-color:var(--data-1-bg);color:var(--data-1-fg)}.ds-badge--data-2{background-color:var(--data-2-bg);color:var(--data-2-fg)}.ds-badge--data-3{background-color:var(--data-3-bg);color:var(--data-3-fg)}.ds-badge--data-4{background-color:var(--data-4-bg);color:var(--data-4-fg)}.ds-badge--data-5{background-color:var(--data-5-bg);color:var(--data-5-fg)}.ds-badge--data-6{background-color:var(--data-6-bg);color:var(--data-6-fg)}.ds-badge--data-7{background-color:var(--data-7-bg);color:var(--data-7-fg)}[data-variant=edgy] .ds-badge{box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 35%,transparent)}.ds-alert{display:flex;align-items:flex-start;gap:var(--space-3, 12px);padding:var(--space-3, 12px);border-radius:var(--radius-3, 6px)}.ds-alert--no-title{align-items:center}.ds-alert__icon{flex-shrink:0;display:flex;align-items:center;justify-content:center}.ds-alert:not(.ds-alert--no-title) .ds-alert__icon{margin-top:2px}.ds-alert__content{flex:1;min-width:0}.ds-alert__title{font-size:var(--text-lg, 16px);font-weight:var(--font-weight-regular, 400);margin-bottom:var(--space-2, 8px)}.ds-alert__message{font-size:var(--text-md, 14px);line-height:1.5}.ds-alert__close{flex-shrink:0;background:none;border:none;color:inherit;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;opacity:.7;transition:opacity var(--transition-normal, .2s ease)}.ds-alert__close:hover{opacity:1}.ds-alert__close:focus-visible{outline:none;box-shadow:var(--focus-ring);border-radius:var(--radius-2, 4px)}.ds-alert--info{background:linear-gradient(var(--color-status-info-bg),var(--color-status-info-bg)),var(--color-surface-1);color:var(--color-status-info)}.ds-alert--info .ds-alert__message{color:var(--color-fg-primary)}.ds-alert--success{background:linear-gradient(var(--color-status-success-bg),var(--color-status-success-bg)),var(--color-surface-1);color:var(--color-status-success)}.ds-alert--success .ds-alert__message{color:var(--color-fg-primary)}.ds-alert--warning{background:linear-gradient(var(--color-status-warning-bg),var(--color-status-warning-bg)),var(--color-surface-1);color:var(--color-status-warning)}.ds-alert--warning .ds-alert__message{color:var(--color-fg-primary)}.ds-alert--error{background:linear-gradient(var(--color-status-error-bg),var(--color-status-error-bg)),var(--color-surface-1);color:var(--color-status-error)}.ds-alert--error .ds-alert__message{color:var(--color-fg-primary)}@keyframes ds-modal-backdrop-in{0%{opacity:0}to{opacity:1}}@keyframes ds-modal-backdrop-out{0%{opacity:1}to{opacity:0}}@keyframes ds-modal-content-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes ds-modal-content-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(8px)}}.ds-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:var(--color-overlay);display:flex;align-items:flex-start;justify-content:center;z-index:var(--z-modal);padding:var(--space-4, 16px);overflow-y:auto;animation:ds-modal-backdrop-in var(--motion-enter, .3s ease)}.ds-modal{background-color:var(--color-surface-1);border-radius:var(--radius-4, 8px);box-shadow:var(--shadow-2);display:flex;flex-direction:column;margin:auto 0;position:relative;animation:ds-modal-content-in var(--motion-enter, .3s ease) .05s both}.ds-modal__close{position:absolute;top:var(--space-2, 8px);right:var(--space-2, 8px);z-index:1}.ds-modal-overlay--closing{animation:ds-modal-backdrop-out var(--motion-exit, .2s ease) forwards}.ds-modal-overlay--closing .ds-modal{animation:ds-modal-content-out var(--motion-exit, .2s ease) forwards}.ds-modal--s{width:100%;max-width:400px}.ds-modal--m{width:100%;max-width:600px}.ds-modal--l{width:100%;max-width:900px}.ds-modal__header{display:flex;flex-direction:column;padding:var(--space-6, 24px) var(--space-6, 24px) var(--space-4, 16px);gap:var(--space-4, 16px)}.ds-modal__title{font-size:var(--text-2xl, 20px);font-weight:var(--font-weight-medium, 500);color:var(--color-fg-primary);margin:0}.ds-modal__subheader{display:flex;flex-direction:column;gap:var(--space-4, 16px)}.ds-modal__body{padding:0 var(--space-6, 24px) var(--space-6, 24px);flex:1}.ds-modal__body:last-child{border-bottom-left-radius:var(--radius-4, 8px);border-bottom-right-radius:var(--radius-4, 8px)}.ds-modal--scrollable{max-height:85vh}.ds-modal--scrollable .ds-modal__body{overflow-y:auto;min-height:0;padding-top:var(--space-6, 24px);overscroll-behavior:contain}.ds-modal--scrollable .ds-modal__header{border-bottom:1px solid var(--color-border-light)}.ds-modal--scrollable .ds-modal__footer{border-top:1px solid var(--color-border-light)}.ds-modal__footer{display:flex;align-items:center;justify-content:flex-start;gap:var(--space-3, 12px);padding:var(--space-4, 16px) var(--space-6, 24px) var(--space-6, 24px);background-color:var(--color-surface-1);position:relative;z-index:10;border-bottom-left-radius:var(--space-3, 12px);border-bottom-right-radius:var(--space-3, 12px)}@keyframes ds-sheet-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes ds-sheet-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes ds-sheet-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes ds-sheet-out{0%{transform:translateY(0)}to{transform:translateY(100%)}}.ds-bottom-sheet-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--color-overlay);z-index:var(--z-modal);display:flex;align-items:flex-end;animation:ds-sheet-overlay-in .2s ease}.ds-bottom-sheet-overlay--closing{animation:ds-sheet-overlay-out .32s ease forwards}.ds-bottom-sheet{width:100%;max-width:1280px;height:95vh;margin:0 auto;background-color:var(--color-surface-1);border-radius:var(--radius-4, 12px) var(--radius-4, 12px) 0 0;box-shadow:var(--shadow-2);display:flex;flex-direction:column;position:relative;animation:ds-sheet-in .35s cubic-bezier(.32,.72,0,1)}.ds-bottom-sheet__close{position:absolute;top:var(--space-2, 8px);right:var(--space-2, 8px);z-index:1}.ds-bottom-sheet--closing{animation:ds-sheet-out .32s cubic-bezier(.32,.72,0,1) forwards}.ds-bottom-sheet__handle{width:36px;height:4px;background:var(--color-border-default);border-radius:var(--radius-full, 9999px);margin:var(--space-3) auto var(--space-1);flex-shrink:0}.ds-bottom-sheet__header{display:flex;flex-direction:column;padding:var(--space-4) var(--space-6) var(--space-4);gap:var(--space-4);border-bottom:1px solid var(--color-border-light);flex-shrink:0}.ds-bottom-sheet__title{font-size:var(--text-2xl, 20px);font-weight:var(--font-weight-medium, 500);color:var(--color-fg-primary);margin:0}.ds-bottom-sheet__subheader{display:flex;flex-direction:column;gap:var(--space-4)}.ds-bottom-sheet__body{padding:var(--space-6);flex:1;overflow-y:auto;min-height:0;overscroll-behavior:contain}.ds-bottom-sheet .ds-modal__footer{border-top:1px solid var(--color-border-light);border-bottom-left-radius:0;border-bottom-right-radius:0}.ds-code-accordion{min-width:0}.ds-code-accordion__header{display:flex;align-items:center;justify-content:space-between;width:100%;background-color:var(--color-surface-1);border:none;border-radius:var(--radius-3, 6px);color:var(--color-fg-primary);font-size:var(--text-lg, 16px);font-family:inherit;cursor:pointer;position:relative;isolation:isolate}.ds-code-accordion__header:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;border-radius:inherit;pointer-events:none;z-index:-1;transition:background-color var(--transition-normal, .2s ease)}.ds-code-accordion__header[aria-expanded=true]{border-radius:var(--radius-3, 6px) var(--radius-3, 6px) 0 0}.ds-code-accordion__header:hover:before{background-color:var(--color-state-hover)}.ds-code-accordion__header:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-code-accordion__title{font-weight:var(--font-weight-regular, 400)}.ds-code-accordion__icon{flex-shrink:0;color:var(--color-fg-secondary);transition:transform var(--transition-normal, .2s ease)}.ds-code-accordion__icon--expanded{transform:rotate(180deg)}.ds-code-accordion__content{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows var(--transition-normal, .2s ease)}.ds-code-accordion--expanded .ds-code-accordion__content{grid-template-rows:1fr}.ds-code-accordion__inner{overflow:hidden;min-height:0;opacity:0;visibility:hidden;transition:opacity var(--transition-normal, .2s ease) .05s,visibility 0s var(--transition-normal, .2s ease)}.ds-code-accordion--expanded .ds-code-accordion__inner{opacity:1;visibility:visible;transition:opacity var(--transition-normal, .2s ease) .05s,visibility 0s 0s}.ds-code-accordion__pre{overflow-x:auto;font-family:Fira Mono,SF Mono,Monaco,Cascadia Code,Roboto Mono,Consolas,monospace;font-size:var(--text-md, 14px);background-color:var(--color-surface-2);color:var(--color-fg-primary);border-radius:0 0 var(--radius-3, 6px) var(--radius-3, 6px);line-height:1.6;margin:0}.ds-code-accordion--s .ds-code-accordion__header,.ds-code-accordion--s .ds-code-accordion__pre{padding:var(--space-2, 8px)}.ds-code-accordion--m .ds-code-accordion__header,.ds-code-accordion--m .ds-code-accordion__pre{padding:var(--space-3, 12px)}.ds-code-accordion--l .ds-code-accordion__header,.ds-code-accordion--l .ds-code-accordion__pre{padding:var(--space-4, 16px)}.ds-code-accordion__pre code{background:none;border:none;padding:0;font-family:inherit;font-size:inherit;color:inherit}@media (max-width: 640px){.ds-code-accordion__header{font-size:var(--text-md, 14px)}.ds-code-accordion--l .ds-code-accordion__header,.ds-code-accordion--l .ds-code-accordion__pre{padding:var(--space-3, 12px)}}@media (prefers-reduced-motion: reduce){.ds-code-accordion__inner{transition:none}}.ds-code-inline{font-family:Fira Mono,SF Mono,Monaco,Cascadia Code,Roboto Mono,Consolas,monospace;font-size:.9em;background-color:var(--color-surface-2);color:var(--color-fg-primary);padding:2px 6px;border-radius:var(--radius-3, 6px);white-space:nowrap}.ds-code-block{font-family:Fira Mono,SF Mono,Monaco,Cascadia Code,Roboto Mono,Consolas,monospace;font-size:var(--text-md, 14px);background-color:var(--color-surface-2);color:var(--color-fg-primary);padding:var(--space-3, 12px);border-radius:var(--radius-3, 6px);overflow-x:auto;line-height:1.6;margin:0}.ds-code-block code{background:none;border:none;padding:0;font-family:inherit;font-size:inherit;color:inherit}.ds-link{color:var(--color-accent-default);text-decoration:none;cursor:pointer;transition:color var(--transition-fast, .1s ease),text-decoration var(--transition-fast, .1s ease);font-size:inherit;font-weight:inherit;line-height:inherit}.ds-link:hover{color:var(--color-accent-hover);text-decoration:underline}.ds-link:active{color:var(--color-accent-hover)}.ds-link:focus-visible{outline:none;box-shadow:var(--focus-ring);border-radius:2px}.ds-tabs{display:flex;gap:var(--space-2, 8px);flex-wrap:wrap}.ds-tab{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2, 8px);font-family:var(--font-ui, inherit);font-weight:var(--ui-font-weight, 500);letter-spacing:var(--tab-tracking);text-transform:var(--ui-text-transform, none);line-height:1;cursor:pointer;background-color:transparent;color:var(--color-fg-primary);transition:border-color var(--motion-hover, .2s ease),background-color var(--motion-hover, .2s ease);white-space:nowrap;text-decoration:none}.ds-tab--ghost{border:none;color:var(--color-fg-secondary);position:relative;isolation:isolate}.ds-tab--ghost:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;border-radius:inherit;pointer-events:none;z-index:-1;transition:background-color var(--motion-hover, .2s ease)}.ds-tab--ghost:hover:not(.ds-tab--selected):not(:disabled):not([aria-disabled=true]){color:var(--color-fg-primary)}.ds-tab--ghost:hover:not(.ds-tab--selected):not(:disabled):not([aria-disabled=true]):before{background-color:var(--color-state-hover)}.ds-tab--ghost.ds-tab--selected{color:var(--color-fg-primary)}.ds-tab--ghost.ds-tab--selected:before{background-color:var(--color-state-selected)}.ds-tab--xs{--_tab-icon-sz: var(--tab-icon-size-xs)}.ds-tab--s,.ds-tab--sm{--_tab-icon-sz: var(--tab-icon-size-s, 14px)}.ds-tab--m{--_tab-icon-sz: var(--tab-icon-size-m, 16px)}.ds-tab--l{--_tab-icon-sz: var(--tab-icon-size-l, 20px)}.ds-tab--xs{height:var(--height-1, 24px);padding:0 calc(var(--height-1, 24px) / 2);font-size:var(--tab-font-size-xs);border-radius:var(--radius-2, 4px)}.ds-tab--s{height:var(--height-2, 32px);padding:0 calc(var(--height-2, 32px) / 2);font-size:var(--tab-font-size-s, 13px);border-radius:var(--radius-2, 4px)}.ds-tab--sm{height:var(--height-2-5, 36px);padding:0 14px;font-size:var(--tab-font-size-s, 13px);border-radius:var(--radius-3, 6px)}.ds-tab--m{height:var(--height-3, 44px);padding:0 calc(var(--height-3, 44px) / 2);font-size:var(--tab-font-size-m, 14px);border-radius:var(--radius-3, 6px)}.ds-tab--l{height:var(--height-4, 56px);padding:0 calc(var(--height-4, 56px) / 2);font-size:var(--tab-font-size-l, 15px);border-radius:var(--radius-3, 6px);gap:var(--space-3, 12px)}.ds-tab:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-tab:disabled,.ds-tab[aria-disabled=true]{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed;pointer-events:none}.ds-tab-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0}.ds-tab-icon>svg{width:var(--_tab-icon-sz, 16px);height:var(--_tab-icon-sz, 16px);stroke-width:1.5px}.ds-tab--icon-only{aspect-ratio:1;padding-left:0;padding-right:0}.ds-seg{display:inline-flex;position:relative;padding:3px;border:1px solid var(--color-border-default);border-radius:var(--radius-3, 6px);background:var(--color-surface-1)}.ds-seg--disabled{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed;pointer-events:none}.ds-seg__pill{position:absolute;top:3px;bottom:3px;background:var(--color-state-hover);border-radius:calc(var(--radius-3, 6px) - 2px);pointer-events:none;z-index:0}.ds-seg__btn{position:relative;z-index:1;display:inline-flex;align-items:center;gap:var(--space-1, 4px);background:transparent;border:none;cursor:pointer;font-family:var(--font-ui, inherit);font-size:var(--text-md, 14px);letter-spacing:var(--ui-tracking, 0);text-transform:var(--ui-text-transform, none);color:var(--color-fg-secondary);border-radius:calc(var(--radius-3, 6px) - 2px);white-space:nowrap;transition:color var(--motion-hover, .2s ease)}.ds-seg__btn:hover:not(:disabled){color:var(--color-fg-primary)}.ds-seg__btn:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-seg__btn--active{color:var(--color-fg-primary)}.ds-seg__btn-icon{display:flex;align-items:center;flex-shrink:0}.ds-seg--s .ds-seg__btn{height:var(--height-1, 24px);padding:0 var(--space-2, 8px);font-size:var(--text-sm, 12px)}.ds-seg--m .ds-seg__btn{height:var(--height-2, 32px);padding:0 var(--space-3, 12px)}.ds-seg--sm .ds-seg__btn{height:var(--height-2-5, 36px);padding:0 var(--space-3, 12px)}.ds-seg--l .ds-seg__btn{height:var(--height-3, 44px);padding:0 var(--space-4, 16px);font-size:var(--text-lg, 16px)}@media (prefers-reduced-motion: reduce){.ds-seg__pill{transition:none}}.ds-accordion{min-width:0}.ds-accordion__header{display:flex;align-items:center;justify-content:space-between;width:100%;background-color:var(--color-surface-1);border:none;border-radius:var(--radius-3, 6px);color:var(--color-fg-primary);font-size:var(--text-xl, 18px);font-family:inherit;cursor:pointer;position:relative;isolation:isolate}.ds-accordion__header:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;border-radius:inherit;pointer-events:none;z-index:-1;transition:background-color var(--transition-normal, .2s ease)}.ds-accordion__header[aria-expanded=true]{border-radius:var(--radius-3, 6px) var(--radius-3, 6px) 0 0}.ds-accordion__header:hover:before{background-color:var(--color-state-hover)}.ds-accordion__header:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-accordion__title{font-weight:var(--font-weight-regular, 400)}.ds-accordion__icon{flex-shrink:0;color:var(--color-fg-secondary);transition:transform var(--transition-normal, .2s ease)}.ds-accordion__icon--expanded{transform:rotate(180deg)}.ds-accordion__content{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows var(--transition-normal, .2s ease)}.ds-accordion--expanded .ds-accordion__content{grid-template-rows:1fr}.ds-accordion__content-inner{overflow:hidden;min-height:0;opacity:0;visibility:hidden;transition:opacity var(--transition-normal, .2s ease) .05s,visibility 0s var(--transition-normal, .2s ease)}.ds-accordion--expanded .ds-accordion__content-inner{opacity:1;visibility:visible;transition:opacity var(--transition-normal, .2s ease) .05s,visibility 0s 0s}.ds-accordion__content-body{display:flex;flex-direction:column;background-color:var(--color-surface-1);border-radius:0 0 var(--radius-3, 6px) var(--radius-3, 6px)}.ds-accordion--s .ds-accordion__header{padding:var(--space-3, 12px)}.ds-accordion--s .ds-accordion__content-body{padding:var(--space-3, 12px);gap:var(--space-2, 8px)}.ds-accordion--m .ds-accordion__header{padding:var(--space-4, 16px)}.ds-accordion--m .ds-accordion__content-body{padding:var(--space-4, 16px);gap:var(--space-3, 12px)}.ds-accordion--l .ds-accordion__header{padding:var(--space-6, 24px)}.ds-accordion--l .ds-accordion__content-body{padding:var(--space-6, 24px);gap:var(--space-4, 16px)}@media (max-width: 640px){.ds-accordion__header{font-size:var(--text-lg, 16px)}.ds-accordion--l .ds-accordion__header{padding:var(--space-4, 16px)}.ds-accordion--l .ds-accordion__content-inner{padding:var(--space-4, 16px);gap:var(--space-3, 12px)}}.ds-tooltip-wrapper{position:relative;display:inline-flex}.ds-tooltip{background-color:var(--color-surface-3);color:var(--color-fg-secondary);font-size:var(--text-sm, 12px);letter-spacing:var(--tracking-sm);width:max-content;max-width:200px;padding:var(--space-2, 8px);border:1px solid var(--color-border-default);box-shadow:var(--shadow-1);z-index:var(--z-tooltip);border-radius:var(--radius-2, 4px);white-space:normal;word-wrap:break-word;pointer-events:none;line-height:1.4}.ds-tooltip--top:after{content:"";position:absolute;top:100%;left:calc(50% + var(--arrow-offset, 0px));transform:translate(-50%);border:4px solid transparent;border-top-color:var(--color-border-default)}.ds-tooltip--top:before{content:"";position:absolute;top:100%;left:calc(50% + var(--arrow-offset, 0px));transform:translate(-50%);border:3px solid transparent;border-top-color:var(--color-surface-3);z-index:1}.ds-tooltip--bottom:after{content:"";position:absolute;bottom:100%;left:calc(50% + var(--arrow-offset, 0px));transform:translate(-50%);border:4px solid transparent;border-bottom-color:var(--color-border-default)}.ds-tooltip--bottom:before{content:"";position:absolute;bottom:100%;left:calc(50% + var(--arrow-offset, 0px));transform:translate(-50%);border:3px solid transparent;border-bottom-color:var(--color-surface-3);z-index:1}.ds-tooltip--left:after{content:"";position:absolute;left:100%;top:50%;transform:translateY(-50%);border:4px solid transparent;border-left-color:var(--color-border-default)}.ds-tooltip--left:before{content:"";position:absolute;left:100%;top:50%;transform:translateY(-50%);border:3px solid transparent;border-left-color:var(--color-surface-3);z-index:1}.ds-tooltip--right:after{content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%);border:4px solid transparent;border-right-color:var(--color-border-default)}.ds-tooltip--right:before{content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%);border:3px solid transparent;border-right-color:var(--color-surface-3);z-index:1}.ds-toggle{display:inline-flex;align-items:center;gap:var(--space-3, 12px);cursor:pointer}.ds-toggle--disabled{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed}.ds-toggle__input{position:absolute;opacity:0;pointer-events:none}.ds-toggle__track{position:relative;display:flex;align-items:center;background-color:var(--color-surface-1);border:1px solid var(--field-border);transition:background-color var(--transition-normal, .2s ease),border-color var(--transition-normal, .2s ease);flex-shrink:0}.ds-toggle__input:focus-visible+.ds-toggle__track{box-shadow:var(--focus-ring)}.ds-toggle__input:checked+.ds-toggle__track{background-color:var(--color-accent-default);border-color:var(--color-accent-default)}.ds-toggle__input:not(:checked)+.ds-toggle__track:hover{border-color:var(--field-border-active)}.ds-toggle__thumb{background-color:var(--color-accent-fg);border-radius:50%;transition:transform var(--transition-normal, .2s ease);box-shadow:0 1px 3px #0003}.ds-toggle__label{font-size:var(--text-lg, 16px);color:var(--color-fg-primary);-webkit-user-select:none;user-select:none}.ds-toggle--xs .ds-toggle__track{width:calc(var(--icon-1, 16px) * 1.75);height:var(--icon-1, 16px);border-radius:calc(var(--icon-1, 16px) / 2);padding:2px}.ds-toggle--xs .ds-toggle__thumb{width:calc(var(--icon-1, 16px) - 4px);height:calc(var(--icon-1, 16px) - 4px)}.ds-toggle--xs .ds-toggle__input:checked+.ds-toggle__track .ds-toggle__thumb{transform:translate(calc(var(--icon-1, 16px) * .75))}.ds-toggle--xs .ds-toggle__label{font-size:var(--text-sm, 12px)}.ds-toggle--s .ds-toggle__track{width:calc(var(--icon-2, 20px) * 1.75);height:var(--icon-2, 20px);border-radius:calc(var(--icon-2, 20px) / 2);padding:2px}.ds-toggle--s .ds-toggle__thumb{width:calc(var(--icon-2, 20px) - 4px);height:calc(var(--icon-2, 20px) - 4px)}.ds-toggle--s .ds-toggle__input:checked+.ds-toggle__track .ds-toggle__thumb{transform:translate(calc(var(--icon-2, 20px) * .75))}.ds-toggle--s .ds-toggle__label{font-size:var(--text-md, 14px)}.ds-toggle--m .ds-toggle__track{width:calc(var(--icon-3, 24px) * 1.75);height:var(--icon-3, 24px);border-radius:calc(var(--icon-3, 24px) / 2);padding:2px}.ds-toggle--m .ds-toggle__thumb{width:calc(var(--icon-3, 24px) - 4px);height:calc(var(--icon-3, 24px) - 4px)}.ds-toggle--m .ds-toggle__input:checked+.ds-toggle__track .ds-toggle__thumb{transform:translate(calc(var(--icon-3, 24px) * .75))}.ds-toggle--m .ds-toggle__label{font-size:var(--text-lg, 16px)}.ds-toggle--l .ds-toggle__track{width:calc(var(--icon-4, 28px) * 1.75);height:var(--icon-4, 28px);border-radius:calc(var(--icon-4, 28px) / 2);padding:3px}.ds-toggle--l .ds-toggle__thumb{width:calc(var(--icon-4, 28px) - 6px);height:calc(var(--icon-4, 28px) - 6px)}.ds-toggle--l .ds-toggle__input:checked+.ds-toggle__track .ds-toggle__thumb{transform:translate(calc(var(--icon-4, 28px) * .75))}.ds-toggle--l .ds-toggle__label{font-size:var(--text-lg, 16px)}.ds-checkbox{display:inline-flex;align-items:center;gap:var(--space-3, 12px);cursor:pointer}.ds-checkbox--disabled{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed}.ds-checkbox__input{position:absolute;opacity:0;pointer-events:none}.ds-checkbox__box{position:relative;display:flex;align-items:center;justify-content:center;background-color:var(--color-surface-1);border:1px solid var(--field-border);transition:background-color var(--transition-normal, .2s ease),border-color var(--transition-normal, .2s ease);flex-shrink:0;border-radius:4px}.ds-checkbox__input:focus-visible+.ds-checkbox__box{box-shadow:var(--focus-ring)}.ds-checkbox__input:checked+.ds-checkbox__box{background-color:var(--color-accent-default);border-color:var(--color-accent-default)}.ds-checkbox__input:not(:checked)+.ds-checkbox__box:hover{border-color:var(--field-border-active)}.ds-checkbox__icon{color:var(--color-accent-fg)}.ds-checkbox__label{font-size:var(--text-lg, 16px);color:var(--color-fg-primary);-webkit-user-select:none;user-select:none}.ds-checkbox--xs .ds-checkbox__box{width:var(--icon-1, 16px);height:var(--icon-1, 16px)}.ds-checkbox--xs .ds-checkbox__label{font-size:var(--text-sm, 12px)}.ds-checkbox--s .ds-checkbox__box{width:var(--icon-2, 20px);height:var(--icon-2, 20px)}.ds-checkbox--s .ds-checkbox__label{font-size:var(--text-md, 14px)}.ds-checkbox--m .ds-checkbox__box{width:var(--icon-3, 24px);height:var(--icon-3, 24px)}.ds-checkbox--m .ds-checkbox__label{font-size:var(--text-lg, 16px)}.ds-checkbox--l .ds-checkbox__box{width:var(--icon-4, 28px);height:var(--icon-4, 28px)}.ds-checkbox--l .ds-checkbox__label{font-size:var(--text-lg, 16px)}.ds-radio{display:inline-flex;align-items:center;gap:var(--space-3, 12px);cursor:pointer}.ds-radio--disabled{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed}.ds-radio__input{position:absolute;opacity:0;pointer-events:none}.ds-radio__circle{position:relative;display:flex;align-items:center;justify-content:center;background-color:var(--color-surface-1);border:1px solid var(--field-border);transition:background-color var(--transition-normal, .2s ease),border-color var(--transition-normal, .2s ease);flex-shrink:0;border-radius:50%}.ds-radio__input:checked+.ds-radio__circle{background-color:var(--color-accent-default);border-color:var(--color-accent-default)}.ds-radio__input:focus-visible+.ds-radio__circle{box-shadow:var(--focus-ring)}.ds-radio__input:not(:checked)+.ds-radio__circle:hover{border-color:var(--field-border-active)}.ds-radio__dot{background-color:var(--color-accent-fg);border-radius:50%;opacity:0;transition:opacity var(--transition-normal, .2s ease)}.ds-radio__input:checked+.ds-radio__circle .ds-radio__dot{opacity:1}.ds-radio__label{font-size:var(--text-lg, 16px);color:var(--color-fg-primary);-webkit-user-select:none;user-select:none}.ds-radio--xs .ds-radio__circle{width:var(--icon-1, 16px);height:var(--icon-1, 16px)}.ds-radio--xs .ds-radio__dot{width:6px;height:6px}.ds-radio--xs .ds-radio__label{font-size:var(--text-sm, 12px)}.ds-radio--s .ds-radio__circle{width:var(--icon-2, 20px);height:var(--icon-2, 20px)}.ds-radio--s .ds-radio__dot{width:8px;height:8px}.ds-radio--s .ds-radio__label{font-size:var(--text-md, 14px)}.ds-radio--m .ds-radio__circle{width:var(--icon-3, 24px);height:var(--icon-3, 24px)}.ds-radio--m .ds-radio__dot{width:10px;height:10px}.ds-radio--m .ds-radio__label{font-size:var(--text-lg, 16px)}.ds-radio--l .ds-radio__circle{width:var(--icon-4, 28px);height:var(--icon-4, 28px)}.ds-radio--l .ds-radio__dot{width:12px;height:12px}.ds-radio--l .ds-radio__label{font-size:var(--text-lg, 16px)}.ds-skeleton{display:block;background-color:var(--color-surface-2);animation:ds-skeleton-pulse 1.5s ease-in-out infinite}@keyframes ds-skeleton-pulse{0%,to{opacity:.4}50%{opacity:.85}}.ds-skeleton--rect{border-radius:var(--radius-2, 4px)}.ds-skeleton--circle{border-radius:var(--radius-full, 9999px)}.ds-skeleton--text{height:1em;border-radius:var(--radius-2, 4px)}.ds-skeleton--pill{border-radius:var(--radius-full, 9999px)}.ds-skeleton-text{display:flex;flex-direction:column;gap:var(--space-2, 8px);width:100%}.ds-avatar__initials{font-size:.4em;font-weight:var(--font-weight-medium, 500);line-height:1;letter-spacing:.02em;-webkit-user-select:none;user-select:none}.ds-avatar img{width:100%;height:100%;border-radius:inherit;object-fit:cover;display:block}.ds-avatar{flex-shrink:0;border-radius:var(--radius-full, 9999px);display:grid;place-items:center;border:1px solid var(--color-border-default);background-color:hsl(var(--ds-avatar-h, 220) 22% 88%);color:hsl(var(--ds-avatar-h, 220) 30% 35%);overflow:hidden}[data-theme=dark] .ds-avatar,:root:not([data-theme=light]) .ds-avatar{background-color:hsl(var(--ds-avatar-h, 220) 18% 22%);color:hsl(var(--ds-avatar-h, 220) 40% 72%)}.ds-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:var(--radius-3, 6px);border:1px solid var(--table-wrap-border)}.ds-table-wrap--scroll{overflow-y:auto}.ds-table{width:100%;border-collapse:collapse;background-color:var(--color-surface-1)}.ds-table thead{background-color:var(--color-surface-2)}.ds-table th{font-family:var(--table-th-font-family);font-weight:var(--table-th-weight);font-size:var(--table-th-font-size);color:var(--table-th-color);letter-spacing:var(--table-th-tracking);text-transform:var(--table-th-text-transform);text-align:left;white-space:nowrap;-webkit-user-select:none;user-select:none;position:sticky;top:var(--ds-table-sticky-top, 0px);z-index:2;background-color:var(--color-surface-2);box-shadow:0 1px 0 var(--table-row-border)}.ds-th--sortable{cursor:pointer}.ds-th--sortable:hover{color:var(--color-fg-primary)}.ds-th--sortable:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-table td{text-align:left;color:var(--color-fg-primary);border-bottom:1px solid var(--table-row-border);vertical-align:middle}.ds-table tbody tr:last-child td{border-bottom:none}.ds-table--compact th,.ds-table--compact td{padding:var(--space-2, 8px) var(--space-3, 12px);font-size:var(--text-sm, 12px);letter-spacing:var(--tracking-sm);line-height:1.4}.ds-table--default th,.ds-table--default td{padding:var(--space-3, 12px) var(--space-4, 16px);font-size:var(--text-md, 14px);letter-spacing:var(--tracking-md)}.ds-table-row--interactive{cursor:pointer;transition:background-color var(--transition-fast, .1s ease)}.ds-table-row--interactive:hover{background-color:var(--color-state-hover)}.ds-table-row--interactive:active{background-color:var(--color-state-active)}.ds-table-row--interactive:focus-visible{outline:2px solid var(--focus-ring-color);outline-offset:-2px}.ds-table-row--selected,.ds-table-row--selected.ds-table-row--interactive:hover{background-color:var(--color-state-selected)}.ds-table-cell--center{text-align:center}.ds-table-cell--right{text-align:right}.ds-table-cell--secondary{color:var(--color-fg-secondary)}.ds-table-cell--muted{color:var(--color-fg-disabled)}.ds-table-cell--truncate{max-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ds-table-cell--nowrap{white-space:nowrap}.ds-th__inner{display:inline-flex;align-items:center;gap:var(--space-1, 4px)}.ds-th__sort-icon{flex-shrink:0;opacity:.35;transition:opacity var(--transition-fast, .1s ease)}.ds-th--sorted .ds-th__sort-icon{opacity:1;color:var(--color-accent-default)}.ds-th--sortable:hover .ds-th__sort-icon{opacity:.7}.ds-table-row--subheader td{font-family:var(--table-subrow-font);color:var(--table-subrow-color);background-color:var(--table-subrow-bg);letter-spacing:var(--table-subrow-tracking);text-transform:var(--table-subrow-transform);font-weight:var(--table-th-weight);border-top:1px solid var(--table-row-border);border-bottom:1px solid var(--table-row-border);pointer-events:none;-webkit-user-select:none;user-select:none}@keyframes ds-row-exit{to{opacity:0;transform:translateY(-3px)}}@keyframes ds-row-flash{0%{background-color:var(--color-accent-bg)}to{background-color:transparent}}.ds-table-row{transition:background-color .1s ease;transition:opacity .18s ease,transform .18s ease,background-color .1s ease}@starting-style{.ds-table-row{opacity:0;transform:translateY(-3px)}}.ds-table-row--exiting{animation:ds-row-exit .18s ease forwards;pointer-events:none}.ds-table-row--updated{animation:ds-row-flash .6s ease}@media (prefers-reduced-motion: reduce){.ds-table-row,.ds-table-row--exiting,.ds-table-row--updated{animation:none;transition:none}}.ds-empty-state{display:flex;flex-direction:column;align-items:center;text-align:center}.ds-empty-state__icon{color:var(--color-fg-disabled);flex-shrink:0;display:flex;align-items:center}.ds-empty-state--s .ds-empty-state__icon svg{width:var(--icon-3, 24px);height:var(--icon-3, 24px)}.ds-empty-state--m .ds-empty-state__icon svg,.ds-empty-state--l .ds-empty-state__icon svg{width:var(--icon-5, 48px);height:var(--icon-5, 48px)}.ds-empty-state__title{font-size:var(--text-lg, 16px);font-weight:var(--font-weight-medium, 500);color:var(--color-fg-primary);line-height:1.4}.ds-empty-state__description{font-size:var(--text-md, 14px);color:var(--color-fg-secondary);line-height:1.5;max-width:360px}.ds-empty-state--s{padding:var(--space-6, 24px);gap:var(--space-2, 8px)}.ds-empty-state--s .ds-empty-state__title{font-size:var(--text-md, 14px)}.ds-empty-state--s .ds-empty-state__description{font-size:var(--text-sm, 12px)}.ds-empty-state--m{padding:var(--space-10, 40px);gap:var(--space-3, 12px)}.ds-empty-state--l{padding:var(--space-16, 64px);gap:var(--space-4, 16px)}.ds-empty-state--l .ds-empty-state__title{font-size:var(--text-xl, 18px)}.ds-empty-state__action{margin-top:var(--space-1, 4px)}.ds-field{display:flex;flex-direction:column}.ds-field[data-disabled]{opacity:var(--state-disabled-opacity, .4);pointer-events:none;cursor:not-allowed}.ds-field-label{font-family:var(--font-ui, inherit);font-size:var(--label-font-size);font-weight:var(--font-weight-regular, 400);letter-spacing:var(--label-tracking);text-transform:var(--label-text-transform);color:var(--label-color);margin-bottom:var(--space-1, 4px)}.ds-field[data-required] .ds-field-label:after{content:" *";color:var(--color-error)}.ds-field-hint,.ds-field-error{font-size:var(--text-md, 14px);line-height:1.5;margin-top:var(--space-2, 8px)}.ds-field-hint{color:var(--color-fg-secondary)}.ds-field-error{color:var(--color-error)}[data-state=error] .ds-field-control .ds-input,[data-state=error] .ds-field-control .ds-textarea,[data-state=error] .ds-field-control .ds-select-trigger{border-color:var(--color-error)}[data-density=compact] .ds-field-hint,[data-density=compact] .ds-field-error{font-size:var(--text-sm, 12px);margin-top:var(--space-1, 4px)}.ds-stat{display:flex;flex-direction:column;gap:var(--space-1, 4px)}.ds-stat--inline{flex-direction:row;align-items:baseline;gap:var(--space-3, 12px)}.ds-stat--xs .ds-stat-label{font-size:11px}.ds-stat--xs .ds-stat-value{font-size:20px}.ds-stat--s .ds-stat-label{font-size:var(--text-sm, 12px)}.ds-stat--s .ds-stat-value{font-size:24px}.ds-stat--m .ds-stat-label{font-size:var(--text-md, 14px)}.ds-stat--m .ds-stat-value{font-size:32px}.ds-stat--l .ds-stat-label{font-size:var(--text-md, 14px)}.ds-stat--l .ds-stat-value{font-size:40px}.ds-stat-label{font-family:var(--font-ui, inherit);color:var(--color-fg-secondary);letter-spacing:var(--ui-tracking, 0);text-transform:var(--ui-text-transform, none);line-height:1.2}.ds-stat-value{font-weight:var(--font-weight-semibold, 600);color:var(--color-fg-primary);line-height:1.1;font-variant-numeric:tabular-nums}.ds-stat-delta{font-size:var(--text-sm, 12px);font-weight:var(--font-weight-medium, 500);line-height:1.2}.ds-stat-delta--up{color:var(--color-status-success)}.ds-stat-delta--down{color:var(--color-status-error)}.ds-stat-delta--neutral{color:var(--color-fg-secondary)}[data-density=compact] .ds-stat--m .ds-stat-value{font-size:24px}[data-density=compact] .ds-stat--l .ds-stat-value{font-size:32px}.ds-breadcrumb-list{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;font-family:var(--font-ui, inherit);font-size:var(--text-md, 14px)}.ds-breadcrumb-item{display:flex;align-items:center}.ds-breadcrumb-sep{padding:0 var(--space-2, 8px);color:var(--color-fg-disabled);-webkit-user-select:none;user-select:none}.ds-breadcrumb-list a{color:var(--color-fg-secondary);text-decoration:none;border-radius:var(--radius-1, 2px);transition:color var(--motion-hover, .2s ease)}.ds-breadcrumb-list a:hover{color:var(--color-fg-primary)}.ds-breadcrumb-list a:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-breadcrumb-list [aria-current=page]{color:var(--color-fg-primary);font-weight:var(--font-weight-medium, 500)}[data-density=compact] .ds-breadcrumb-list{font-size:var(--text-sm, 12px)}.ds-pagination{display:flex;align-items:center;gap:var(--space-1, 4px);font-family:var(--font-ui, inherit)}.ds-pagination-page,.ds-pagination-arrow{display:flex;align-items:center;justify-content:center;height:var(--height-2, 32px);min-width:var(--height-2, 32px);padding:0 var(--space-2, 8px);border:none;background:none;color:var(--color-fg-secondary);font-family:inherit;font-size:var(--text-md, 14px);border-radius:var(--radius-2, 4px);cursor:pointer;transition:background-color var(--motion-hover, .2s ease),color var(--motion-hover, .2s ease)}.ds-pagination-page:hover:not(:disabled),.ds-pagination-arrow:hover:not(:disabled){background-color:var(--color-state-hover);color:var(--color-fg-primary)}.ds-pagination-page:focus-visible,.ds-pagination-arrow:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-pagination-page:disabled,.ds-pagination-arrow:disabled{opacity:var(--state-disabled-opacity, .4);cursor:not-allowed}.ds-pagination-page--current{background-color:var(--color-state-selected);color:var(--color-fg-primary);font-weight:var(--font-weight-medium, 500);cursor:default}.ds-pagination-page--current:hover{background-color:var(--color-state-selected)}.ds-pagination-gap{display:flex;align-items:center;justify-content:center;min-width:var(--height-2, 32px);color:var(--color-fg-disabled);font-size:var(--text-md, 14px);-webkit-user-select:none;user-select:none}[data-density=compact] .ds-pagination-page,[data-density=compact] .ds-pagination-arrow{font-size:var(--text-sm, 12px)}@keyframes ds-drawer-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes ds-drawer-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes ds-drawer-in-right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes ds-drawer-out-right{0%{transform:translate(0)}to{transform:translate(100%)}}@keyframes ds-drawer-in-left{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes ds-drawer-out-left{0%{transform:translate(0)}to{transform:translate(-100%)}}.ds-drawer-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--color-overlay);z-index:var(--z-drawer);animation:ds-drawer-overlay-in var(--motion-enter, .3s ease)}.ds-drawer-overlay--closing{animation:ds-drawer-overlay-out var(--motion-exit, .2s ease) forwards}.ds-drawer{position:fixed;top:0;bottom:0;width:var(--ds-drawer-width, 360px);max-width:100vw;background-color:var(--color-surface-1);box-shadow:var(--shadow-3);display:flex;flex-direction:column;overflow:hidden}.ds-drawer[data-side=right]{right:0;border-radius:var(--radius-4, 8px) 0 0 var(--radius-4, 8px);animation:ds-drawer-in-right var(--motion-enter, .3s ease)}.ds-drawer[data-side=left]{left:0;border-radius:0 var(--radius-4, 8px) var(--radius-4, 8px) 0;animation:ds-drawer-in-left var(--motion-enter, .3s ease)}.ds-drawer--closing[data-side=right]{animation:ds-drawer-out-right var(--motion-exit, .2s ease) forwards}.ds-drawer--closing[data-side=left]{animation:ds-drawer-out-left var(--motion-exit, .2s ease) forwards}.ds-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:var(--space-5, 20px) var(--space-6, 24px);border-bottom:1px solid var(--color-border-light);flex-shrink:0}.ds-drawer-title{font-size:var(--text-xl, 18px);font-weight:var(--font-weight-medium, 500);color:var(--color-fg-primary);margin:0}.ds-drawer-close{display:flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;color:var(--color-fg-secondary);padding:var(--space-1, 4px);border-radius:var(--radius-2, 4px);transition:color var(--motion-hover, .2s ease)}.ds-drawer-close:hover{color:var(--color-fg-primary)}.ds-drawer-close:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-drawer-body{flex:1;overflow-y:auto;padding:var(--space-6, 24px)}.ds-drawer-footer{padding:var(--space-4, 16px) var(--space-6, 24px);border-top:1px solid var(--color-border-light);display:flex;gap:var(--space-3, 12px);flex-shrink:0}@media (max-width: 639px){.ds-drawer{width:100vw!important;border-radius:0!important}}@keyframes ds-side-page-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes ds-side-page-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes ds-side-page-in{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes ds-side-page-out{0%{transform:translate(0)}to{transform:translate(100%)}}.ds-side-page-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--color-overlay);z-index:var(--z-modal);display:flex;align-items:stretch;justify-content:flex-end;animation:ds-side-page-overlay-in .2s ease}.ds-side-page-overlay--closing{animation:ds-side-page-overlay-out .32s ease forwards}.ds-side-page{width:90vw;max-width:960px;height:100%;background-color:var(--color-surface-1);border-radius:var(--radius-4, 12px) 0 0 var(--radius-4, 12px);box-shadow:var(--shadow-2);display:flex;flex-direction:column;position:relative;animation:ds-side-page-in .35s cubic-bezier(.32,.72,0,1)}.ds-side-page--closing{animation:ds-side-page-out .32s cubic-bezier(.32,.72,0,1) forwards}.ds-side-page__close{position:absolute;top:var(--space-2, 8px);right:var(--space-2, 8px);z-index:1}.ds-side-page__header{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-6) var(--space-6) var(--space-4);padding-right:calc(var(--space-6, 24px) + 32px + var(--space-2, 8px));border-bottom:1px solid var(--color-border-light);flex-shrink:0}.ds-side-page__title{font-size:var(--text-2xl, 20px);font-weight:var(--font-weight-medium, 500);color:var(--color-fg-primary);margin:0}.ds-side-page__subheader{display:flex;flex-direction:column;gap:var(--space-4)}.ds-side-page__body{padding:var(--space-6);flex:1;overflow-y:auto;min-height:0;overscroll-behavior:contain}.ds-side-page__footer{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4) var(--space-6) var(--space-6);border-top:1px solid var(--color-border-light);background-color:var(--color-surface-1);flex-shrink:0}.ds-nav-rail{display:flex;flex-direction:column;width:240px;background-color:var(--color-surface-1);overflow:hidden;transition:width var(--motion-hover);flex-shrink:0;box-sizing:border-box}.ds-nav-rail--left{border-right:1px solid var(--color-border-light)}.ds-nav-rail--right{border-left:1px solid var(--color-border-light)}.ds-nav-rail--collapsed{width:56px}.ds-nav-rail--collapsed[data-expandable]{cursor:e-resize}.ds-nav-rail--right.ds-nav-rail--collapsed[data-expandable]{cursor:w-resize}.ds-nav-rail--collapsed[data-expandable] button,.ds-nav-rail--collapsed[data-expandable] a{cursor:pointer}.ds-nav-rail__item{position:relative;display:flex;align-items:center;gap:var(--space-3);height:var(--height-3, 44px);min-height:var(--height-3, 44px);flex-shrink:0;padding:0 var(--space-3);margin:1px 0;color:var(--color-fg-secondary);border-radius:var(--radius-3);outline:none;cursor:pointer;text-decoration:none;border:none;background:transparent;width:100%;text-align:left;box-sizing:border-box;transition:color var(--motion-hover);font-family:var(--font-ui, inherit)}.ds-nav-rail__item:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;background-color:transparent;pointer-events:none;transition:background-color var(--motion-hover);z-index:0}.ds-nav-rail__item:hover:before{background-color:var(--color-state-hover)}.ds-nav-rail__item:active:before{background-color:var(--color-state-active)}.ds-nav-rail__item[data-selected]{color:var(--color-fg-primary);font-weight:var(--font-weight-medium, 500)}.ds-nav-rail__item[data-selected]:before{background-color:var(--color-state-selected)}.ds-nav-rail__item[data-selected]:after{content:"";position:absolute;left:calc(-1 * var(--space-2));top:var(--space-2);bottom:var(--space-2);width:2px;background:var(--color-fg-primary);border-radius:0 var(--radius-1) var(--radius-1) 0}.ds-nav-rail--right .ds-nav-rail__item[data-selected]:after{left:auto;right:calc(-1 * var(--space-2));border-radius:var(--radius-1) 0 0 var(--radius-1)}.ds-nav-rail__item:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-nav-rail__item[data-disabled]{color:var(--color-fg-disabled);cursor:not-allowed;pointer-events:none}.ds-nav-rail__item[data-disabled]:before,.ds-nav-rail__item[data-disabled]:after{display:none}.ds-nav-rail__item[data-open]{box-shadow:inset 0 0 0 1px var(--color-border-strong)}.ds-nav-rail__item[data-open][data-selected]{box-shadow:inset 0 0 0 1px var(--color-border-strong),var(--focus-ring, none)}.ds-nav-rail__item[data-onboarding]{box-shadow:0 0 0 2px var(--color-accent-2)}.ds-nav-rail__icon,.ds-nav-rail__label,.ds-nav-rail__count,.ds-nav-rail__dot,.ds-nav-rail__badge-collapsed,.ds-nav-rail__badge-expanded{position:relative;z-index:1}.ds-nav-rail__icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:20px;height:20px}.ds-nav-rail__label{flex:1;font-size:var(--text-s, 14px);line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ds-nav-rail__count{font-size:var(--text-xs, 12px);color:var(--color-fg-secondary);min-width:16px;text-align:right;flex-shrink:0}.ds-nav-rail__count--zero{color:var(--color-fg-disabled)}.ds-nav-rail__dot{position:absolute;top:8px;right:8px;width:6px;height:6px;border-radius:var(--radius-full);background-color:var(--color-accent-default);animation:ds-nav-rail-pulse 2s ease-in-out infinite}@keyframes ds-nav-rail-pulse{0%,to{opacity:1}50%{opacity:.35}}@media (prefers-reduced-motion: reduce){.ds-nav-rail__dot{animation:none}.ds-nav-rail{transition:none}}.ds-nav-rail__badge-collapsed{position:absolute;top:6px;right:6px;line-height:1}.ds-nav-rail__header{display:flex;flex-direction:column;align-items:flex-start;padding:var(--space-2) var(--space-2) var(--space-1);flex-shrink:0}.ds-nav-rail__body{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:var(--space-1) var(--space-2)}.ds-nav-rail__footer{display:flex;flex-direction:column;padding:var(--space-1) var(--space-2) var(--space-2);flex-shrink:0}.ds-nav-rail__divider{border:none;border-top:1px solid var(--color-border-light);margin:var(--space-1) var(--space-2);flex-shrink:0}.ds-nav-rail__recents{display:flex;flex-direction:column}.ds-nav-rail__recents-toggle{display:flex;align-items:center;gap:var(--space-1);padding:var(--space-2) var(--space-3) var(--space-1);background:none;border:none;cursor:pointer;outline:none;width:100%;text-align:left;color:var(--color-fg-disabled)}.ds-nav-rail__recents-toggle:focus-visible{outline:none;box-shadow:var(--focus-ring);border-radius:var(--radius-2)}.ds-nav-rail__recents-label{flex:1;font-size:var(--text-xs, 12px);line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;letter-spacing:.04em}.ds-nav-rail__recents-chevron{flex-shrink:0;transition:transform var(--motion-hover)}.ds-nav-rail__recents-toggle--closed .ds-nav-rail__recents-chevron{transform:rotate(-90deg)}.ds-nav-rail__recents-body{display:flex;flex-direction:column}.ds-nav-rail__agent .ds-nav-rail__icon{width:24px;height:24px}.ds-nav-rail--collapsed{--_strip-offset: calc((56px - var(--height-3, 44px)) / 2)}.ds-nav-rail--collapsed .ds-nav-rail__item{justify-content:center;padding:0;width:var(--height-3, 44px);margin-left:auto;margin-right:auto}.ds-nav-rail--collapsed .ds-nav-rail__item[data-selected]:after{left:calc(-1 * var(--_strip-offset))}.ds-nav-rail--right.ds-nav-rail--collapsed .ds-nav-rail__item[data-selected]:after{left:auto;right:calc(-1 * var(--_strip-offset))}.ds-nav-rail--collapsed .ds-nav-rail__body,.ds-nav-rail--collapsed .ds-nav-rail__header,.ds-nav-rail--collapsed .ds-nav-rail__footer{padding-left:0;padding-right:0}.ds-nav-rail--collapsed .ds-nav-rail__header{align-items:center}.ds-nav-rail--collapsed .ds-nav-rail__label,.ds-nav-rail--collapsed .ds-nav-rail__count,.ds-nav-rail--collapsed .ds-nav-rail__badge-expanded{display:none}.ds-banner{display:flex;align-items:center;gap:var(--space-3, 12px);min-height:var(--height-3, 44px);padding:0 var(--space-5, 20px);width:100%;font-family:var(--font-ui, inherit);font-size:var(--text-md, 14px)}.ds-banner-icon{display:flex;align-items:center;flex-shrink:0}.ds-banner-text{flex:1;color:var(--color-fg-primary);line-height:1.5}.ds-banner-action{background:none;border:1px solid currentColor;border-radius:var(--radius-2, 4px);color:inherit;cursor:pointer;font-family:inherit;font-size:var(--text-sm, 12px);font-weight:var(--font-weight-medium, 500);padding:2px var(--space-3, 12px);white-space:nowrap;transition:opacity var(--motion-hover, .2s ease)}.ds-banner-action:hover{opacity:.8}.ds-banner-action:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-banner-dismiss{display:flex;align-items:center;background:none;border:none;color:inherit;cursor:pointer;opacity:.7;padding:0;flex-shrink:0;transition:opacity var(--motion-hover, .2s ease)}.ds-banner-dismiss:hover{opacity:1}.ds-banner-dismiss:focus-visible{outline:none;box-shadow:var(--focus-ring);border-radius:var(--radius-2, 4px)}.ds-banner--info{background:linear-gradient(var(--color-status-info-bg),var(--color-status-info-bg)),var(--color-surface-1);color:var(--color-status-info)}.ds-banner--success{background:linear-gradient(var(--color-status-success-bg),var(--color-status-success-bg)),var(--color-surface-1);color:var(--color-status-success)}.ds-banner--warning{background:linear-gradient(var(--color-status-warning-bg),var(--color-status-warning-bg)),var(--color-surface-1);color:var(--color-status-warning)}.ds-banner--error{background:linear-gradient(var(--color-status-error-bg),var(--color-status-error-bg)),var(--color-surface-1);color:var(--color-status-error)}.ds-dropdown{position:relative;display:inline-block}.ds-dropdown--full-width{display:block;width:100%}.ds-dropdown__trigger{display:inline-flex}.ds-dropdown--full-width>.ds-dropdown__trigger{display:flex;width:100%}.ds-dropdown--full-width .ds-tooltip-wrapper{width:100%;justify-content:center}@keyframes ds-dropdown-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes ds-dropdown-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-4px)}}.ds-dropdown__menu{position:fixed;z-index:var(--z-dropdown);min-width:180px;background-color:var(--color-surface-1);border:1px solid var(--color-border-default);border-radius:var(--radius-3, 6px);box-shadow:var(--shadow-2);padding:var(--space-2, 8px);animation:ds-dropdown-in var(--motion-enter, .3s ease)}.ds-dropdown__menu--closing{animation:ds-dropdown-out var(--motion-exit, .2s ease) forwards}.ds-dropdown__item{display:flex;align-items:center;gap:var(--space-2, 8px);width:100%;height:var(--height-2, 32px);padding:0 var(--space-3, 12px);background:none;border:none;border-radius:var(--radius-2, 4px);cursor:pointer;font-size:var(--text-md, 14px);font-family:var(--font-ui, inherit);font-weight:var(--font-weight-regular, 400);color:var(--color-fg-secondary);text-align:left;text-decoration:none;transition:background-color var(--transition-normal, .2s ease),color var(--transition-normal, .2s ease)}.ds-dropdown__item:hover:not(:disabled):not([aria-disabled=true]),.ds-dropdown__item:focus-visible{background-color:var(--color-state-hover);color:var(--color-fg-primary);outline:none}.ds-dropdown__item:disabled,.ds-dropdown__item[aria-disabled=true]{color:var(--color-fg-disabled);cursor:not-allowed}.ds-dropdown__item--danger{color:var(--color-status-error)}.ds-dropdown__item--danger:hover:not(:disabled):not([aria-disabled=true]){background-color:var(--color-status-error-bg);color:var(--color-status-error)}.ds-dropdown__item-icon{display:flex;align-items:center;flex-shrink:0}.ds-dropdown__item-label{flex:1}.ds-dropdown__item-shortcut{font-size:var(--text-sm, 12px);color:var(--color-fg-disabled);padding-left:var(--space-3, 12px)}.ds-dropdown__separator{height:1px;background-color:var(--color-border-light);margin:var(--space-2, 8px) 0}.ds-dropdown__section{padding:var(--space-2, 8px) var(--space-2, 8px) var(--space-2, 8px)}.ds-dropdown__section-label{font-size:var(--text-sm, 12px);color:var(--color-fg-secondary);margin-bottom:var(--space-2, 8px);padding:0 var(--space-1, 4px)}.ds-progress{display:flex;align-items:center;gap:var(--space-2, 8px);width:100%}.ds-progress__track{flex:1;background-color:var(--color-state-selected);border-radius:var(--radius-full, 9999px);overflow:hidden}.ds-progress__fill{height:100%;border-radius:var(--radius-full, 9999px);transition:width .35s ease}.ds-progress--instant .ds-progress__fill{transition:none}.ds-progress__fill--default{background-color:var(--color-accent-default)}.ds-progress__fill--success{background-color:var(--color-status-success)}.ds-progress__fill--warning{background-color:var(--color-status-warning)}.ds-progress__fill--danger{background-color:var(--color-status-error)}.ds-progress--xs .ds-progress__track{height:var(--space-1, 4px)}.ds-progress--s .ds-progress__track{height:var(--space-2, 8px)}.ds-progress--m .ds-progress__track{height:var(--space-3, 12px)}.ds-progress--l .ds-progress__track{height:var(--space-6, 24px)}.ds-progress__value{flex-shrink:0;font-size:var(--text-sm, 12px);color:var(--color-fg-secondary);font-family:var(--font-ui, inherit);min-width:2.5ch;text-align:right}@media (prefers-reduced-motion: reduce){.ds-progress__fill{transition:none}}.ds-toast-container{position:fixed;z-index:var(--z-toast);display:flex;flex-direction:column;gap:var(--space-2, 8px);pointer-events:none}.ds-toast-container--bottom-right{bottom:var(--space-6, 24px);right:var(--space-6, 24px);align-items:flex-end}.ds-toast-container--bottom-left{bottom:var(--space-6, 24px);left:var(--space-6, 24px);align-items:flex-start}.ds-toast-container--top-right{top:var(--space-6, 24px);right:var(--space-6, 24px);align-items:flex-end}.ds-toast-container--top-left{top:var(--space-6, 24px);left:var(--space-6, 24px);align-items:flex-start}.ds-toast-container--bottom-center{bottom:var(--space-6, 24px);left:50%;transform:translate(-50%);align-items:center}.ds-toast{display:flex;align-items:center;gap:var(--space-3, 12px);padding:var(--space-3, 12px);border-radius:var(--radius-3, 6px);box-shadow:var(--shadow-3);font-size:var(--text-md, 14px);pointer-events:all;max-width:380px;min-width:240px;opacity:0;transform:translateY(8px);transition:opacity var(--motion-enter, .3s ease),transform var(--motion-enter, .3s ease)}.ds-toast--visible{opacity:1;transform:translateY(0)}.ds-toast--default{background:linear-gradient(var(--color-status-info-bg),var(--color-status-info-bg)),var(--color-surface-1);color:var(--color-status-info)}.ds-toast--success{background:linear-gradient(var(--color-status-success-bg),var(--color-status-success-bg)),var(--color-surface-1);color:var(--color-status-success)}.ds-toast--warning{background:linear-gradient(var(--color-status-warning-bg),var(--color-status-warning-bg)),var(--color-surface-1);color:var(--color-status-warning)}.ds-toast--error{background:linear-gradient(var(--color-status-error-bg),var(--color-status-error-bg)),var(--color-surface-1);color:var(--color-status-error)}.ds-toast__icon{flex-shrink:0;display:flex;align-items:center}.ds-toast__message{flex:1;color:var(--color-fg-primary);line-height:1.5}.ds-toast__close{flex-shrink:0;background:none;border:none;cursor:pointer;color:inherit;opacity:.7;padding:0;display:flex;align-items:center;transition:opacity var(--transition-normal, .2s ease)}.ds-toast__close:hover{opacity:1}.ds-toast__close:focus-visible{outline:none;box-shadow:var(--focus-ring);border-radius:var(--radius-2, 4px)}.ds-tool-card{border-radius:var(--radius-3);overflow:hidden}.ds-tool-card .ds-accordion__header{font-size:var(--text-sm, 12px)}.ds-tool-card__title-row{display:flex;align-items:center;gap:var(--space-2, 8px);min-width:0}.ds-tool-card__icon{display:inline-flex;flex-shrink:0;color:var(--color-fg-secondary)}.ds-tool-card__label{font-family:var(--font-mono, monospace);font-size:var(--text-sm, 12px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ds-tool-card__body{display:flex;flex-direction:column;gap:var(--space-3, 12px)}.ds-tool-card--running .ds-accordion__icon{display:none}.ds-tool-card--running .ds-accordion__header{cursor:default;pointer-events:none}.ds-tool-card--bubble{display:flex;align-items:center;padding:var(--space-3, 12px);background:var(--color-surface-1);color:var(--color-fg-secondary)}.ds-streaming-text{white-space:pre-wrap}.ds-cursor{display:inline-block;margin-left:2px;background:currentColor;opacity:.8;vertical-align:text-bottom;animation:ds-cursor-blink 1s steps(2,end) infinite}.ds-cursor--line{width:2px;height:1.1em}.ds-cursor--block{width:.5em;height:1em}@keyframes ds-cursor-blink{50%{opacity:0}}@media (prefers-reduced-motion: reduce){.ds-cursor{animation:none;opacity:.6}}.ds-reasoning__title{display:flex;align-items:center;gap:var(--space-2, 8px)}.ds-reasoning__icon{color:var(--color-fg-secondary);flex-shrink:0}.ds-step-indicator{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3, 12px)}.ds-step-indicator__dots{display:flex;gap:var(--space-2, 8px);align-items:center}.ds-step-indicator__dot{width:18px;height:6px;border-radius:var(--radius-full, 9999px);border:none;padding:0;background:var(--color-border-default);cursor:default;transition:width var(--transition-fast, .15s ease),background-color var(--transition-fast, .15s ease);display:inline-flex;align-items:center;justify-content:center;color:transparent}.ds-step-indicator__dot:not(:disabled){cursor:pointer}.ds-step-indicator__dot:not(:disabled):hover{background:var(--color-fg-secondary)}.ds-step-indicator__dot--active{background:var(--color-accent-default);width:28px}.ds-step-indicator__dot--done{background:var(--color-accent-default);color:#fff}.ds-step-indicator__dot:disabled:not(.ds-step-indicator__dot--active):not(.ds-step-indicator__dot--done){opacity:.5}.ds-step-indicator__counter{font-variant-numeric:tabular-nums;letter-spacing:.02em}.ds-chat-message{display:flex;flex-direction:column;position:relative}.ds-chat-message--user{align-items:flex-end;padding-left:10%}.ds-chat-message--user .ds-chat-message__bubble{position:relative;max-width:80%;padding:var(--space-3, 12px) var(--space-4, 16px);background:var(--color-surface-1);border-radius:var(--radius-4, 8px) var(--radius-4, 8px) 0 var(--radius-4, 8px);overflow-wrap:break-word;word-break:break-word}.ds-chat-message--user .ds-chat-message__bubble:after{content:"";position:absolute;bottom:0;right:-6px;width:0;height:0;border-style:solid;border-width:6px 0 0 6px;border-color:transparent transparent transparent var(--color-surface-1)}.ds-chat-message--user .ds-chat-message__footer{margin-top:var(--space-1, 4px);margin-bottom:var(--space-2, 8px);display:flex;justify-content:flex-end}.ds-chat-message--assistant{padding-left:var(--space-2, 8px);padding-right:10%}.ds-chat-message--assistant .ds-chat-message__footer{margin-top:var(--space-1, 4px);margin-bottom:var(--space-2, 8px);display:flex;align-items:center;gap:var(--space-1, 4px)}.ds-chat-message--tool{padding-left:var(--space-2, 8px)}.ds-chat-message--system{align-items:center;padding:var(--space-1, 4px) 0}.ds-chat-message__system-label{font-size:var(--text-sm, 12px);color:var(--color-fg-secondary);background:var(--color-state-selected);padding:var(--space-1, 4px) var(--space-3, 12px);border-radius:var(--radius-full, 9999px)}.ds-chat-message__attachments{display:flex;flex-wrap:wrap;gap:var(--space-2, 8px);margin-bottom:var(--space-3, 12px)}.ds-chat-message:has(.ds-chat-message__footer) .ds-chat-message__body>*:last-child,.ds-chat-message:has(.ds-chat-message__footer) .ds-chat-message__bubble>*:last-child{margin-bottom:0}.ds-message-action{display:inline-flex;flex-shrink:0;opacity:0;transition:opacity var(--transition-fast)}.ds-chat-message--assistant:hover .ds-message-action,.ds-chat-message--user:hover .ds-message-action,.ds-message-action:focus-within{opacity:1}@media (hover: none){.ds-message-action{opacity:1}}.ds-chat-message__timestamp{font-size:var(--text-xs, 11px);color:var(--color-fg-secondary);white-space:nowrap;align-items:center;margin-left:var(--space-3, 12px)}.ds-chat-message--user .ds-chat-message__footer .ds-chat-message__timestamp{margin-left:0;margin-right:var(--space-3, 12px)}.ds-prompt-input{display:flex;gap:var(--space-3);background-color:var(--color-surface-0)}.ds-prompt-input__file-input{display:none}.ds-prompt-input__box{flex:1;display:flex;flex-direction:column;gap:var(--space-3);border:1px solid var(--color-border-default);border-radius:var(--radius-3);padding:var(--space-3);box-shadow:var(--shadow-1);transition:border-color var(--transition-fast),background-color var(--transition-fast);position:relative}.ds-prompt-input__box:hover{border-color:var(--color-border-strong)}.ds-prompt-input__box:focus-within{border-color:var(--color-border-focus);box-shadow:var(--focus-ring)}.ds-prompt-input__box--dragging{border-color:var(--color-accent-default)!important;background-color:var(--color-accent-bg)}.ds-prompt-input__drag-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-3);border:2px dashed var(--color-accent-default);background:var(--color-accent-bg);z-index:10;pointer-events:none;color:var(--color-accent-default);font-size:var(--text-md);font-family:inherit}.ds-prompt-input__textarea{resize:none;background-color:transparent;border:none;color:var(--color-fg-primary);font-size:var(--text-md);font-family:inherit;outline:none;width:100%}.ds-prompt-input__textarea--anim{caret-color:transparent}.ds-prompt-input__anim{position:absolute;top:var(--space-3);left:var(--space-3);right:var(--space-3);pointer-events:none;-webkit-user-select:none;user-select:none;font-size:var(--text-md);font-family:inherit;line-height:1.4;color:var(--color-fg-secondary);opacity:.78;display:flex;align-items:baseline;flex-wrap:nowrap;overflow:hidden;white-space:nowrap;text-overflow:clip}.ds-prompt-input__anim-text{display:inline-block;white-space:nowrap}.ds-prompt-input__anim-cursor{display:inline-block;width:.55ch;height:1.05em;margin-left:1px;background:currentColor;transform:translateY(.16em);animation:ds-prompt-cursor-blink 1.05s steps(1) infinite;flex-shrink:0}@keyframes ds-prompt-cursor-blink{0%,50%{opacity:1}50.01%,to{opacity:0}}.ds-prompt-input__images{display:flex;gap:var(--space-2);flex-wrap:wrap}.ds-prompt-input__image-thumb{position:relative;width:56px;height:56px;border-radius:var(--radius-3);overflow:hidden;border:1px solid var(--color-border-default)}.ds-prompt-input__image-thumb img{width:100%;height:100%;object-fit:cover}.ds-prompt-input__image-remove{position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:50%;background-color:var(--color-overlay);border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;line-height:1}.ds-prompt-input__attachments{display:flex;flex-wrap:wrap;gap:var(--space-2)}.ds-prompt-input__badge-content{display:flex;align-items:center;gap:var(--space-2)}.ds-prompt-input__uploading{color:var(--color-fg-secondary);font-size:var(--text-sm)}.ds-prompt-input__remove-btn{background:none;border:none;cursor:pointer;padding:0;display:flex;color:var(--color-fg-primary)}.ds-prompt-input__warnings{display:flex;flex-direction:column;gap:var(--space-2)}.ds-prompt-input__warning{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius-3);background:var(--color-state-warning-subtle, var(--color-surface-1));color:var(--color-fg-primary);font-size:var(--text-sm)}.ds-prompt-input__warning-close{background:none;border:none;cursor:pointer;padding:0;display:flex;color:inherit;flex-shrink:0}.ds-prompt-input__toolbar{display:flex;align-items:center;gap:var(--space-2)}.ds-prompt-input__spacer{flex:1}.ds-model-picker{position:relative;display:inline-flex}.ds-model-picker__trigger{display:inline-flex;align-items:center;gap:var(--space-2, 8px);padding:4px var(--space-2, 8px);border:1px solid var(--color-border-default);border-radius:var(--radius-3);background:transparent;color:var(--color-fg-primary);font-size:var(--text-sm);font-family:inherit;cursor:pointer;transition:border-color var(--transition-fast),background-color var(--transition-fast);white-space:nowrap}.ds-model-picker__trigger:hover{border-color:var(--color-border-strong);background:var(--color-state-hover)}.ds-model-picker__trigger-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ds-model-picker__menu{background:var(--color-surface-1);border:1px solid var(--color-border-default);border-radius:var(--radius-3);box-shadow:var(--shadow-2);padding:var(--space-1, 4px);min-width:200px;max-height:320px;overflow-y:auto}.ds-model-picker__separator{height:1px;background:var(--color-border-light);margin:var(--space-1, 4px) 0}.ds-model-picker__group-label{padding:var(--space-1, 4px) var(--space-2, 8px);font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--color-fg-secondary)}.ds-model-picker__group-label[data-tier=fast]{color:var(--data-5-fg)}.ds-model-picker__group-label[data-tier=standard]{color:var(--data-3-fg)}.ds-model-picker__group-label[data-tier=premium]{color:var(--data-6-fg)}.ds-model-picker__item{display:flex;align-items:center;gap:var(--space-2, 8px);width:100%;padding:var(--space-2, 8px) var(--space-2, 8px);border:none;border-radius:var(--radius-2);background:transparent;color:var(--color-fg-primary);font-size:var(--text-sm);font-family:inherit;cursor:pointer;text-align:left;transition:background-color var(--transition-fast)}.ds-model-picker__item:hover{background:var(--color-state-hover)}.ds-model-picker__item--active{background:var(--color-state-selected)}.ds-model-picker__item--auto{background:var(--color-accent-bg)}.ds-model-picker__item--auto:hover{background:var(--color-accent-bg);filter:brightness(1.1)}.ds-model-picker__item-icon{display:inline-flex;flex-shrink:0;color:var(--color-fg-secondary)}.ds-model-picker__item-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ds-sources-panel{display:flex;flex-direction:column;gap:var(--space-1, 4px)}.ds-sources-panel__title{font-size:var(--text-xs, 11px);font-weight:600;color:var(--color-fg-secondary);text-transform:uppercase;letter-spacing:.08em;padding:0 var(--space-1, 4px);margin-bottom:var(--space-1, 4px)}.ds-sources-panel .ds-accordion__header{font-size:var(--text-sm, 12px)}.ds-sources-panel__row{display:flex;align-items:center;gap:var(--space-2, 8px);padding:var(--space-2, 8px) var(--space-3, 12px);border-radius:var(--radius-3, 6px);background:var(--color-surface-1);font-size:var(--text-sm, 12px);cursor:default}.ds-sources-panel__row--clickable{cursor:pointer}.ds-sources-panel__row--clickable:hover .ds-sources-panel__filename{color:var(--color-accent-default);text-decoration:underline}.ds-sources-panel__filename{font-weight:400;color:var(--color-fg-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.ds-sources-panel__pages{color:var(--color-fg-secondary);flex-shrink:0;font-variant-numeric:tabular-nums}.ds-sources-panel__snippet{font-size:var(--text-sm, 12px);color:var(--color-fg-secondary);line-height:1.5;padding:var(--space-1, 4px) var(--space-2, 8px);border-left:2px solid var(--color-border-default);margin:var(--space-1, 4px) 0}.ds-sources-panel__snippet--clickable{cursor:pointer}.ds-sources-panel__snippet--clickable:hover{border-left-color:var(--color-accent-default);color:var(--color-fg-primary)}.ds-sources-panel__more{font-size:var(--text-sm, 12px);color:var(--color-accent-default);background:none;border:none;padding:var(--space-1, 4px) var(--space-1, 4px);cursor:pointer;text-align:left}.ds-sources-panel__more:hover{text-decoration:underline}.ds-sources-panel--compact .ds-sources-panel__compact-row{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-sm, 12px);padding:var(--space-1) 0;cursor:default}.ds-sources-panel--compact .ds-sources-panel__compact-row--clickable{cursor:pointer}.ds-sources-panel--compact .ds-sources-panel__compact-row--clickable:hover .ds-sources-panel__filename{color:var(--color-accent-default);text-decoration:underline}.ds-sources-panel--compact .ds-sources-panel__compact-icon{flex-shrink:0;color:var(--color-fg-secondary)}.ds-sources-panel--compact .ds-sources-panel__filename{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ds-sources-panel--compact .ds-sources-panel__pages{flex-shrink:0}.ds-token-counter{display:flex;flex-direction:column;gap:var(--space-1)}.ds-token-counter__track{width:100%;background-color:var(--color-state-selected);border-radius:var(--radius-full);overflow:hidden}.ds-token-counter--s .ds-token-counter__track{height:4px}.ds-token-counter--m .ds-token-counter__track{height:6px}.ds-token-counter__fill{height:100%;border-radius:var(--radius-full);transition:width .35s ease,background-color .35s ease}.ds-token-counter__fill--normal{background-color:var(--color-fg-secondary)}.ds-token-counter__fill--warning{background-color:var(--data-2-fg)}.ds-token-counter__fill--error{background-color:var(--data-1-fg)}.ds-token-counter__label{font-size:var(--text-sm, 12px);font-family:var(--font-mono, monospace);color:var(--color-fg-secondary);display:flex;justify-content:space-between}.ds-token-counter__label--normal{color:var(--color-fg-secondary)}.ds-token-counter__label--warning{color:var(--data-2-fg)}.ds-token-counter__label--error{color:var(--data-1-fg)}.ds-confidence-bar{display:inline-flex;align-items:center;gap:var(--space-2)}.ds-confidence-bar--block{display:flex}.ds-confidence-bar__segments{display:flex;gap:2px;align-items:center}.ds-confidence-bar__seg{border-radius:var(--radius-full);flex-shrink:0;opacity:.2}.ds-confidence-bar__seg--filled{opacity:1}.ds-confidence-bar--xs .ds-confidence-bar__seg{width:8px;height:3px}.ds-confidence-bar--s .ds-confidence-bar__seg{width:10px;height:4px}.ds-confidence-bar--low .ds-confidence-bar__seg{background-color:var(--data-1-fg)}.ds-confidence-bar--medium .ds-confidence-bar__seg{background-color:var(--data-2-fg)}.ds-confidence-bar--high .ds-confidence-bar__seg{background-color:var(--data-4-fg)}.ds-confidence-bar__label{font-size:var(--text-sm, 12px);color:var(--color-fg-secondary);white-space:nowrap}.ds-diff-view{font-family:var(--font-mono, monospace);font-size:var(--text-sm, 12px);border-radius:var(--radius-3);border:1px solid var(--color-border-light);overflow:hidden}.ds-diff-view__title{padding:var(--space-2) var(--space-3);font-family:var(--font-ui, inherit);font-size:var(--text-sm, 12px);font-weight:600;color:var(--color-fg-secondary);border-bottom:1px solid var(--color-border-light);background:var(--color-surface-1)}.ds-diff-view__body{overflow-x:auto;overflow-y:auto}.ds-diff-view__line{display:flex;align-items:stretch;min-width:0}.ds-diff-view__line--add{background-color:var(--data-4-bg)}.ds-diff-view__line--remove{background-color:var(--data-1-bg)}.ds-diff-view__line--context{background-color:transparent}.ds-diff-view__lineno{flex-shrink:0;width:3.5ch;padding:2px var(--space-2);text-align:right;color:var(--color-fg-secondary);opacity:.5;border-right:1px solid var(--color-border-light);-webkit-user-select:none;user-select:none}.ds-diff-view__prefix{flex-shrink:0;width:1.5ch;padding:2px 0 2px var(--space-2);-webkit-user-select:none;user-select:none}.ds-diff-view__line--add .ds-diff-view__prefix{color:var(--data-4-fg)}.ds-diff-view__line--remove .ds-diff-view__prefix{color:var(--data-1-fg)}.ds-diff-view__line--context .ds-diff-view__prefix{color:var(--color-fg-secondary);opacity:.4}.ds-diff-view__text{flex:1;padding:2px var(--space-2) 2px var(--space-1);white-space:pre;min-width:0;color:var(--color-fg-primary)}.ds-diff-view--wrap .ds-diff-view__text{white-space:pre-wrap;word-break:break-all}.ds-diff-view__line--context .ds-diff-view__text{color:var(--color-fg-secondary)}.ds-diff-view--split .ds-diff-view__body{display:flex}.ds-diff-view__split-col{flex:1;min-width:0;overflow-x:auto}.ds-diff-view__split-col+.ds-diff-view__split-col{border-left:1px solid var(--color-border-light)}.ds-message-feedback{display:inline-flex;gap:var(--space-2, 8px)}.ds-message-feedback__btn{display:inline-flex;align-items:center;justify-content:center;padding:4px;background:none;border:none;border-radius:var(--radius-3);color:var(--color-fg-secondary);cursor:pointer;transition:color var(--transition-fast),background var(--transition-fast),opacity var(--transition-fast)}.ds-message-feedback__btn:hover{color:var(--color-fg-primary);background:var(--color-state-hover)}.ds-message-feedback__btn:focus-visible{outline:none;box-shadow:var(--focus-ring)}.ds-message-feedback__btn--liked{color:var(--color-accent-default);cursor:default;pointer-events:none}.ds-message-feedback__btn--disliked{color:var(--color-status-error);cursor:default;pointer-events:none}.ds-message-feedback.ds-message-feedback--voted{opacity:1}.ds-message-footer{display:inline-flex;align-items:center;gap:var(--space-2, 8px)}.ds-message-footer__timestamp{font-size:var(--text-xs, 11px);color:var(--color-fg-secondary);white-space:nowrap}.ds-thinking-dot{display:inline-flex;align-items:center;gap:var(--space-2, 8px)}.ds-thinking-dot__pulse{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--color-accent-default);flex-shrink:0;animation:ds-thinking-pulse 1.4s ease-in-out infinite}.ds-thinking-dot__label{font-size:var(--text-xs, 11px);color:var(--color-fg-secondary);animation:ds-thinking-color 2s ease-in-out infinite}@keyframes ds-thinking-pulse{0%,to{opacity:.3;transform:scale(1)}50%{opacity:1;transform:scale(1.3)}}@keyframes ds-thinking-color{0%,to{color:var(--color-fg-secondary)}50%{color:var(--color-fg-primary)}}.ds-coachmark__spotlight{position:fixed;pointer-events:none;border-radius:var(--radius-3);z-index:var(--z-tooltip);--_overlay: transparent;--_ring: var(--color-accent-2);box-shadow:0 0 0 2px var(--_ring),0 0 0 9999px var(--_overlay);opacity:0;transition:opacity var(--motion-exit, .2s ease)}.ds-coachmark__spotlight--overlay{--_overlay: var(--color-overlay, rgba(14, 15, 17, .65))}.ds-coachmark__spotlight--no-ring{--_ring: transparent}.ds-coachmark__spotlight--visible{opacity:1;transition:opacity var(--motion-enter, .3s ease)}.ds-coachmark__bubble{width:280px;background:var(--color-surface-3);border:1px solid var(--color-border-default);border-radius:var(--radius-4, 8px);box-shadow:var(--shadow-2);z-index:calc(var(--z-tooltip) + 1);display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-4);outline:none;opacity:0;transition:opacity var(--motion-exit, .2s ease)}.ds-coachmark__bubble--visible{opacity:1;transition:opacity var(--motion-enter, .3s ease)}.ds-coachmark__title{font-size:var(--text-s, 14px);font-weight:var(--font-weight-medium, 500);color:var(--color-fg-primary);line-height:1.3;font-family:var(--font-ui, inherit);padding-right:28px}.ds-coachmark__body{font-size:var(--text-s, 14px);color:var(--color-fg-secondary);line-height:1.5;font-family:var(--font-ui, inherit)}.ds-coachmark__close{position:absolute;top:var(--space-3);right:var(--space-3);display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;background:transparent;color:var(--color-fg-secondary);border-radius:var(--radius-2);cursor:pointer;outline:none;transition:color var(--motion-hover),background-color var(--motion-hover)}.ds-coachmark__close:hover{background-color:var(--color-state-hover);color:var(--color-fg-primary)}.ds-coachmark__close:active{background-color:var(--color-state-active)}.ds-coachmark__close:focus-visible{box-shadow:var(--focus-ring)}.ds-coachmark__footer{display:flex;align-items:center;gap:var(--space-2)}.ds-coachmark__counter{font-size:var(--text-xs, 12px);color:var(--color-fg-disabled);font-family:var(--font-ui, inherit);flex:1}.ds-coachmark__footer-nav{display:flex;align-items:center;gap:var(--space-2)}.ds-coachmark__bubble--top:after{content:"";position:absolute;top:100%;left:calc(50% + var(--arrow-offset, 0px));transform:translate(-50%);border:10px solid transparent;border-top-color:var(--color-border-default)}.ds-coachmark__bubble--top:before{content:"";position:absolute;top:100%;left:calc(50% + var(--arrow-offset, 0px));transform:translate(-50%);border:9px solid transparent;border-top-color:var(--color-surface-3);z-index:1}.ds-coachmark__bubble--bottom:after{content:"";position:absolute;bottom:100%;left:calc(50% + var(--arrow-offset, 0px));transform:translate(-50%);border:10px solid transparent;border-bottom-color:var(--color-border-default)}.ds-coachmark__bubble--bottom:before{content:"";position:absolute;bottom:100%;left:calc(50% + var(--arrow-offset, 0px));transform:translate(-50%);border:9px solid transparent;border-bottom-color:var(--color-surface-3);z-index:1}.ds-coachmark__bubble--left:after{content:"";position:absolute;left:100%;top:50%;transform:translateY(-50%);border:10px solid transparent;border-left-color:var(--color-border-default)}.ds-coachmark__bubble--left:before{content:"";position:absolute;left:100%;top:50%;transform:translateY(-50%);border:9px solid transparent;border-left-color:var(--color-surface-3);z-index:1}.ds-coachmark__bubble--right:after{content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%);border:10px solid transparent;border-right-color:var(--color-border-default)}.ds-coachmark__bubble--right:before{content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%);border:9px solid transparent;border-right-color:var(--color-surface-3);z-index:1}@keyframes ds-shake{0%{transform:translate(0)}15%{transform:translate(-6px)}30%{transform:translate(6px)}45%{transform:translate(-4px)}60%{transform:translate(4px)}75%{transform:translate(-2px)}90%{transform:translate(2px)}to{transform:translate(0)}}.ds-shake{animation:ds-shake .45s var(--easing-standard, cubic-bezier(.2, 0, 0, 1))}@media (prefers-reduced-motion: reduce){.ds-shake{animation:none}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donkit-ai/design-system",
3
- "version": "1.4.65",
3
+ "version": "1.4.67",
4
4
  "description": "Donkit Design System - minimal design tokens and React components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",