.playground{--playground-bg: #1e1e2e;--playground-surface: #282a36;--playground-border: #3b3f51;--playground-text: #f8f8f2;--playground-text-muted: #6272a4;--playground-accent: #bd93f9;--playground-header-bg: #1e1e2e;--editor-bg: #282a36;--editor-selection: #44475a;--preview-bg: #ffffff;--preview-text: #1a1a1a;--preview-border: #e0e0e0;--terminal-bg: #1e1e1e;--terminal-text: #d4d4d4;display:flex;flex-direction:column;height:100%;background:var(--playground-bg);color:var(--playground-text);font-family:system-ui,-apple-system,sans-serif;border-radius:12px;overflow:hidden;border:1px solid var(--playground-border)}.playground-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--playground-header-bg);border-bottom:1px solid var(--playground-border)}.playground-header-title{font-size:14px;font-weight:600;color:var(--playground-text)}.playground-header-actions{display:flex;align-items:center;gap:4px}.playground-header-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:transparent;border:none;border-radius:6px;color:var(--playground-text-muted);cursor:pointer;transition:all .15s ease}.playground-header-btn:hover{background:var(--playground-surface);color:var(--playground-text)}.playground-header-btn:disabled{opacity:.4;cursor:not-allowed}.playground-header-btn.active{color:var(--playground-accent)}.playground-editor{flex:1;display:flex;flex-direction:column;background:var(--editor-bg);overflow:hidden;min-height:200px}.editor-container{flex:1;overflow:auto}.editor-container .cm-editor{height:100%}.editor-container .cm-scroller{font-family:JetBrains Mono,Fira Code,Monaco,Menlo,monospace;font-size:14px;line-height:1.6}.playground-panel{flex:1;display:flex;flex-direction:column;background:var(--preview-bg);overflow:hidden;min-height:200px}.playground-panel-header{display:flex;align-items:center;justify-content:space-between;padding:0 12px;background:var(--preview-bg);border-bottom:1px solid var(--preview-border)}.playground-panel-tabs{display:flex;gap:0}.playground-panel-tab{display:flex;align-items:center;gap:6px;padding:12px 16px;background:transparent;border:none;border-bottom:2px solid transparent;color:var(--playground-text-muted);font-size:14px;font-weight:500;cursor:pointer;transition:all .15s ease}.playground-panel-tab:hover{color:var(--preview-text)}.playground-panel-tab.active{color:var(--preview-text);border-bottom-color:var(--preview-text)}.console-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;background:#dc3545;color:#fff;font-size:11px;font-weight:600;border-radius:9px}.playground-panel-actions{display:flex;gap:4px}.playground-panel-action-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;background:transparent;border:none;border-radius:4px;color:var(--playground-text-muted);cursor:pointer;transition:all .15s ease}.playground-panel-action-btn:hover{background:var(--preview-border);color:var(--preview-text)}.playground-panel-content{flex:1;position:relative;overflow:hidden}.playground-panel-result,.playground-panel-console{position:absolute;inset:0;display:none;overflow:auto}.playground-panel-result.active,.playground-panel-console.active{display:block}.playground-panel-loading{display:flex;align-items:center;justify-content:center;height:100%;color:var(--playground-text-muted);font-size:14px}.playground-panel-iframe{width:100%;height:100%;border:none;background:#fff}.playground-panel-console{background:var(--terminal-bg);padding:12px;font-family:JetBrains Mono,Fira Code,Monaco,Menlo,monospace;font-size:13px;line-height:1.5;color:var(--terminal-text)}.playground-console-empty{color:var(--playground-text-muted);font-style:italic}.playground-console-message{display:flex;align-items:flex-start;gap:8px;padding:4px 0;border-bottom:1px solid rgba(255,255,255,.05)}.playground-console-message:last-child{border-bottom:none}.playground-console-message .console-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px;font-size:10px;font-weight:700;border-radius:3px;flex-shrink:0;margin-top:2px}.playground-console-message.log .console-icon{display:none}.playground-console-message.error .console-icon{background:#f48771;color:#fff}.playground-console-message.warn .console-icon{background:#dcdcaa;color:#1e1e1e}.playground-console-message.info .console-icon{background:#75beff;color:#fff}.playground-console-message .console-text{flex:1;white-space:pre-wrap;word-break:break-word}.playground-console-message.error{color:#f48771}.playground-console-message.warn{color:#dcdcaa}.playground-console-message.info{color:#75beff}.playground-preview{flex:1;border:1px solid var(--playground-border);position:relative;background:var(--preview-bg);overflow:hidden}.playground-preview iframe{width:100%;height:100%;border:none}.loading{display:flex;align-items:center;justify-content:center;height:100%;color:var(--playground-text-muted)}.playground-terminal{display:flex;flex-direction:column;border:1px solid var(--playground-border);background:var(--terminal-bg);color:var(--terminal-text);font-family:JetBrains Mono,Fira Code,Monaco,Menlo,monospace;font-size:13px;height:100%;min-height:150px}.terminal-header{padding:8px 12px;background:#ffffff0d;border-bottom:1px solid rgba(255,255,255,.1);font-weight:600;flex-shrink:0}.terminal-content{flex:1;padding:12px;overflow-y:auto;line-height:1.6;white-space:pre-wrap;word-wrap:break-word}.terminal-content>div{margin-bottom:4px}.terminal-output{color:#d4d4d4}.terminal-error{color:#f48771;font-weight:500}.terminal-log{color:#d4d4d4}.terminal-warn{color:#dcdcaa;font-weight:500}.terminal-info{color:#75beff}.playground-file-tree{display:flex;flex-direction:column;background:var(--playground-surface);overflow:hidden}.file-tree-header{padding:12px 16px;background:var(--playground-bg);border-bottom:1px solid var(--playground-border);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:var(--playground-text-muted)}.file-tree-content{flex:1;padding:8px;overflow-y:auto}.file-node,.directory-node summary{padding:6px 12px;cursor:pointer;display:flex;align-items:center;gap:8px;border-radius:6px;-webkit-user-select:none;user-select:none;font-size:13px;color:var(--playground-text)}.file-node:hover,.directory-node summary:hover{background:var(--editor-selection)}.directory-children{padding-left:16px}.file-icon,.folder-icon{font-size:14px}.playground-toolbar{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:var(--playground-surface);border-bottom:1px solid var(--playground-border)}.playground-toolbar button{padding:6px 12px;background:var(--playground-accent);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:13px;font-weight:500;transition:all .15s ease}.playground-toolbar button:hover{opacity:.9}.playground-toolbar button:disabled{background:var(--playground-border);cursor:not-allowed}.status-indicator{font-size:13px;color:var(--playground-text-muted)}.status-indicator[data-status=ready]{color:#50fa7b}.status-indicator[data-status=error]{color:#f55}.resizable-panel{position:relative}.resizable-panel-resizer{display:flex;align-items:center;justify-content:center;background:var(--playground-border);transition:background .15s ease}.resizable-panel-resizer:hover,.resizable-panel[data-dragging=true] .resizable-panel-resizer{background:var(--playground-accent)}.resizable-panel-resizer-line{position:absolute;background:transparent;border-radius:2px;transition:background .15s ease}.resizable-panel[data-direction=horizontal] .resizable-panel-resizer-line{width:4px;height:40px}.resizable-panel[data-direction=vertical] .resizable-panel-resizer-line{width:40px;height:4px}.resizable-panel-resizer:hover .resizable-panel-resizer-line,.resizable-panel[data-dragging=true] .resizable-panel-resizer-line{background:#ffffff4d}.resizable-panel[data-dragging=true]{-webkit-user-select:none;user-select:none}.resizable-panel[data-dragging=true] .resizable-panel-first,.resizable-panel[data-dragging=true] .resizable-panel-second{pointer-events:none}.resizable-panel-resizer:focus{outline:none;background:var(--playground-accent)}.resizable-panel-resizer:focus .resizable-panel-resizer-line{background:#ffffff80}@media(max-width:768px){.playground-header{padding:8px 12px;flex-wrap:wrap;gap:8px}.playground-header-title{font-size:13px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.playground-header-actions{gap:2px}.playground-header-btn{width:28px;height:28px}.playground-header-btn[title="Toggle Sidebar"]{display:none}.playground-panel-header{padding:0 8px}.playground-panel-tab{padding:8px 12px;font-size:13px}.playground-panel-console{padding:8px;font-size:12px}.editor-container .cm-scroller{font-size:13px}.resizable-panel[data-direction=vertical] .resizable-panel-resizer{height:12px;cursor:row-resize}.resizable-panel[data-direction=vertical] .resizable-panel-resizer-line{width:60px;height:4px}.playground-file-tree{font-size:12px}.file-node,.directory-node summary{padding:8px 10px}.playground-terminal{min-height:120px;font-size:12px}.terminal-content{padding:8px}}@media(max-width:480px){.playground-header-title{font-size:12px}.playground-header-btn{width:26px;height:26px}.playground-header-btn[title="Toggle Line Numbers"],.playground-header-btn[title="Open in StackBlitz"]{display:none}.playground-panel-tab{padding:6px 10px;font-size:12px;gap:4px}.console-badge{min-width:16px;height:16px;font-size:10px}}.app{display:flex;flex-direction:column;height:100vh;overflow:hidden;background:#0d0d1a}.template-bar{display:flex;align-items:center;justify-content:flex-end;padding:12px 24px;background:#0d0d1a}.template-bar select{padding:8px 16px;font-size:14px;font-weight:500;border:1px solid #3b3f51;border-radius:8px;background:#1e1e2e;color:#f8f8f2;cursor:pointer;transition:all .15s ease}.template-bar select:hover{border-color:#6272a4}.template-bar select:focus{outline:none;border-color:#bd93f9}.app-main{flex:1;overflow:hidden;padding:0 24px 24px}.playground-content{display:flex;flex:1;overflow:hidden}.playground-sidebar{width:240px;flex-shrink:0;border-right:1px solid var(--playground-border);overflow:hidden}.playground-main{flex:1;overflow:hidden}.playground-editor-section,.playground-preview-section{display:flex;flex-direction:column;overflow:hidden;height:100%}.app-main .playground{height:100%}@media(max-width:768px){.app{height:100dvh}.template-bar{padding:8px 12px}.template-bar select{padding:6px 12px;font-size:13px}.app-main{padding:0 12px 12px}.playground-content{flex-direction:column}.playground-sidebar{width:100%;max-height:200px;border-right:none;border-bottom:1px solid var(--playground-border)}.playground-main{flex-direction:column}.playground-editor-section,.playground-preview-section{min-height:150px}}@media(max-width:480px){.app-main{padding:0 8px 8px}.template-bar{padding:6px 8px}.template-bar select{padding:5px 10px;font-size:12px}}*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{width:100%;height:100vh}
