.stitch-playground-page{padding:.85rem 1.5rem 1.25rem}.stitch-playground-page__inner{width:100%;margin:0}@media (min-width:52rem){.stitch-playground-page{display:flex;flex-direction:column;box-sizing:border-box;height:calc(100dvh - var(--fd-banner-height, 0px) - 3.5rem)}.stitch-playground,.stitch-playground-page__inner{display:flex;flex-direction:column;flex:1;min-height:0}.stitch-playground__body{flex:1;min-height:0;height:auto}}.stitch-playground-examples{display:flex;align-items:center;gap:.2rem;padding:.15rem;border-radius:.5rem;background:color-mix(in srgb,var(--color-fd-foreground) 6%,transparent)}.stitch-playground-examples__tab{font-size:.8125rem;font-weight:600;padding:.3rem .75rem;border:0;border-radius:.4rem;background:transparent;color:var(--color-fd-muted-foreground);cursor:pointer;transition:color .15s ease,background .15s ease}.stitch-playground-examples__tab:hover{color:var(--color-fd-foreground)}.stitch-playground-examples__tab[data-active=true]{color:var(--color-fd-foreground);background:var(--color-fd-background);box-shadow:0 1px 2px rgba(0,0,0,.08)}.stitch-playground{border:1px solid var(--color-fd-border);border-radius:.75rem;background:var(--color-fd-card,var(--color-fd-background));overflow:hidden}.stitch-playground__toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;row-gap:.5rem;flex-wrap:wrap;padding:.5rem .75rem;border-bottom:1px solid var(--color-fd-border);background:color-mix(in srgb,var(--stitch) 6%,transparent)}.stitch-playground__toolbar-start{display:flex;align-items:center;min-width:0}@media (max-width:30rem){.stitch-playground__actions,.stitch-playground__toolbar-start{flex:1 1 100%}.stitch-playground__actions{justify-content:flex-end}}.stitch-playground__actions{display:flex;gap:.5rem}.stitch-playground__btn{display:inline-flex;align-items:center;gap:.4rem;font-size:.875rem;font-weight:600;padding:.45rem 1rem;border-radius:.5rem;border:1px solid transparent;cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease,opacity .15s ease}.stitch-playground__btn svg{width:1.05rem;height:1.05rem;flex:none}.stitch-playground__btn:disabled{opacity:.5;cursor:not-allowed}.stitch-playground__btn--run{border-color:var(--stitch-border);background:var(--stitch);color:#fff}.stitch-playground__btn--run:hover:not(:disabled){background:var(--stitch-strong)}.stitch-playground__btn--reset{background:transparent;color:var(--color-fd-muted-foreground);border-color:var(--color-fd-border)}.stitch-playground__btn--reset:hover:not(:disabled){color:var(--color-fd-foreground);background:color-mix(in srgb,var(--color-fd-foreground) 6%,transparent)}.stitch-playground__body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);grid-template-areas:"editor console";height:30rem}.stitch-playground__body[data-has-aside=true]{grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"editor console" "editor aside"}.stitch-playground__pane--editor{grid-area:editor}.stitch-playground__pane--console{grid-area:console}.stitch-playground__pane--aside{grid-area:aside}.stitch-playground__pane{display:flex;flex-direction:column;min-width:0;min-height:0}.stitch-playground__pane--aside,.stitch-playground__pane--console{border-left:1px solid var(--color-fd-border)}.stitch-playground__pane--aside{border-top:1px solid var(--color-fd-border)}.stitch-playground__pane-head{flex:none;padding:.3rem .75rem;font-size:.7rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--color-fd-muted-foreground);background:color-mix(in srgb,var(--color-fd-foreground) 3%,transparent);border-bottom:1px solid var(--color-fd-border)}.stitch-playground__pane--editor .stitch-playground__cm,.stitch-playground__pane--editor .stitch-playground__editor{flex:1;min-height:0}.stitch-playground .cm-editor{height:100%!important}@media (max-width:52rem){.stitch-playground__body,.stitch-playground__body[data-has-aside=true]{grid-template-columns:1fr;grid-template-rows:auto auto auto;grid-template-areas:"editor" "console" "aside";height:auto}.stitch-playground__pane--aside,.stitch-playground__pane--console{border-left:0;border-top:1px solid var(--color-fd-border)}.stitch-playground__pane--editor .stitch-playground__cm,.stitch-playground__pane--editor .stitch-playground__editor{height:14rem;flex:none}.stitch-playground__pane--console .stitch-playground__output{max-height:18rem}.stitch-playground__pane--console .stitch-playground__output--editor{flex:none;height:20rem;max-height:none}}.stitch-playground__editor{display:block;width:100%;border:0;padding:1rem;resize:vertical;background:var(--color-fd-background);color:var(--color-fd-foreground);font-family:var(
        --color-fd-font-mono,ui-monospace,SFMono-Regular,monospace
    );font-size:.875rem;line-height:1.55;tab-size:2}.stitch-playground__editor:focus{outline:2px solid color-mix(in srgb,var(--stitch) 55%,transparent);outline-offset:-2px}.stitch-playground__output{flex:1;min-height:0;padding:.75rem 1rem;overflow:auto;background:var(--color-fd-secondary);font-family:var(
        --color-fd-font-mono,ui-monospace,SFMono-Regular,monospace
    );font-size:.8125rem;line-height:1.55;color:var(--color-fd-foreground)}.stitch-playground__output--deferred,.stitch-playground__output--placeholder{color:var(--color-fd-muted-foreground)}.stitch-playground__log{padding:.02rem 0;white-space:pre-wrap;word-break:break-word}.stitch-playground__log[data-level=info]{color:var(--stitch-strong)}.stitch-playground__log[data-level=warn]{color:#b45309}.dark .stitch-playground__log[data-level=warn]{color:#fbbf24}.stitch-playground__log[data-level=error]{color:#dc2626}.dark .stitch-playground__log[data-level=error]{color:#f87171}.stitch-playground__error{margin:.4rem 0 0;padding-left:.6rem;border-left:2px solid #dc2626;white-space:pre-wrap;word-break:break-word;color:#dc2626}.dark .stitch-playground__error{color:#f87171;border-left-color:#f87171}.stitch-playground__notices{margin-top:.6rem;display:flex;flex-direction:column;gap:.25rem}.stitch-playground__notice{font-size:.75rem;padding:.2rem .5rem;border-radius:.4rem;border:1px solid var(--stitch-border);background:color-mix(in srgb,var(--stitch) 10%,transparent);color:var(--color-fd-foreground)}.stitch-playground__dag{margin-top:.75rem}.stitch-playground__dag .stitch-playground__pane-head{margin-left:-1rem;margin-right:-1rem;margin-bottom:.6rem;border-top:1px solid var(--color-fd-border)}.stitch-playground__output-extras>.stitch-playground__dag:first-child .stitch-playground__pane-head{margin-top:-.6rem;border-top:0}.stitch-playground__dag-streaming-badge{display:inline-block;margin-bottom:.25rem;font-size:.7rem;text-transform:uppercase;letter-spacing:.04em;color:var(--stitch-strong)}.stitch-playground__mermaid{margin:0;white-space:pre-wrap;color:var(--color-fd-muted-foreground)}.stitch-playground__mermaid-svg{display:flex;justify-content:center}.stitch-playground__mermaid-svg svg{max-width:100%;height:auto}.stitch-playground .cm-editor{font-size:.875rem}.stitch-playground .cm-editor.cm-focused{outline:none}.stitch-playground .cm-gutters{border-right:1px solid var(--color-fd-border)}.stitch-playground__output figure{margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.stitch-playground__output figure pre{margin:0!important;padding:0!important;background:transparent!important}.stitch-playground__output figure>div:first-child{display:none!important}.stitch-playground__output--editor{display:flex;flex-direction:column;padding:0;overflow:hidden}.stitch-playground__logs-editor{flex:1 1 auto;min-height:6rem;display:flex;flex-direction:column;overflow:hidden}.stitch-playground__logs-editor .cm-editor,.stitch-playground__logs-editor .stitch-console-editor{flex:1;min-height:0}.stitch-playground__output-extras{flex:none;max-height:45%;overflow:auto;padding:.6rem 1rem .7rem;border-top:1px solid var(--color-fd-border);background:var(--color-fd-secondary)}.stitch-playground__output-extras>:first-child{margin-top:0}.stitch-console-editor .cm-line.cm-log-info,.stitch-console-editor .cm-line.cm-log-info *{color:var(--stitch-strong)!important}.stitch-console-editor .cm-line.cm-log-warn,.stitch-console-editor .cm-line.cm-log-warn *{color:#b45309!important}.dark .stitch-console-editor .cm-line.cm-log-warn,.dark .stitch-console-editor .cm-line.cm-log-warn *{color:#fbbf24!important}.stitch-console-editor .cm-line.cm-log-error,.stitch-console-editor .cm-line.cm-log-error *{color:#dc2626!important}.dark .stitch-console-editor .cm-line.cm-log-error,.dark .stitch-console-editor .cm-line.cm-log-error *{color:#f87171!important}.stitch-console-editor .cm-line.cm-log-debug,.stitch-console-editor .cm-line.cm-log-debug *{color:var(--color-fd-muted-foreground)!important}.stitch-knobs{display:flex;flex-direction:column;flex:1;min-height:0}.stitch-knobs__head{flex:none;display:flex;align-items:center;flex-wrap:wrap;gap:.3rem .5rem;padding:.2rem .4rem .2rem .75rem;background:color-mix(in srgb,var(--color-fd-foreground) 3%,transparent);border-bottom:1px solid var(--color-fd-border)}.stitch-knobs__head-title{flex:none;font-size:.7rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--color-fd-muted-foreground)}.stitch-knobs__chips{flex:1 1 auto;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:.25rem}.stitch-knobs__chip{display:inline-flex;align-items:center;gap:.15rem;padding:.02rem .2rem .02rem .4rem;border-radius:.3rem;border:1px solid var(--stitch-border);background:color-mix(in srgb,var(--stitch) 14%,transparent);font-size:.68rem;font-weight:600;color:var(--color-fd-foreground);white-space:nowrap}.stitch-knobs__chip-remove{display:inline-flex;align-items:center;justify-content:center;flex:none;width:.85rem;height:.85rem;padding:0;border:0;border-radius:.25rem;background:transparent;color:var(--color-fd-muted-foreground);font-size:.85rem;line-height:1;cursor:pointer;transition:background .15s ease,color .15s ease}.stitch-knobs__chip-remove:hover{color:var(--color-fd-foreground);background:color-mix(in srgb,var(--color-fd-foreground) 14%,transparent)}.stitch-knobs__chip-remove:focus-visible{outline:2px solid color-mix(in srgb,var(--stitch) 45%,transparent);outline-offset:1px}.stitch-knobs__clear{flex:none;margin-left:auto;font-size:.68rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;padding:.12rem .5rem;border-radius:.3rem;border:1px solid var(--color-fd-border);background:transparent;color:var(--color-fd-muted-foreground);cursor:pointer;transition:background .15s ease,color .15s ease,opacity .15s ease}.stitch-knobs__clear:hover:not(:disabled){color:var(--color-fd-foreground);background:color-mix(in srgb,var(--color-fd-foreground) 6%,transparent)}.stitch-knobs__clear:disabled{opacity:.4;cursor:not-allowed}.stitch-knobs__body{flex:1;min-height:0;overflow:auto;padding:.6rem .85rem .7rem}.stitch-knobs__grid{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.4rem .75rem}.stitch-knobs__field{display:flex;flex-direction:column;gap:.2rem}.stitch-knobs__label{font-size:.72rem;font-weight:600;color:var(--color-fd-muted-foreground);white-space:nowrap}.stitch-knobs__input{box-sizing:border-box;height:1.9rem;font-size:.8rem;padding:.28rem .45rem;border-radius:.4rem;border:1px solid var(--color-fd-border);background:var(--color-fd-background);color:var(--color-fd-foreground)}.stitch-knobs__input--num{width:3rem}.stitch-knobs__input--num-wide{width:4rem}.stitch-knobs__input--select{width:auto}.stitch-knobs__input:focus{outline:2px solid color-mix(in srgb,var(--stitch) 45%,transparent);outline-offset:-1px;border-color:var(--stitch-border)}.stitch-knobs__field--switch .stitch-knobs__switch{margin-block:.375rem}.stitch-knobs__switch{display:inline-flex;align-items:center;justify-content:flex-start;flex:none;box-sizing:border-box;width:2.1rem;height:1.15rem;padding:0 .13rem;border-radius:999px;border:1px solid var(--color-fd-border);background:color-mix(in srgb,var(--color-fd-foreground) 14%,transparent);cursor:pointer;transition:background .15s ease,border-color .15s ease}.stitch-knobs__switch[data-on=true]{justify-content:flex-end;background:var(--stitch);border-color:var(--stitch-border)}.stitch-knobs__switch:focus-visible{outline:2px solid color-mix(in srgb,var(--stitch) 45%,transparent);outline-offset:2px}.stitch-knobs__switch-thumb{width:.85rem;height:.85rem;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25)}