:where(.demo-chat,.demo-prompt-shell,.demo-streaming,.demo-activity,.demo-todos,.demo-approval,.demo-loading,.demo-citations,.demo-scroller-shell){--aiui-background: var(--background, #070707);--aiui-surface: var(--surface, #121212);--aiui-surface-strong: var(--surface-strong, #171717);--aiui-foreground: var(--foreground, #f4f4f4);--aiui-muted: var(--muted-foreground, #9a9a9a);--aiui-faint: var(--faint, #666);--aiui-border: var(--border, rgba(255, 255, 255, .1));--aiui-border-soft: var(--border-soft, rgba(255, 255, 255, .065));--aiui-selected: var(--selected, rgba(255, 255, 255, .085));--aiui-accent: var(--accent, #d7ff4f);--aiui-code: var(--code, "IBM Plex Mono", "SFMono-Regular", Consolas, monospace);width:min(100%,520px);color:var(--aiui-foreground);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}:where(.demo-chat,.demo-prompt-shell,.demo-streaming,.demo-activity,.demo-todos,.demo-approval,.demo-loading,.demo-citations,.demo-scroller-shell),:where(.demo-chat,.demo-prompt-shell,.demo-streaming,.demo-activity,.demo-todos,.demo-approval,.demo-loading,.demo-citations,.demo-scroller-shell) *{box-sizing:border-box}:where(.demo-chat,.demo-prompt-shell,.demo-streaming,.demo-activity,.demo-todos,.demo-approval,.demo-loading,.demo-citations,.demo-scroller-shell) button,:where(.demo-chat,.demo-prompt-shell,.demo-streaming,.demo-activity,.demo-todos,.demo-approval,.demo-loading,.demo-citations,.demo-scroller-shell) input,:where(.demo-chat,.demo-prompt-shell,.demo-streaming,.demo-activity,.demo-todos,.demo-approval,.demo-loading,.demo-citations,.demo-scroller-shell) textarea{font:inherit}.demo-chat{height:280px;display:grid;grid-template-rows:1fr auto;gap:16px}.demo-chat-messages{display:grid;align-content:end;gap:10px}.demo-message{display:flex;align-items:flex-start;gap:8px}.demo-message>span{width:24px;height:24px;display:grid;place-items:center;border:1px solid var(--aiui-border);border-radius:50%;color:var(--aiui-muted)}.demo-message p{max-width:76%;margin:0;padding:9px 12px;border-radius:12px;background:var(--aiui-surface-strong);color:var(--aiui-muted);font-size:12px;line-height:1.5}.demo-message.user{flex-direction:row-reverse}.demo-message.user p{background:var(--aiui-foreground);color:var(--aiui-background)}.demo-composer{height:44px;display:flex;gap:8px;padding:5px 5px 5px 13px;border:1px solid var(--aiui-border);border-radius:14px;background:var(--aiui-surface)}.demo-composer input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--aiui-foreground);font-size:12px}.demo-composer button,.demo-prompt-actions button.is-primary{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:10px;background:var(--aiui-foreground);color:var(--aiui-background)}.demo-scroller-shell{position:relative;height:280px}.demo-scroller{height:250px;overflow:auto;padding:6px 12px 44px;scrollbar-width:none}.demo-scroller p{width:fit-content;max-width:80%;margin:8px 0;padding:9px 12px;border-radius:12px;background:var(--aiui-surface-strong);color:var(--aiui-muted);font-size:11.5px}.demo-scroller p.user{margin-left:auto;background:var(--aiui-foreground);color:var(--aiui-background)}.demo-scroller-shell>button{position:absolute;left:50%;bottom:4px;transform:translate(-50%);display:flex;align-items:center;gap:6px;height:30px;padding:0 11px;border:0;border-radius:999px;background:var(--aiui-surface-strong);color:var(--aiui-muted);font-size:10px}.demo-prompt-shell{padding:12px;border:1px solid var(--aiui-border);border-radius:16px;background:var(--aiui-surface)}.demo-prompt-shell textarea{width:100%;height:96px;resize:none;border:0;outline:0;background:transparent;color:var(--aiui-foreground);font-size:13px;line-height:1.55}.demo-prompt-actions{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.demo-prompt-actions button{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:var(--aiui-muted);font-size:11px}.demo-prompt-actions button.is-primary{width:auto;padding:0 12px;display:inline-flex}.demo-prompt-actions button:disabled{opacity:.35}.demo-streaming{padding:24px;border:1px solid var(--aiui-border);border-radius:16px;background:var(--aiui-surface)}.demo-streaming-label{display:flex;align-items:center;gap:7px;color:var(--aiui-faint);font-size:10px}.demo-streaming>p{min-height:88px;margin:18px 0;font-size:13px;line-height:1.65}.stream-cursor{display:inline-block;width:5px;height:15px;margin-left:3px;vertical-align:-2px;background:var(--aiui-accent);animation:aiui-blink .8s steps(1) infinite}.demo-streaming-footer,.demo-streaming-footer>div{display:flex;align-items:center;justify-content:space-between;gap:4px}.demo-streaming-footer{padding-top:14px;border-top:1px solid var(--aiui-border-soft)}.demo-streaming-footer button,.demo-citations>button{height:30px;display:inline-flex;align-items:center;gap:7px;border:0;border-radius:8px;background:transparent;color:var(--aiui-muted);font-size:10px}.demo-streaming-footer>div button{width:30px;justify-content:center}.demo-sources{margin-top:10px;padding:10px;border-radius:8px;background:var(--aiui-selected);color:var(--aiui-muted);font-size:10px}.demo-activity,.demo-todos,.demo-approval,.demo-loading,.demo-citations{padding:20px;border:1px solid var(--aiui-border);border-radius:16px;background:var(--aiui-surface)}.demo-activity-trigger{width:100%;display:flex;align-items:center;gap:8px;border:0;background:transparent;color:inherit;font-size:12px;text-align:left}.demo-activity-trigger svg:last-child{margin-left:auto}.activity-list{display:grid;gap:12px;margin:18px 0 0 7px;padding-left:16px;border-left:1px solid var(--aiui-border)}.activity-list p{display:flex;align-items:center;gap:9px;margin:0;color:var(--aiui-muted);font-size:11.5px}.activity-list p.is-current{color:var(--aiui-foreground)}.spin{animation:aiui-spin 1s linear infinite}.demo-card-title{display:flex;align-items:center;gap:8px;margin-bottom:14px;font-size:12px;font-weight:500}.demo-card-title span{margin-left:auto;color:var(--aiui-faint);font-family:var(--aiui-code);font-size:10px}.demo-todos label{min-height:38px;display:flex;align-items:center;gap:10px;border-top:1px solid var(--aiui-border-soft);color:var(--aiui-muted);font-size:11.5px}.demo-todos input{accent-color:var(--aiui-accent)}.approval-heading{display:flex;align-items:flex-start;gap:10px}.approval-heading>div{display:grid;gap:4px}.approval-heading strong{font-size:12px}.approval-heading span{color:var(--aiui-muted);font-size:10.5px}.demo-approval>code{display:block;margin:16px 0;padding:10px;border-radius:8px;background:var(--aiui-selected);color:var(--aiui-muted);font-family:var(--aiui-code);font-size:10px}.approval-actions{display:flex;justify-content:flex-end;gap:8px}.approval-actions button{height:32px;padding:0 11px;border:0;border-radius:8px;background:var(--aiui-selected);color:var(--aiui-muted);font-size:10px}.approval-actions button.is-primary{background:var(--aiui-foreground);color:var(--aiui-background)}.approval-result{display:flex;align-items:center;gap:8px;margin:0;color:var(--aiui-muted);font-size:11px}.demo-segmented{width:fit-content;display:flex;gap:2px;padding:3px;border-radius:999px;background:var(--aiui-selected)}.demo-segmented button{height:28px;padding:0 12px;border:0;border-radius:999px;background:transparent;color:var(--aiui-faint);font-size:10px}.demo-segmented button[aria-pressed=true]{background:var(--aiui-foreground);color:var(--aiui-background)}.thinking-line{height:120px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--aiui-muted);font-size:12px}.progress-state{display:grid;gap:12px;margin-top:42px}.progress-state>div{display:flex;justify-content:space-between;font-size:11px}.progress-state>span{height:5px;overflow:hidden;border-radius:99px;background:var(--aiui-selected)}.progress-state i{display:block;width:68%;height:100%;background:var(--aiui-accent)}.demo-citations>p{margin:0 0 18px;font-size:13px;line-height:1.65}.demo-citations sup{color:var(--aiui-accent)}.citation-list{display:grid;gap:2px;margin-top:12px}.citation-list a{display:flex;justify-content:space-between;padding:10px;border-radius:8px;color:var(--aiui-muted);font-size:10.5px;text-decoration:none}.citation-list a:hover{background:var(--aiui-selected);color:var(--aiui-foreground)}.citation-list span{color:var(--aiui-faint)}@keyframes aiui-spin{to{transform:rotate(360deg)}}@keyframes aiui-blink{50%{opacity:0}}@media(prefers-reduced-motion:reduce){:where(.demo-chat,.demo-prompt-shell,.demo-streaming,.demo-activity,.demo-todos,.demo-approval,.demo-loading,.demo-citations,.demo-scroller-shell),:where(.demo-chat,.demo-prompt-shell,.demo-streaming,.demo-activity,.demo-todos,.demo-approval,.demo-loading,.demo-citations,.demo-scroller-shell) *{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}@media(max-width:820px){:where(.demo-chat,.demo-prompt-shell,.demo-streaming,.demo-activity,.demo-todos,.demo-approval,.demo-loading,.demo-citations,.demo-scroller-shell){width:100%}.demo-streaming{padding:18px}.demo-streaming>p{font-size:12px}}:root{color-scheme:dark;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#f4f4f4;background:#070707;font-synthesis:none;--background: #070707;--surface: #121212;--surface-strong: #171717;--foreground: #f4f4f4;--muted-foreground: #9a9a9a;--faint: #666;--border: rgba(255, 255, 255, .1);--border-soft: rgba(255, 255, 255, .065);--selected: rgba(255, 255, 255, .085);--accent: #d7ff4f;--accent-ink: #101300;--header-bg: rgba(7, 7, 7, .86);--code: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace}:root[data-theme=light]{color-scheme:light;color:#171717;background:#f6f5f2;--background: #f6f5f2;--surface: #ecebe7;--surface-strong: #e4e3de;--foreground: #171717;--muted-foreground: #66645f;--faint: #8b8882;--border: rgba(0, 0, 0, .12);--border-soft: rgba(0, 0, 0, .07);--selected: rgba(0, 0, 0, .07);--header-bg: rgba(246, 245, 242, .88)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;min-height:100vh;background:var(--background);color:var(--foreground);-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.site-header{position:sticky;top:0;z-index:50;height:48px;background:var(--header-bg);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-bottom:1px solid transparent}.header-inner{width:min(1280px,calc(100% - 32px));height:48px;margin:0 auto;display:flex;align-items:center;gap:34px}.brand{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600;white-space:nowrap}.brand-mark{display:grid;place-items:center}.desktop-nav{display:flex;gap:28px;font-size:13px;color:var(--muted-foreground)}.desktop-nav a:hover,.desktop-nav a.is-current{color:var(--foreground)}.header-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.search-trigger{height:30px;min-width:102px;display:flex;align-items:center;gap:7px;padding:0 9px;border:1px solid var(--border-soft);border-radius:8px;background:var(--surface);color:var(--muted-foreground);font-size:12px}.search-trigger kbd{margin-left:auto;display:flex;align-items:center;gap:2px;font-family:var(--code);font-size:10px}.header-text-button,.header-icon-button{height:30px;border:1px solid var(--border-soft);border-radius:8px;background:transparent;color:var(--muted-foreground)}.header-text-button{padding:0 10px;font-size:11px}.header-icon-button{width:30px;display:grid;place-items:center}.header-text-button:hover,.header-icon-button:hover,.search-trigger:hover{background:var(--selected);color:var(--foreground)}.mobile-menu-button{display:none}.catalog-layout{width:min(1280px,calc(100% - 32px));margin:0 auto;display:grid;grid-template-columns:210px minmax(0,982px);gap:56px;padding:80px 0 128px}.desktop-sidebar{min-width:0}.component-nav{width:100%}.catalog-heading{width:100%;display:flex;justify-content:space-between;align-items:center;padding:0 8px 16px;border:0;background:transparent;font-size:13px}.catalog-heading span:last-child{color:var(--faint);font-family:var(--code);font-size:10px}.nav-group{margin-top:18px}.nav-group p{margin:0 8px 7px;color:var(--faint);font-family:var(--code);font-size:10px;letter-spacing:.02em;text-transform:uppercase}.nav-group ul{display:grid;gap:1px;margin:0;padding:0;list-style:none}.nav-group button{width:100%;height:30px;display:grid;grid-template-columns:24px 1fr;align-items:center;padding:0 8px;border:0;border-radius:8px;background:transparent;color:var(--muted-foreground);text-align:left;font-size:12.5px}.nav-group button:hover{color:var(--foreground)}.nav-group button.is-active{background:var(--selected);color:var(--foreground)}.component-index{color:var(--faint);font-family:var(--code);font-size:9px}.component-article{min-width:0}.mobile-breadcrumb{display:none}.eyebrow{margin:0 0 8px;color:var(--faint);font-family:var(--code);font-size:10px}h1{margin:0;font-size:30px;line-height:36px;letter-spacing:-.025em;font-weight:500}.lede{margin:8px 0 0;color:var(--muted-foreground);font-size:15px;line-height:1.55}.preview-stage{height:400px;margin-top:46px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:24px;background:#ffffff0a;padding:40px}:root[data-theme=light] .preview-stage{background:#0000000b}.doc-section,.code-section{margin-top:48px}.section-heading-row{min-height:28px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}.section-heading-row h2,.doc-section>h2{margin:0;font-size:14px;line-height:22px;font-weight:500}.package-tabs{display:flex;gap:2px}.package-tabs button{height:28px;padding:0 11px;border:0;border-radius:999px;background:transparent;color:var(--faint);font-size:10px}.package-tabs button[aria-pressed=true]{background:var(--selected);color:var(--foreground)}.command-row{min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 16px 0 20px;border-radius:14px;background:var(--surface)}.command-row code{overflow:hidden;color:var(--muted-foreground);font-family:var(--code);font-size:11.5px;text-overflow:ellipsis;white-space:nowrap}.icon-action{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--muted-foreground);font-size:11px}.icon-action:hover{color:var(--foreground)}.icon-action.is-compact{width:28px;height:28px;justify-content:center;border-radius:7px}.icon-action.is-compact:hover{background:var(--selected)}pre{margin:0;overflow-x:auto;border-radius:16px;background:var(--surface);padding:24px;color:#dfe2e6;font-family:var(--code);font-size:12.5px;line-height:1.7;-moz-tab-size:2;tab-size:2}:root[data-theme=light] pre{color:#333}.props-table{margin-top:12px;overflow:hidden;border-radius:16px;background:var(--surface)}.props-row{min-height:54px;display:grid;grid-template-columns:160px 176px 96px 1fr;align-items:center;gap:8px;padding:0 20px;border-top:1px solid var(--border-soft);color:var(--muted-foreground);font-size:11.5px}.props-row.is-head{min-height:44px;border-top:0;color:var(--faint)}.props-row code{color:var(--foreground);font-family:var(--code);font-size:11px}.license-note{display:grid;grid-template-columns:220px 1fr;gap:32px;margin-top:48px;padding:20px;border:1px solid var(--border-soft);border-radius:14px}.license-note div{display:grid;gap:4px}.license-note span{color:var(--accent);font-family:var(--code);font-size:10px;text-transform:uppercase}.license-note strong{font-size:13px;font-weight:500}.license-note p{margin:0;color:var(--muted-foreground);font-size:12px;line-height:1.6}.article-pagination{display:flex;justify-content:space-between;gap:20px;margin-top:88px;padding-top:24px;border-top:1px dashed var(--border)}.article-pagination button{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;background:transparent;color:var(--muted-foreground);font-size:11px}.article-pagination button:hover{color:var(--foreground)}footer{border-top:1px solid var(--border-soft);padding:64px 0 32px}.footer-inner{width:min(1280px,calc(100% - 32px));margin:0 auto;display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:48px}.footer-brand p{max-width:260px;margin:18px 0 0;color:var(--faint);font-size:12px;line-height:1.6}.footer-inner>div:not(.footer-brand){display:grid;align-content:start;gap:10px}.footer-inner>div>p{margin:0 0 8px;font-size:12px}.footer-inner>div>a{color:var(--muted-foreground);font-size:11.5px}.footer-inner>div>a:hover{color:var(--foreground)}.footer-bottom{width:min(1280px,calc(100% - 32px));margin:60px auto 0;display:flex;justify-content:space-between;color:var(--faint);font-size:10px}.dialog-backdrop,.mobile-drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#0000009e;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.dialog-backdrop{display:grid;align-items:start;justify-items:center;padding-top:88px}.search-dialog{width:min(620px,calc(100vw - 32px));max-height:min(680px,calc(100vh - 120px));overflow:hidden;border:1px solid var(--border);border-radius:16px;background:var(--background);box-shadow:0 24px 80px #0006}.search-field{height:54px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:0 16px;border-bottom:1px solid var(--border-soft)}.search-field input{width:100%;border:0;outline:0;background:transparent;color:var(--foreground)}.search-field button{width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent}.search-results{max-height:600px;overflow:auto;padding:16px}.mobile-drawer{width:min(320px,88vw);height:100%;margin-left:auto;overflow-y:auto;background:var(--background);padding:16px}.mobile-drawer-head{height:44px;display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.mobile-drawer-head button{width:32px;height:32px;display:grid;place-items:center;border:0;background:transparent}.mobile-locale-button{width:100%;height:38px;display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding:0 10px;border:1px solid var(--border-soft);border-radius:9px;background:var(--surface);color:var(--muted-foreground);font-size:11px}.mobile-locale-button strong{color:var(--foreground);font-weight:500}.preview-stage button{border:0}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media(max-width:820px){.header-inner{width:calc(100% - 32px)}.desktop-nav,.desktop-only,.search-trigger span,.search-trigger kbd,.header-text-button{display:none}.search-trigger{width:30px;min-width:30px;justify-content:center;padding:0;border:0;background:transparent}.mobile-menu-button{display:grid}.catalog-layout{display:block;width:auto;padding:80px 16px 96px}.desktop-sidebar{display:none}.mobile-breadcrumb{height:20px;display:inline-flex;align-items:center;gap:4px;margin:0 0 28px;padding:0;border:0;background:transparent;color:var(--muted-foreground);font-size:12px}h1{font-size:26px;line-height:32px}.lede{font-size:14px}.preview-stage{height:394px;margin-top:42px;padding:20px;border-radius:24px}.doc-section,.code-section{margin-top:46px}.section-heading-row{align-items:flex-end}.package-tabs{gap:0}.package-tabs button{padding:0 9px}.command-row{min-height:52px;padding-left:14px}.command-row code{font-size:10px}pre{padding:18px;font-size:10.5px;line-height:1.7}.props-table{overflow-x:auto}.props-row{width:720px;grid-template-columns:130px 150px 90px 1fr}.license-note{grid-template-columns:1fr;gap:10px}.article-pagination{margin-top:64px}.article-pagination button{max-width:46%}.footer-inner{grid-template-columns:1fr 1fr;gap:40px 28px}.footer-brand{grid-column:1 / -1}.footer-bottom{margin-top:44px}}
