#example-source-drawer{position:fixed;max-width:none;max-height:none;padding:0;background:#fff}#example-source-drawer[open]{display:flex;flex-direction:column}#example-source-drawer .source-header{display:flex;align-items:center;justify-content:space-between}#example-source-drawer .source-body{display:grid;flex:1;min-height:0}#example-source-drawer .source-view{display:flex;flex-direction:column;min-width:0;min-height:0}#example-source-drawer .source-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}#example-source-drawer .source-close{border:0;background:transparent}#example-source-drawer{inset:24px auto 24px 50%;transform:translate(-50%);width:min(1280px,calc(100vw - 48px));height:calc(100vh - 48px);margin:0;border:1px solid #dfe3e9;border-radius:16px;box-shadow:0 32px 120px #16233b35;color:#354052;overflow:hidden}#example-source-drawer::backdrop{background:#18223540;backdrop-filter:blur(6px)}#example-source-drawer .source-header{height:82px;flex-shrink:0;padding:16px 24px;background:#fff;border-bottom:1px solid #e9edf2}.source-identity{display:flex;align-items:center;gap:13px}.source-project-icon{display:grid;place-items:center;width:39px;height:39px;background:#f0f4fa;color:#6e86a8;border:1px solid #e5ebf3;border-radius:10px;font:14px ui-monospace,monospace;letter-spacing:-2px}#example-source-drawer .source-header h2{font-size:17px;letter-spacing:-.35px;margin:0;font-weight:600;line-height:1.3}.source-header .source-label{display:block;font-size:11px;letter-spacing:0;color:#939ca9;margin-top:3px}#example-source-drawer .source-close{width:30px;height:30px;border-radius:6px;padding:5px;color:#939ba7}.source-close:hover{background:#f3f5f8}.source-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5}#example-source-drawer .source-body{grid-template-columns:246px minmax(0,1fr)}.source-sidebar{display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#f9fafc;border-right:1px solid #e9edf2;padding:0}.source-tree-heading{display:flex;justify-content:space-between;padding:17px 18px 12px;font-size:11px;font-weight:600;color:#7c8797}.source-tree-heading span:last-child{font-size:10px;color:#9fa8b5;font-weight:400}.source-filter{display:flex;align-items:center;gap:7px;margin:0 12px 14px;padding:7px 9px;background:#fff;border:1px solid #e7ebf1;border-radius:6px}.source-filter svg{width:14px;height:14px;fill:none;stroke:#a0a9b7;stroke-width:1.5;flex-shrink:0}.source-filter input{font-size:11px;background:none;border:0;outline:0;color:#596779;width:100%;min-width:0}.source-filter input::placeholder{color:#a0a9b7}.source-filter input::-webkit-search-cancel-button{appearance:none}[data-source-files]{overflow:auto;flex:1;padding:0 8px 22px}#example-source-drawer .source-tree-row{display:flex;align-items:center;gap:7px;width:100%;height:31px;padding:0 9px 0 calc(7px + var(--depth)*16px);margin:2px 0;background:transparent;border:0;border-radius:5px;color:#687486;font:12px/1.4 -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;text-align:left;white-space:nowrap;cursor:pointer}#example-source-drawer .source-tree-row:hover{background:#f0f3f8;color:#35445a}.source-tree-row:focus-visible{outline:2px solid #b5cbed;outline-offset:-2px}#example-source-drawer .source-tree-row[aria-selected=true]{background:#eaf0f9;color:#315b94;font-weight:550}.tree-name{overflow:hidden;text-overflow:ellipsis}.tree-chevron,.tree-spacer{width:10px;height:14px;flex-shrink:0}.tree-chevron{fill:none;stroke:#98a3b2;stroke-width:1.5;transition:transform .12s}.source-tree-row[aria-expanded=true] .tree-chevron{transform:rotate(90deg)}.tree-folder{width:16px;height:16px;fill:#e9eef6;stroke:#9caec5;stroke-width:1.1;flex-shrink:0}.file-icon{width:16px;height:16px;flex-shrink:0;font:8px/16px ui-monospace,monospace;font-weight:600;text-align:center;border-radius:3px;color:#8c9aaf;background:#eef1f5}.file-ts,.file-tsx{color:#5d85bc;background:#eaf0f9}.file-js,.file-jsx{color:#9b864d;background:#f6f2e8}.file-rust{color:#aa7f69;background:#f6eee9}.file-html,.file-css{color:#9a7aaf;background:#f3eef7}.file-json{color:#709b8d;background:#edf5f1}.source-no-files{font-size:12px;color:#96a0ad;padding:5px 18px}#example-source-drawer .source-view{background:#fff;overflow:hidden}#example-source-drawer .source-toolbar{height:48px;flex-shrink:0;padding:0 19px 0 22px;background:#fff;border-bottom:1px solid #edf0f4;font-family:inherit;color:#8791a0}.source-breadcrumb{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px;overflow:hidden;white-space:nowrap}.source-breadcrumb>span:last-child{color:#424f62;font-weight:500}.source-slash{color:#c1c7d1}.source-actions{display:flex;gap:4px;align-items:center;flex-shrink:0}#example-source-drawer .source-actions button{border:0;background:transparent;font-size:11px;padding:5px 9px;border-radius:5px;color:#8390a2;line-height:1.5}#example-source-drawer .source-actions button:hover{background:#f4f6fa;color:#536b8b}#example-source-drawer .source-actions button[aria-pressed=true]{color:#597aa7;background:#f0f4fa}.source-actions button:disabled{opacity:.4;cursor:default}.source-editor{flex:1;min-height:0;min-width:0;overflow:hidden}.source-editor[aria-busy=true]{opacity:.6}.source-file-meta{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;height:31px;border-top:1px solid #edf0f4;padding:0 18px;color:#a0a9b6;background:#fff;font-size:10px;letter-spacing:.01em}#example-source-drawer .source-fallback{flex:1;overflow:auto;margin:0;padding:22px;background:#fff;color:#4d596b;font:13px/1.8 ui-monospace,monospace}#example-source-drawer .source-status:empty{display:none}#example-source-drawer .source-status:not(:empty){padding:8px 20px;font-size:11px;background:#f9fafc;color:#8994a4;border-top:1px solid #e9edf2}@media(max-width:760px){#example-source-drawer{inset:10px 10px 10px 50%;width:calc(100vw - 20px);height:calc(100vh - 20px)}#example-source-drawer .source-body{grid-template-columns:172px minmax(0,1fr)}#example-source-drawer .source-header{height:68px;padding:12px 16px}.source-actions button[data-source-wrap]{display:none}#example-source-drawer .source-toolbar{padding-inline:10px}.source-breadcrumb{font-size:11px}}:root{color-scheme:light;--ink:#1d1d1f;--muted:#6e6e73;--line:#e6e6e8;--accent:#0066cc;--nav-width:246px;--header-height:110px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:140px}body{margin:0;background:#fff;color:var(--ink);font:17px/1.6 -apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;-webkit-font-smoothing:antialiased}[hidden]{display:none!important}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:3px}button,input{font:inherit}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid #4688cf;outline-offset:4px}h1,h2,h3,h4,p,figure{margin:0}button{color:inherit}.skip-link{position:fixed;left:16px;top:-80px;z-index:100;background:#fff;padding:10px}.skip-link:focus{top:12px}.masthead{height:64px;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:0 34px;background:#ffffffef;backdrop-filter:blur(18px);border-bottom:1px solid var(--line);gap:24px}.brand{display:flex;align-items:center;gap:9px;color:#1d1d1f;font-size:20px;font-weight:650;letter-spacing:-.7px;white-space:nowrap}.brand:hover{text-decoration:none}.brand svg{width:25px;height:25px}.brand-divider{height:18px;width:1px;background:#d9d9dd;margin:0 9px}.brand-docs{font-size:15px;font-weight:400;letter-spacing:0}.repo-link{font-size:13px;color:#555}.design-picker{display:flex;align-items:center;gap:3px;font-size:12px}.design-picker>span{color:#86868b;margin-right:10px}.design-picker>a{padding:5px 12px;border-radius:6px;color:#727277}.design-picker>a[aria-current]{background:#f0f1f3;color:#1d1d1f}.docs-bar{position:sticky;top:64px;z-index:19;display:flex;align-items:center;justify-content:space-between;height:46px;padding:0 34px;border-bottom:1px solid #d7d7db;background:#fff}.docs-bar>span{font-size:18px;font-weight:600;letter-spacing:-.4px}.docs-bar>a{font-size:13px;color:#666}.sidebar{position:fixed;top:var(--header-height);bottom:0;width:var(--nav-width);overflow:auto;border-right:1px solid var(--line);background:#fafafa;padding:27px 18px 18px;display:flex;flex-direction:column;z-index:10;font-size:14px}.sidebar-title{font-weight:650;font-size:16px;padding:0 12px;margin-bottom:18px;letter-spacing:-.2px}.guide-search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e0e0e3;border-radius:8px;padding:8px 10px;margin:0 4px 26px;color:#7d7d82}.guide-search svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;flex-shrink:0}.guide-search input{border:0;background:transparent;min-width:0;width:100%;font-size:13px;outline:0}.nav-group{margin:0 0 12px}.nav-group summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none;font-size:13px;font-weight:600;padding:8px 12px;color:#4c4c51}.nav-group summary::-webkit-details-marker{display:none}.nav-group summary:after{content:"›";font-size:18px;font-weight:400;transform:rotate(0);color:#929297}.nav-group[open] summary:after{transform:rotate(90deg)}.nav-group a{display:block;padding:7px 12px 7px 22px;color:#66666b;line-height:1.5;border-radius:6px;font-size:13px;margin:2px 0}.nav-group a[aria-current]{color:#222;background:#e9e9ed;font-weight:600}.nav-group a:hover{background:#f0f0f2;text-decoration:none;color:#222}.no-guides{font-size:13px;color:#777;padding:8px}.sidebar-bottom{margin-top:auto;padding:48px 12px 6px;font-size:12px}.sidebar-bottom a{color:#777}.sidebar-bottom span{margin-left:10px}main{margin-left:var(--nav-width);min-width:0}.page-hero{position:relative;overflow:hidden}.hero-inner{position:relative;max-width:1180px;margin:auto;padding:43px 60px 47px}.breadcrumb{display:flex;align-items:center;gap:10px;font-size:13px;color:#6c6c73;margin-bottom:28px}.breadcrumb a{color:inherit}.breadcrumb span:nth-child(2){color:#aaa}h1{font-size:43px;line-height:1.13;letter-spacing:-1.7px;font-weight:650;max-width:790px;position:relative;z-index:1}.hero-description{font-size:20px;line-height:1.5;margin-top:20px;max-width:760px;position:relative;z-index:1}.hero-description strong{font-weight:500}.hero-actions{display:flex;align-items:center;gap:26px;margin-top:27px;position:relative;z-index:1;font-size:14px}.primary-action{background:#0071e3;color:#fff;border-radius:22px;padding:8px 17px;font-weight:500}.primary-action:hover{background:#0077ed;text-decoration:none}.secondary-action{border:0;background:none;color:var(--accent);padding:8px 0;font-size:14px}.secondary-action span,.primary-action span{margin-left:6px}.hero-motif{position:absolute;right:32px;top:27px;font-size:200px;line-height:1;font-weight:200;letter-spacing:-35px;color:#dbe5f2;opacity:.65;pointer-events:none}.page-symbol{display:none}.reading-layout{max-width:1180px;margin:auto;padding:42px 60px 100px;display:grid;grid-template-columns:minmax(0,780px) 168px;gap:48px;align-items:start}.guide-prose{min-width:0;font-size:17px;line-height:1.7}.guide-prose>p{margin:0 0 20px}.guide-prose>h2{font-size:29px;line-height:1.2;font-weight:650;letter-spacing:-.85px;margin:52px 0 18px;scroll-margin-top:125px}.guide-prose>h2:first-child{margin-top:0}.guide-prose h3{font-size:21px;line-height:1.3;margin:34px 0 16px}.guide-prose h4{font-size:15px}.guide-prose strong{font-weight:600}.guide-prose p+ul{margin-top:-6px}.guide-prose li{margin:6px 0}.guide-prose a{text-decoration:underline;text-decoration-color:#bad1e9;text-underline-offset:3px}.guide-prose p>code,.guide-prose li>code{font:.82em/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#f2f3f5;padding:2px 5px;border-radius:4px;overflow-wrap:anywhere;color:#42444a}.guide-prose img{max-width:100%;height:auto;display:block;border:1px solid #e7e8eb;border-radius:12px;margin:28px 0 12px}.guide-prose p:has(>em:only-child){font-size:12px;color:#86868b;margin-top:-3px}.guide-prose table{border-collapse:collapse;width:100%;margin:26px 0 28px;font-size:14px;line-height:1.55}.guide-prose td,.guide-prose th{text-align:left;border-bottom:1px solid var(--line);padding:14px 12px 14px 0;vertical-align:top}.guide-prose th{font-weight:600;color:#53535a;font-size:12px}.guide-prose td:first-child{font-weight:500;min-width:85px}.guide-prose details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:24px 0;padding:15px 0;font-size:15px;line-height:1.7}.guide-prose summary{cursor:pointer;font-weight:550;list-style:none;display:flex;align-items:center;gap:12px}.guide-prose summary:before{content:"›";font-size:20px;color:#777}.guide-prose summary::-webkit-details-marker{display:none}.guide-prose details[open]>summary:before{transform:rotate(90deg)}.guide-prose details[open]>summary{margin-bottom:18px}.guide-prose details p{margin:14px 0}.example-source-button{border:0;background:transparent;color:var(--accent);padding:0;font-size:15px;font-weight:500;margin:4px 0 6px}.example-source-button span{margin-left:8px}.contents{position:sticky;top:145px;font-size:12px;line-height:1.5}.contents>span{font-size:11px;display:block;color:#89898f;letter-spacing:.04em;margin-bottom:16px}.contents nav{border-left:1px solid var(--line)}.contents a{display:block;color:#77777d;padding:8px 0 8px 15px;border-left:2px solid transparent;margin-left:-1px}.contents a[aria-current]{color:var(--accent);border-left-color:var(--accent)}.contents a:hover{text-decoration:none;color:#222}.article-footer{margin:0 60px;padding:25px 0 42px;display:flex;justify-content:space-between;border-top:1px solid var(--line);font-size:12px;color:#888}.article-footer a{color:#555}.code-sample{position:relative;background:#f6f7f9;border-radius:10px;margin:22px 0;overflow:hidden}.guide-prose pre{background:transparent!important;margin:0;padding:22px 24px;overflow:auto;font:13px/1.85 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;tab-size:2;color:#374151}.guide-prose pre code{font:inherit}.code-copy{position:absolute;right:10px;top:9px;z-index:2;background:#f6f7f9e8;color:#81818a;border:0;border-radius:4px;padding:3px 7px;font-size:11px;opacity:0;transition:opacity .15s}.code-sample:hover .code-copy,.code-sample:focus-within .code-copy{opacity:1}.code-copy:focus-visible{opacity:1}.sdk-code-tabs{margin:26px 0;border:1px solid #e6e8ed;border-radius:11px;overflow:hidden;background:#f7f8fa}.sdk-code-tabs [role=tablist]:not([hidden]){display:flex;align-items:center;gap:23px;padding:0 22px;background:#fff;border-bottom:1px solid #e6e8ed}.sdk-code-tabs [role=tab]{border:0;border-bottom:2px solid transparent;background:transparent;padding:12px 0 10px;font-size:12px;color:#777}.sdk-code-tabs [role=tab][aria-selected=true]{color:#06c;border-bottom-color:#0071e3;font-weight:600}.sdk-code-tabs[data-ready] .sdk-tab-fallback{display:none}.sdk-code-tabs .code-sample{margin:0;border-radius:0}.sdk-code-tabs [role=tabpanel]{margin:0}.sdk-code-tabs h4{padding:15px}.sdk-install-tabs{border:0}.sdk-install-tabs [role=tablist]:not([hidden]){background:#f6f7f9;border:0;padding:8px 12px 0;gap:5px}.sdk-install-tabs [role=tab]{padding:5px 10px;border:0;border-radius:5px}.sdk-install-tabs [role=tab][aria-selected=true]{background:#fff;color:#26272b;box-shadow:0 1px 2px #00000009}.sdk-install-tabs pre{font-size:12px;padding:20px 18px}.sdk-install-tabs .code-copy{opacity:1}.sdk-tab-fallback{font-weight:500}.apple .page-hero{background:linear-gradient(115deg,#f0f4fb,#f7f9fc 65%,#edf2f9)}@media(min-width:1600px){:root{--nav-width:280px}.notion{--nav-width:260px}.hero-inner,.reading-layout,.notion .hero-inner,.notion .reading-layout{max-width:1260px}.reading-layout,.notion .reading-layout{grid-template-columns:minmax(0,850px) 180px;gap:60px}h1{font-size:48px}.notion h1{font-size:46px}.guide-prose,.notion .guide-prose{font-size:18px}}@media(max-width:1190px){.contents{display:none}.reading-layout,.notion .reading-layout{grid-template-columns:minmax(0,1fr)}.hero-inner,.reading-layout,.notion .hero-inner,.notion .reading-layout{padding-left:44px;padding-right:44px}.hero-motif{opacity:.3}.brand-docs,.brand-divider{display:none}h1,.notion h1{font-size:38px}.article-footer,.notion .article-footer{margin-inline:44px}}@media(max-width:760px){:root,.notion{--nav-width:0px}.sidebar{display:none}.masthead,.notion .masthead{padding:0 18px;gap:14px}.brand{font-size:17px}.repo-link,.design-picker>span{display:none}.design-picker>a{padding:5px 8px;font-size:11px}.docs-bar{padding-inline:22px}.hero-inner,.reading-layout,.notion .hero-inner,.notion .reading-layout{padding-left:24px;padding-right:24px}.hero-inner,.notion .hero-inner,.reading-layout{padding-top:30px}.guide-prose,.notion .guide-prose{font-size:16px}.hero-description{font-size:18px}h1,.notion h1{font-size:34px}.source-body{grid-template-columns:160px minmax(0,1fr)}.article-footer,.notion .article-footer{margin-inline:24px}.code-copy{opacity:1}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}html{scroll-padding-top:calc(var(--header-height) + 24px)}.guide-prose>h2{scroll-margin-top:12px}.guide-prose pre,.notion .guide-prose pre{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.studio{--nav-width:232px}.studio .hero-inner,.studio .reading-layout{max-width:1080px}.studio .reading-layout{grid-template-columns:minmax(0,720px) 160px;gap:44px}.studio .guide-prose{max-width:720px}.studio .article-footer{max-width:960px;margin-inline:auto;padding-inline:24px}.guide-prose details{border:0;background:#f7f7f8;border-radius:6px;padding:15px 18px;margin:24px 0}.studio .hero-description{max-width:760px}.header-links{display:flex;align-items:center;gap:30px}.search-shortcut{display:flex;align-items:center;gap:28px;border:0;background:transparent;color:#777;font-size:13px;padding:8px}.search-shortcut kbd{font:11px/1.6 inherit;color:#999;border:1px solid #e5e5e8;padding:1px 5px;border-radius:4px}button.guide-search{width:calc(100% - 8px);text-align:left;font-size:12px;color:#8a8a90;cursor:pointer}.mobile-nav-toggle{display:none}.studio .guide-prose pre{overflow-wrap:break-word}.studio .guide-prose table{display:block;max-width:100%;overflow:auto}.studio .guide-prose blockquote{margin:24px 0;padding:4px 20px;border-left:3px solid #dce6f2;color:#556071}.studio .guide-prose hr{border:0;border-top:1px solid #eee;margin:32px 0}.studio .reading-layout.no-contents{grid-template-columns:minmax(0,720px)}#docs-search{position:fixed;inset:15vh auto auto;margin:0 auto;width:min(700px,calc(100% - 36px));max-height:70vh;padding:0;border:1px solid #dce1e7;border-radius:14px;box-shadow:0 24px 90px #18202c30;color:#262a31;background:#fff}#docs-search::backdrop{background:#20283844;backdrop-filter:blur(4px)}.search-header{display:flex;align-items:center;gap:15px;padding:18px 22px;border-bottom:1px solid #eee}.search-header input{border:0;background:transparent;flex:1;min-width:0;color:#222;font-size:18px;outline:0}.search-header button{border:0;background:transparent;color:#888;font-size:26px;line-height:1}.search-status{font-size:12px;color:#8a8a90;padding:14px 22px}.search-results{padding:0 10px 12px;max-height:48vh;overflow:auto}.search-results a{display:block;border-radius:8px;padding:14px 12px;text-decoration:none;color:#30343c}.search-results a:hover,.search-results a:focus-visible{background:#f3f6fa}.search-results strong{display:block;font-size:16px;font-weight:600;margin-bottom:5px}.search-results span{display:block;font-size:13px;line-height:1.6;color:#737984}@media(min-width:1600px){.studio{--nav-width:246px}.studio .hero-inner,.studio .reading-layout{max-width:1120px}.studio .reading-layout{grid-template-columns:minmax(0,720px) 170px;gap:54px}.studio h1{font-size:46px}}@media(max-width:1190px){.studio .reading-layout{grid-template-columns:minmax(0,720px)}.studio .hero-inner,.studio .reading-layout{padding-inline:44px}}@media(max-width:760px){.studio{--nav-width:0px}.studio .hero-inner,.studio .reading-layout{padding-inline:24px}.search-shortcut kbd,.header-links .repo-link{display:none}.search-shortcut{font-size:12px}.header-links{gap:0}.mobile-nav-toggle{display:block;border:0;background:transparent;color:#666;font-size:13px}.studio .docs-bar>a{display:none}.studio.navigation-open .sidebar{display:flex;width:min(290px,85vw);box-shadow:20px 0 60px #0002;background:#fff}.studio .article-footer{margin-inline:24px;padding-inline:0}}#docs-search{left:50%;right:auto;transform:translate(-50%);margin:0}.search-header input::-webkit-search-cancel-button{appearance:none}.guide-prose pre[data-language=text]{white-space:pre;overflow-wrap:normal}.product-desktop .app-screenshot{overflow:hidden;border:1px solid #e7e8eb;border-radius:12px;margin:28px 0 12px;aspect-ratio:1.18;background:#f4f5f7}.product-desktop .app-screenshot p{margin:0}.product-desktop .app-screenshot img{display:block;width:190%;max-width:none;height:auto;margin:0 0 0 -45%;border:0;border-radius:0}.product-desktop .screenshot-voice{aspect-ratio:1.3}.product-desktop .screenshot-machines{aspect-ratio:1.75}.product-desktop .screenshot-coworkers{aspect-ratio:1.5}.product-desktop .screenshot-sandbox{aspect-ratio:3.1}.product-desktop .screenshot-auto-approve{aspect-ratio:2.75}.product-desktop .contents nav{border:0}.product-desktop .contents a{border:0;margin-left:0;border-radius:5px;padding-left:10px}.product-desktop .contents a[aria-current]{background:#f0f4fa}
