.docs-page { background:linear-gradient(180deg,#faf9fd 0,#fff 290px); }
.docs-layout.wrap { width:calc(100% - 2 * var(--page-gutter)); }
.docs-layout { display:grid; grid-template-columns:224px minmax(0,1fr); gap:64px; padding-block:46px 100px; min-height:calc(100vh - 220px); }
.docs-sidebar { align-self:start; position:sticky; top:32px; border-right:1px solid var(--line); padding-right:24px; }
.docs-sidebar nav { max-height:calc(100vh - 150px); overflow-y:auto; overflow-wrap:anywhere; overscroll-behavior:contain; }
.docs-label { font-size:17px; font-weight:600; letter-spacing:-.02em; margin-bottom:18px; }
.docs-nav-group + .docs-nav-group { margin-top:28px; }
.docs-nav-group h2 { font-size:11px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin:0 12px 12px; }
.docs-nav-group ul { list-style:none; margin:0; padding:0; }
.docs-nav-group a { display:block; padding:10px 12px; margin-block:3px; border-radius:9px; color:var(--muted); font-size:14px; text-decoration:none; }
.docs-nav-group a:hover { background:var(--wash); color:var(--accent); }
.docs-nav-group a[aria-current] { background:#eee4fb; color:#7222bf; font-weight:600; }
.docs-main { min-width:0; container:article / inline-size; --reading-offset:144px; }
.api-page .docs-main { --reading-offset:160px; }
/* Center a 790px main column; its 640px reading area starts at the left edge. */
.docs-toolbar,.docs-article { margin-left:max(0px,calc((100% - 790px) / 2 - var(--reading-offset))); margin-right:0; }
.docs-toolbar { width:min(640px,100%); }
.docs-article { width:min(790px,100%); overflow-wrap:anywhere; }
.docs-article > :not(.docs-demo-layout) { max-width:640px; }
.docs-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.docs-toolbar .eyebrow { font-size:11px; letter-spacing:.13em; }
.docs-toolbar a { font-size:12px; color:var(--muted); text-decoration:none; }
.docs-toolbar a:hover { color:var(--accent); }
.docs-article { font-size:16px; line-height:1.8; }
.docs-article h1 { font-size:clamp(34px,4vw,48px); margin-bottom:20px; letter-spacing:-.045em; }
.docs-article h1 + p { font-size:19px; line-height:1.65; color:var(--muted); margin-bottom:42px; }
.docs-article h2 { font-size:24px; letter-spacing:-.025em; margin:42px 0 18px; scroll-margin-top:24px; }
.docs-article h3 { font-size:19px; margin:28px 0 12px; }
.docs-article p,.docs-article ul,.docs-article ol { margin:16px 0; }
.docs-article strong { font-weight:600; }
.docs-article code { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:.88em; background:#f2eff7; padding:3px 6px; border-radius:5px; }
.docs-article pre { margin:20px 0 24px; border:1px solid var(--line); border-radius:12px; background:#f8f6fc; color:var(--ink); padding:22px 24px; font-size:14px; line-height:1.8; overflow-x:auto; }
.docs-article pre code { background:none; padding:0; font-size:inherit; border-radius:0; }
.docs-article pre.csharp-code { background:linear-gradient(135deg,#faf7ff,#fbf8fc); border-color:#e5d9ef; box-shadow:inset 0 1px 0 #fff; tab-size:4; }
.csharp-code .cs-keyword { color:#8422bd; font-weight:600; }
.csharp-code .cs-modifier { color:#795294; font-style:italic; }
.csharp-code .cs-type { color:#6139a0; font-weight:600; }
.csharp-code .cs-type-parameter { color:#80529d; font-style:italic; }
.csharp-code .cs-member { color:#9a287f; font-weight:600; }
.csharp-code .cs-parameter { color:#6b507c; font-style:italic; }
.csharp-code .cs-string { color:#844a73; }
.csharp-code .cs-number { color:#a43573; }
.csharp-code .cs-comment { color:#796981; font-style:italic; }
.csharp-code .cs-directive { color:#795294; }
.csharp-code .cs-punctuation { color:#806b8e; }
.csharp-code .cs-link { text-decoration:underline; text-decoration-color:#c49bd5; text-underline-offset:4px; text-decoration-thickness:1px; border-radius:3px; }
.csharp-code .cs-link:hover { color:var(--accent); background:#eee4fb; text-decoration-color:currentColor; }
.csharp-code .cs-link:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.docs-article blockquote { margin:24px 0; padding:2px 18px; border-left:3px solid #cda8f1; color:var(--muted); font-size:14px; }
.docs-article img,.docs-article svg { max-width:100%; height:auto; }
.start-prompt { display:grid; grid-template-columns:180px minmax(0,1fr); align-items:center; gap:26px; padding:24px; margin:32px 0 20px; border:1px solid #e5d9ef; border-radius:20px; background:linear-gradient(135deg,#faf7ff,#fff); }
.gigi-portrait { position:relative; aspect-ratio:1; border-radius:16px; overflow:hidden; background:#251b32; }
.gigi-portrait img { display:block; width:100%; }
.gigi-portrait .gigi-wink { position:absolute; inset:0; opacity:0; transition:opacity 200ms ease; }
.is-copied .gigi-wink { opacity:1; }
.start-prompt-content { min-width:0; }
.start-prompt h2 { margin:0 0 8px; font-size:23px; }
.start-prompt p { margin:8px 0 14px; font-size:14px; }
.start-prompt .starter-prompt { font-size:16px; line-height:1.7; overflow-wrap:anywhere; color:var(--ink); }
.prompt-app-name { width:13ch; max-width:100%; min-height:36px; box-sizing:border-box; padding:3px 8px; border:1px solid #d5b9eb; border-radius:7px; background:#fff; color:#7222bf; font:inherit; }
.prompt-app-name:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.prompt-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; min-height:42px; }
.copy-prompt { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:150px; min-height:42px; border:1px solid #dec8f1; border-radius:999px; background:#eee4fb; color:#7222bf; font-family:inherit; font-size:13px; font-weight:600; cursor:pointer; }
.copy-prompt[hidden] { display:none; }
.copy-prompt:hover { background:#e4d3f6; }
.copy-prompt:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.copy-symbol { width:16px; font-size:17px; line-height:1; }
.copy-status { flex:1 1 155px; min-height:22px; font-size:12px; color:var(--muted); line-height:1.6; }
@media(max-width:1000px) and (min-width:701px), (max-width:480px) {
    .start-prompt { grid-template-columns:minmax(0,1fr); padding:20px; gap:20px; }
    .gigi-portrait { width:140px; }
}
@media(prefers-reduced-motion:reduce) { .gigi-portrait .gigi-wink { transition:none; } }
.docs-article table { border-collapse:collapse; width:100%; margin-block:24px; }
.docs-article td,.docs-article th { padding:10px 14px; text-align:left; border-bottom:1px solid var(--line); }
.docs-page .site-footer { border-top:1px solid var(--line); }
.api-page .docs-sidebar nav { max-height:calc(100vh - 150px); overflow-y:auto; overflow-wrap:anywhere; }
.api-page .docs-layout { grid-template-columns:280px minmax(0,1fr); gap:40px; }
.api-overview { display:block; padding:7px 8px; margin-bottom:18px; border-radius:8px; font-size:17px; font-weight:600; color:var(--ink); text-decoration:none; }
.api-overview:hover { background:var(--wash); color:var(--accent); }
.api-overview[aria-current] { background:#eee4fb; color:#7222bf; }
.api-overview:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.api-nav-group + .api-nav-group { margin-top:18px; }
.api-nav-group > h2 { font-size:11px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin:0 8px 6px; }
.api-assembly { margin:0; font-size:12px; }
.api-assembly ul { list-style:none; margin:0; padding:0; }
.api-assembly summary { display:flex; cursor:pointer; list-style:none; border-radius:8px; }
.api-assembly summary::-webkit-details-marker { display:none; }
.api-assembly summary > :is(a,span)::before { content:""; flex:0 0 6px; width:6px; height:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(-45deg); margin-right:4px; color:var(--muted); }
.api-assembly details[open] > summary > :is(a,span)::before,.api-assembly[open] > summary > :is(a,span)::before { transform:rotate(45deg); }
.api-assembly a { display:block; min-width:0; padding:7px 8px; border-radius:8px; color:var(--muted); text-decoration:none; }
.api-assembly summary > :is(a,span) { display:flex; align-items:center; gap:6px; flex:1; min-width:0; padding:7px 8px; }
.api-assembly > summary > :is(a,span),.api-assembly > a { font-size:13px; font-weight:600; color:var(--ink); padding-block:4px; }
.api-assembly summary:hover,.api-assembly a:hover { background:var(--wash); color:var(--accent); }
.api-assembly summary[aria-current],.api-assembly a[aria-current] { background:#eee4fb; color:#7222bf; font-weight:600; }
.api-assembly summary[aria-current] > span { color:inherit; }
.api-assembly :is(summary,a):focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.api-assembly .api-namespaces { margin-left:12px; padding-left:8px; border-left:1px solid var(--line); }
.api-assembly .api-types { margin:2px 0 8px 20px; padding-left:8px; border-left:1px solid var(--line); }
.api-types a { font-size:12px; padding-block:5px; }
.docs-headings .heading-level-3 { margin-left:8px; }
.docs-headings .heading-level-4 { margin-left:16px; }
.docs-headings .heading-level-5 { margin-left:24px; }
.docs-headings .heading-level-6 { margin-left:32px; }
.api-page .docs-nav-group a { font-size:12px; padding:7px 10px; }
.api-page .docs-article h1 { overflow-wrap:anywhere; font-size:clamp(28px,3vw,42px); }
.api-page .docs-article h2,.api-page .docs-article h3 { overflow-wrap:anywhere; }
.api-page .docs-article h2 { border-top:1px solid var(--line); padding-top:24px; }
.api-page .docs-article h3 { font-size:15px; margin-top:34px; }
.api-page .docs-article h3 code { font-size:inherit; font-weight:600; background:none; padding:0; }
.api-page .docs-article h3 a { color:var(--ink); text-decoration:none; }
.api-page .docs-article h3 a::after { content:" #"; color:#aa8ac4; font-weight:400; }
.api-page .docs-article h3 a:hover { color:var(--accent); text-decoration:underline; text-underline-offset:4px; }
.api-page .docs-article h3 + pre { margin-top:12px; }
.api-page .docs-article a[id] { display:block; scroll-margin-top:24px; }
.api-page .docs-article { overflow-wrap:anywhere; }
@media(max-width:1000px) { .docs-layout { gap:36px; grid-template-columns:190px minmax(0,1fr); } }
@media(min-width:701px) and (max-width:1000px) { .api-page .docs-layout { grid-template-columns:228px minmax(0,1fr); gap:28px; } }
@media(max-width:700px) {
    .docs-sidebar nav,.api-page .docs-sidebar nav { max-height:220px; }
    .api-page .docs-nav-group ul { display:block; }
    .docs-layout { display:block; padding-block:24px 60px; }
    .docs-sidebar { position:static; padding:0 0 22px; border-right:0; border-bottom:1px solid var(--line); margin-bottom:32px; }
    .docs-label { margin-bottom:16px; }
    .docs-nav-group h2 { margin-left:0; }
    .docs-nav-group ul { display:flex; flex-wrap:wrap; gap:6px; }
    .docs-toolbar { margin-bottom:20px; }
    .docs-article h1 + p { font-size:18px; margin-bottom:32px; }
    .docs-article pre { padding:16px; font-size:13px; }
}

.docs-demo-layout { width:min(640px,100%); display:grid; grid-template-columns:minmax(0,1fr); gap:20px; align-items:start; margin:24px 0; }
.docs-demo-layout > pre { margin:0; max-height:600px; font-size:12px; padding:16px; }
.docs-demo { margin:0; min-width:0; width:400px; max-width:100%; justify-self:center; }
.docs-demo-stage { position:relative; width:100%; aspect-ratio:2/3; overflow:hidden; background:white; border:1px solid var(--line); border-radius:14px; }
.docs-demo-stage img,.docs-demo-stage iframe { display:block; width:100%; height:100%; border:0; transition:opacity 300ms ease; }
.docs-demo-stage iframe { position:absolute; inset:0; opacity:0; pointer-events:none; }
.docs-demo.is-live img { opacity:0; }
.docs-demo.is-live iframe { opacity:1; pointer-events:auto; }
.docs-demo-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px; margin-top:14px; min-height:40px; }
.docs-demo-actions button { padding:9px 14px; border:1px solid #dec8f1; border-radius:999px; font:inherit; font-size:13px; color:#7222bf; cursor:pointer; background:#faf7ff; }
.docs-demo button[hidden] { display:none; }
.docs-demo .docs-demo-close[hidden] { display:block; visibility:hidden; }
.docs-demo-start { position:absolute; inset:0; z-index:2; display:grid; place-items:center; width:100%; height:100%; padding:0; border:0; border-radius:inherit; font:inherit; cursor:pointer; opacity:0; background:repeating-linear-gradient(120deg,transparent 0 10px,#ffffff1c 10px 12px),#26163599; transition:opacity 300ms ease,visibility 300ms; }
.docs-demo-start:hover,.docs-demo-start:focus-visible,.docs-demo.is-loading .docs-demo-start { opacity:1; }
.docs-demo-start:disabled { cursor:progress; }
.docs-demo-pill { display:grid; place-items:center; width:156px; height:44px; box-sizing:border-box; border:1px solid #dec8f1; border-radius:999px; color:#7222bf; font-size:13px; font-weight:600; background:linear-gradient(to right,#e4d3f6 var(--progress,0%),#faf7ff var(--progress,0%)); box-shadow:0 4px 20px #21152a26; }
.docs-demo-start:focus-visible { outline:none; }
.docs-demo-start:focus-visible .docs-demo-pill { outline:2px solid white; outline-offset:4px; }
.docs-demo.is-live .docs-demo-start { opacity:0; visibility:hidden; pointer-events:none; }
@media(hover:none) { .docs-demo-start { opacity:1; } }
.docs-demo-actions button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.docs-demo-status { flex-basis:100%; font-size:13px; color:var(--muted); }
.docs-demo figcaption { font-size:12px; color:var(--muted); margin-top:12px; }
/* The demo first uses the spare 150px inside the main column, then the right
   margin. Stack when there is no room for 640px of code, a 20px gap, and 400px of demo. */
@container article (min-width:1060px) {
    .docs-demo-layout { width:1060px; grid-template-columns:640px 400px; }
    .docs-demo { justify-self:start; }
}
@container article (max-width:1059px) { .docs-demo-layout > pre { max-height:480px; } }
@media(prefers-reduced-motion:reduce) { .docs-demo-stage img,.docs-demo-stage iframe,.docs-demo-start { transition:none; } }
