.playground-wrapper{--pg-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace}.playground-wrapper .pg-toolbar{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:space-between;padding:.65rem 1rem;border-bottom:1px solid var(--bi-border);background:var(--bi-surface-2);border-radius:var(--bs-card-border-radius) var(--bs-card-border-radius) 0 0}.playground-wrapper .pg-toolbar-right{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.playground-wrapper .pg-mode-btn{border-color:var(--bi-border);color:var(--bi-text-muted)}.playground-wrapper .pg-mode-btn.active{background:var(--brand);border-color:var(--brand);color:#fff}.playground-wrapper .pg-autorun{margin:0 .25rem 0 0;font-size:.875rem;color:var(--bi-text-muted);white-space:nowrap}.playground-wrapper .pg-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0}.playground-wrapper .pg-layout.pg-preview-hidden{grid-template-columns:minmax(0,1fr)}.playground-wrapper .pg-layout.pg-preview-hidden .pg-preview-col{display:none}.playground-wrapper .pg-layout.pg-preview-hidden .pg-editor{border-right:none}.playground-wrapper .pg-editor{display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--bi-border)}.playground-wrapper .pg-filebar{position:relative;display:flex;align-items:stretch;border-bottom:1px solid var(--bi-border);background:var(--bi-surface-2)}.playground-wrapper .pg-file-tabs{display:flex;flex:1;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.playground-wrapper .pg-file-tabs::-webkit-scrollbar{height:4px}.playground-wrapper .pg-file-tabs::-webkit-scrollbar-thumb{background:var(--bi-border);border-radius:999px}.playground-wrapper .pg-file-tab{display:inline-flex;align-items:center;gap:.3rem;flex:none;max-width:240px;padding:.4rem .5rem .4rem .75rem;border-right:1px solid var(--bi-border);border-bottom:2px solid transparent;font-family:var(--pg-mono);font-size:.82rem;color:var(--bi-text-muted);cursor:pointer;user-select:none;white-space:nowrap}.playground-wrapper .pg-file-tab:hover{color:var(--bi-text);background:var(--bi-surface)}.playground-wrapper .pg-file-tab.active{color:var(--brand);border-bottom-color:var(--brand);background:var(--bi-surface)}.playground-wrapper .pg-file-name{overflow:hidden;text-overflow:ellipsis}.playground-wrapper .pg-file-tab .pg-file-globe{font-size:.7rem;color:var(--brand);opacity:.85}.playground-wrapper .pg-file-close{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border:none;border-radius:4px;background:none;color:inherit;font-size:.7rem;line-height:1;opacity:.5;cursor:pointer}.playground-wrapper .pg-file-close:hover{opacity:1;color:var(--brand);background:rgba(var(--brand-rgb),.15)}.playground-wrapper .pg-file-tools{display:flex;flex:none;align-items:center;gap:2px;padding:0 .35rem}.playground-wrapper .pg-file-actions{display:flex;flex:none;align-items:center;gap:2px;margin-left:auto;padding:0 .35rem;border-left:1px solid var(--bi-border)}.playground-wrapper .pg-file-btn{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;border:none;border-radius:6px;background:none;color:var(--bi-text-muted);font-size:.85rem;cursor:pointer}.playground-wrapper .pg-file-btn:hover,.playground-wrapper .pg-file-btn[aria-expanded=true]{color:var(--brand);background:rgba(var(--brand-rgb),.12)}.playground-wrapper .pg-file-rename{width:118px;padding:.05rem .3rem;font-family:var(--pg-mono);font-size:.8rem;color:var(--bi-text);background:var(--bi-surface);border:1px solid var(--brand);border-radius:4px;outline:none}.playground-wrapper .pg-menu{position:absolute;top:calc(100% + 3px);right:6px;z-index:30;min-width:176px;padding:.25rem;background:var(--bi-surface);border:1px solid var(--bi-border);border-radius:8px;box-shadow:0 8px 24px #00000024}.playground-wrapper .pg-menu-item{display:flex;align-items:center;gap:.45rem;width:100%;padding:.4rem .55rem;border:none;border-radius:6px;background:none;font-size:.82rem;color:var(--bi-text);text-align:left;cursor:pointer}.playground-wrapper .pg-menu-item:hover:not(:disabled){color:var(--brand-ink);background:var(--bi-surface-2)}.playground-wrapper .pg-menu-item:disabled{opacity:.4;cursor:not-allowed}.playground-wrapper .pg-menu-danger{color:#c92a2a}.playground-wrapper .pg-menu-danger:hover:not(:disabled){color:#c92a2a;background:#c92a2a14}html[data-theme=dark] .playground-wrapper .pg-menu-danger{color:#ff8787}html[data-theme=dark] .playground-wrapper .pg-menu-danger:hover:not(:disabled){color:#ff8787;background:#ff87871a}.playground-wrapper .pg-editor-body{display:flex;flex:1;height:auto;min-height:0;min-width:0}.playground-wrapper .pg-cm-host{flex:1;min-width:0;min-height:0}.playground-wrapper .pg-cm-host .CodeMirror{height:100%;font-family:var(--pg-mono);font-size:.85rem;line-height:1.55;border:none;border-radius:0;background:var(--bi-surface);color:var(--bi-text)}.playground-wrapper .pg-code{flex:1;min-height:420px;width:100%;border:none;resize:vertical;padding:.75rem .9rem;font-family:var(--pg-mono);font-size:.85rem;line-height:1.55;color:var(--bi-text);background:var(--bi-surface);tab-size:2;outline:none}.playground-wrapper .pg-code:focus{box-shadow:none}.playground-wrapper .pg-editor-hint{padding:.35rem .9rem;font-size:.75rem;color:var(--bi-text-muted);border-top:1px solid var(--bi-border);background:var(--bi-surface-2)}.playground-wrapper .pg-editor-triple{display:flex;flex-direction:column;flex:1;min-width:0}.playground-wrapper .pg-files-row{display:flex;align-items:stretch;height:520px;min-height:0;min-width:0}.playground-wrapper .pg-file-col{display:flex;flex-direction:column;flex:1;min-width:0}.playground-wrapper .pg-file-tree{flex:none;width:200px;min-height:0;padding:.25rem 0;overflow-y:auto;border-right:1px solid var(--bi-border);background:var(--bi-surface-2);scrollbar-width:thin}.playground-wrapper .pg-file-tree::-webkit-scrollbar{width:5px}.playground-wrapper .pg-file-tree::-webkit-scrollbar-thumb{background:var(--bi-border);border-radius:999px}.playground-wrapper .pg-tree-group,.playground-wrapper .pg-tree-children{display:flex;flex-direction:column;min-width:0}.playground-wrapper .pg-tree-dir{display:flex;align-items:center;gap:.3rem;width:100%;padding:.3rem .5rem;border:none;background:none;font-family:var(--pg-mono);font-size:.78rem;color:var(--bi-text-muted);text-align:left;white-space:nowrap;cursor:pointer;user-select:none}.playground-wrapper .pg-tree-dir:hover{color:var(--bi-text);background:var(--bi-surface)}.playground-wrapper .pg-tree-chevron{flex:none;font-size:.68rem;opacity:.75}.playground-wrapper .pg-tree-dir-name{overflow:hidden;text-overflow:ellipsis}.playground-wrapper .pg-tree-file{display:flex;align-items:center;gap:.3rem;padding:.3rem .5rem;border-left:2px solid transparent;font-family:var(--pg-mono);font-size:.78rem;color:var(--bi-text-muted);white-space:nowrap;cursor:pointer;user-select:none}.playground-wrapper .pg-tree-file:hover{color:var(--bi-text);background:var(--bi-surface)}.playground-wrapper .pg-tree-file.active{color:var(--brand);border-left-color:var(--brand);background:var(--bi-surface)}.playground-wrapper .pg-tree-file .pg-file-globe{font-size:.68rem;color:var(--brand);opacity:.85}.playground-wrapper .pg-editor-triple.pg-tree-mode .pg-file-rename{width:168px}.playground-wrapper .pg-lang-html{--pg-tc: #e0620f}.playground-wrapper .pg-lang-css{--pg-tc: #1f6fb2}.playground-wrapper .pg-lang-js{--pg-tc: #9a7200}.playground-wrapper .pg-lang-vue{--pg-tc: #2f9e68}.playground-wrapper .pg-lang-json{--pg-tc: #7a5cc4}.playground-wrapper .pg-lang-md{--pg-tc: #64748b}.playground-wrapper .pg-file-icon{flex:none;font-size:.85rem;color:var(--pg-tc, var(--bi-text-muted))}html[data-theme=dark] .playground-wrapper .pg-lang-html{--pg-tc: #ff9159}html[data-theme=dark] .playground-wrapper .pg-lang-css{--pg-tc: #7cc4ff}html[data-theme=dark] .playground-wrapper .pg-lang-js{--pg-tc: #ffd76e}html[data-theme=dark] .playground-wrapper .pg-lang-vue{--pg-tc: #6ee7a8}html[data-theme=dark] .playground-wrapper .pg-lang-json{--pg-tc: #b8a2ff}html[data-theme=dark] .playground-wrapper .pg-lang-md{--pg-tc: #94a3b8}html[data-theme=dark] .playground-wrapper .CodeMirror,html[data-theme=dark] .playground-wrapper .CodeMirror-gutters{background:var(--bi-surface);color:var(--bi-text);border-color:var(--bi-border)}html[data-theme=dark] .playground-wrapper .CodeMirror-cursor{border-left-color:var(--bi-text)}html[data-theme=dark] .playground-wrapper .CodeMirror-linenumber{color:var(--bi-text-muted)}html[data-theme=dark] .playground-wrapper .CodeMirror-selected{background:rgba(var(--brand-rgb),.25)}html[data-theme=dark] .playground-wrapper .CodeMirror .cm-comment{color:#8b9a86}html[data-theme=dark] .playground-wrapper .CodeMirror .cm-keyword{color:#c792ea}html[data-theme=dark] .playground-wrapper .CodeMirror .cm-string,html[data-theme=dark] .playground-wrapper .CodeMirror .cm-string-2{color:#a5d6a7}html[data-theme=dark] .playground-wrapper .CodeMirror .cm-number,html[data-theme=dark] .playground-wrapper .CodeMirror .cm-atom{color:#f0a868}html[data-theme=dark] .playground-wrapper .CodeMirror .cm-tag{color:#7fd1c1}html[data-theme=dark] .playground-wrapper .CodeMirror .cm-attribute{color:#ffcb6b}html[data-theme=dark] .playground-wrapper .CodeMirror .cm-property,html[data-theme=dark] .playground-wrapper .CodeMirror .cm-def,html[data-theme=dark] .playground-wrapper .CodeMirror .cm-variable-2,html[data-theme=dark] .playground-wrapper .CodeMirror .cm-meta{color:#93c5fd}html[data-theme=dark] .playground-wrapper .CodeMirror .cm-variable,html[data-theme=dark] .playground-wrapper .CodeMirror .cm-variable-3,html[data-theme=dark] .playground-wrapper .CodeMirror .cm-bracket{color:#e2e8f0}html[data-theme=dark] .playground-wrapper .CodeMirror .cm-operator{color:#89ddff}html[data-theme=dark] .playground-wrapper .CodeMirror .cm-builtin,html[data-theme=dark] .playground-wrapper .CodeMirror .cm-qualifier{color:#f78c6c}html[data-theme=dark] .playground-wrapper .CodeMirror .cm-error{color:#ff7b72}@media (max-width: 991.98px){.playground-wrapper .pg-files-row{height:360px}.playground-wrapper .pg-file-tree{width:168px}.playground-wrapper .pg-file-tab{max-width:210px}}.playground-wrapper .pg-preview-col{display:flex;flex-direction:column;min-width:0}.playground-wrapper .pg-preview-head{display:flex;align-items:center;gap:.35rem;padding:.45rem .9rem;font-size:.85rem;color:var(--bi-text-muted);border-bottom:1px solid var(--bi-border);background:var(--bi-surface-2)}.playground-wrapper .pg-mode-badge{margin-left:auto;font-size:.75rem;padding:.1rem .5rem;border-radius:999px;color:var(--brand);background:rgba(var(--brand-rgb),.12)}.playground-wrapper .pg-frame{flex:1;min-height:300px;width:100%;border:none;background:#fff}.playground-wrapper .pg-fs-btn{padding:.1rem .4rem;line-height:1;color:var(--bi-text-muted)}.playground-wrapper .pg-fs-btn:hover{color:var(--brand)}.playground-wrapper .pg-preview-col.pg-fullscreen{position:fixed;inset:0;z-index:10015;background:var(--bi-surface)}.playground-wrapper .pg-card.pg-workspace-fullscreen{position:fixed;inset:0;z-index:10015;display:flex;flex-direction:column;margin:0;border-radius:0;background:var(--bi-surface);overflow:hidden}.playground-wrapper .pg-card.pg-workspace-fullscreen .pg-toolbar,.playground-wrapper .pg-card.pg-workspace-fullscreen .pg-preview-head{flex:none}.playground-wrapper .pg-card.pg-workspace-fullscreen .pg-footer-tip{display:none}.playground-wrapper .pg-card.pg-workspace-fullscreen .pg-layout{flex:1;min-height:0;grid-template-rows:minmax(0,1fr)}.playground-wrapper .pg-card.pg-workspace-fullscreen .pg-editor,.playground-wrapper .pg-card.pg-workspace-fullscreen .pg-editor-triple,.playground-wrapper .pg-card.pg-workspace-fullscreen .pg-files-row,.playground-wrapper .pg-card.pg-workspace-fullscreen .pg-file-col,.playground-wrapper .pg-card.pg-workspace-fullscreen .pg-editor-body,.playground-wrapper .pg-card.pg-workspace-fullscreen .pg-preview-col{min-height:0}.playground-wrapper .pg-card.pg-workspace-fullscreen .pg-files-row{flex:1;height:auto}.playground-wrapper .pg-card.pg-workspace-fullscreen .pg-console-body{max-height:32vh}body.pg-fs-open{overflow:hidden}.playground-wrapper .pg-preview-col.pg-fullscreen .pg-console-body{max-height:32vh}.playground-wrapper .pg-console-wrap{border-top:1px solid var(--bi-border);background:var(--bi-surface)}.playground-wrapper .pg-console-head{display:flex;align-items:center;justify-content:space-between;padding:.35rem .9rem;font-size:.85rem;color:var(--bi-text-muted);cursor:pointer;user-select:none}.playground-wrapper .pg-console-count{display:inline-block;min-width:1.4rem;text-align:center;margin-left:.25rem;font-size:.72rem;padding:.05rem .35rem;border-radius:999px;color:var(--bi-text);background:var(--bi-surface-2);border:1px solid var(--bi-border)}.playground-wrapper .pg-console-clear{padding:.1rem .3rem;color:var(--bi-text-muted)}.playground-wrapper .pg-console-clear:hover{color:var(--bi-text)}.playground-wrapper .pg-console-arrow{transition:transform .2s ease}.playground-wrapper .pg-console-collapsed .pg-console-arrow{transform:rotate(-90deg)}.playground-wrapper .pg-console-body{max-height:180px;overflow-y:auto;padding:.25rem 0;font-family:var(--pg-mono);font-size:.78rem;line-height:1.6}.playground-wrapper .pg-console-collapsed .pg-console-body{display:none}.playground-wrapper .pg-console-empty{padding:.35rem .9rem;color:var(--bi-text-muted)}.playground-wrapper .pg-console-line{display:flex;gap:.5rem;padding:.15rem .9rem;border-bottom:1px dashed var(--bi-border);word-break:break-all;white-space:pre-wrap}.playground-wrapper .pg-console-line:last-child{border-bottom:none}.playground-wrapper .pg-console-line .pg-console-level{flex:none;width:2.6rem;text-align:right;color:var(--bi-text-muted)}.playground-wrapper .pg-console-line.log .pg-console-text{color:var(--bi-text)}.playground-wrapper .pg-console-line.warn .pg-console-text,.playground-wrapper .pg-console-line.warn .pg-console-level{color:#b58900}.playground-wrapper .pg-console-line.error .pg-console-text,.playground-wrapper .pg-console-line.error .pg-console-level{color:#d63384}.playground-wrapper .pg-footer-tip{padding:.5rem 1rem;font-size:.8rem;color:var(--bi-text-muted);border-top:1px solid var(--bi-border);background:var(--bi-surface-2);border-radius:0 0 var(--bs-card-border-radius) var(--bs-card-border-radius)}@media (max-width: 991.98px){.playground-wrapper .pg-layout{grid-template-columns:1fr}.playground-wrapper .pg-editor{border-right:none;border-bottom:1px solid var(--bi-border)}.playground-wrapper .pg-code,.playground-wrapper .pg-frame{min-height:260px}}@media (max-width: 576px){.playground-wrapper .pg-toolbar{padding:.5rem .75rem}.playground-wrapper .pg-toolbar>.btn-group{width:100%}.playground-wrapper .pg-toolbar>.btn-group>.btn{flex:1 1 0;min-width:0;padding-left:.3rem;padding-right:.3rem;font-size:.78rem;white-space:nowrap}.playground-wrapper .pg-toolbar>.btn-group>.btn i{display:none}.playground-wrapper .pg-toolbar-right{width:100%;gap:.3rem}.playground-wrapper .pg-toolbar-right .btn{padding-left:.35rem;padding-right:.35rem;font-size:.78rem}.playground-wrapper .pg-file-tab{max-width:150px;padding:.35rem .4rem;font-size:.78rem}.playground-wrapper .pg-toolbar .btn,.playground-wrapper .pg-fs-btn,.playground-wrapper .pg-console-clear,.playground-wrapper .favorite-btn{min-width:40px;min-height:40px}.playground-wrapper .pg-file-tab{min-height:40px;padding-top:0;padding-bottom:0}.playground-wrapper .pg-file-btn,.playground-wrapper .pg-file-close{width:40px;height:40px}.playground-wrapper .pg-tree-dir,.playground-wrapper .pg-tree-file{padding-top:0;padding-bottom:0;min-height:40px}.playground-wrapper .pg-file-tree{width:148px;font-size:.75rem}.playground-wrapper .pg-tree-dir,.playground-wrapper .pg-tree-file{padding-top:.25rem;padding-bottom:.25rem;font-size:.75rem}.playground-wrapper .pg-editor-triple.pg-tree-mode .pg-file-rename{width:118px}}
