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