.react-playground-page ::selection{background:#fe961547;color:#fff}.container.react-playground-container{width:min(100% - 2rem,1480px);max-width:none;padding:0}.tool-panel.react-playground-panel{position:relative;overflow:clip;padding:0}.react-playground-command-bar{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:12px 20px;padding:14px 20px;border-bottom:1px solid var(--tool-line)}.react-playground-command-context,.react-playground-command-actions,.react-playground-status,.react-playground-file-tabs,.react-playground-pane-actions{display:flex;align-items:center}.react-playground-command-context{min-width:0;gap:16px}.react-playground-command-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}.react-playground-runtime-mark{width:44px;height:44px;flex:0 0 auto;display:grid;place-items:center;border:1px solid var(--tool-line);border-radius:var(--tool-radius);background:var(--tool-raised);color:var(--accent-color);font-size:20px}.react-playground-runtime-copy{min-width:0;display:grid;gap:2px}.react-playground-runtime-copy strong{color:var(--tool-text);font-size:17px;font-weight:600;line-height:1.4}.react-playground-runtime-copy span{overflow:hidden;color:var(--tool-text-dim);font-size:14px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.react-playground-status{min-height:36px;gap:8px;border:1px solid var(--tool-line);border-radius:999px;padding:4px 14px;background:var(--tool-field);color:var(--tool-text-dim);font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.react-playground-status:before{content:"";width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:var(--tool-text-faint)}.react-playground-status[data-state=loading]:before,.react-playground-status[data-state=compiling]:before{border:1px solid var(--tool-accent-line);border-top-color:var(--accent-color);background:transparent;animation:react-playground-spin .75s linear infinite}.react-playground-status[data-state=ready]:before,.react-playground-status[data-state=success]:before{background:#4fc47f}.react-playground-status[data-state=dirty]:before{background:#e0a552}.react-playground-status[data-state=error]:before{background:#ff8585}.react-playground-auto-run{min-height:44px;display:inline-flex;align-items:center;gap:8px;margin:0;padding:0 8px;color:var(--tool-text-dim);font-size:15px;font-weight:600;cursor:pointer}.react-playground-auto-run input{width:16px;height:16px;accent-color:var(--accent-color)}.tool-btn.react-playground-run,.tool-btn-secondary.react-playground-reset{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px}.tool-btn.react-playground-run{min-width:108px}.tool-btn.react-playground-run:disabled{cursor:wait}.react-playground-panel :is(button,select,input):focus-visible,.react-playground-splitter:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.react-playground-mobile-tabs{display:none}.react-playground-grid{--react-editor-width: 48%;display:grid;grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);grid-template-areas:"code preview";min-height:640px}.react-playground-pane{min-width:0;min-height:0;display:flex;flex-direction:column}.react-playground-code-pane{grid-area:code;border-inline-end:1px solid var(--tool-line)}.react-playground-preview-pane{grid-area:preview}.react-playground-splitter{display:none}.react-playground-pane-header{min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-bottom:1px solid var(--tool-field-line);background:var(--tool-raised)}.react-playground-preview-pane .react-playground-pane-header{flex-wrap:wrap}.react-playground-preview-pane .react-playground-pane-header>span{padding-inline-start:4px;white-space:nowrap;color:var(--tool-text);font-size:17px;font-weight:600;line-height:1.4}.react-playground-file-tabs{flex:0 0 auto;gap:6px}.react-playground-file-tab{min-height:44px;display:inline-flex;align-items:center;gap:8px;border:1px solid transparent;border-radius:var(--tool-radius);padding:0 14px;background:transparent;color:var(--tool-text-dim);font-family:var(--font-monospace);font-size:14px;cursor:pointer}.react-playground-file-tab:hover{color:var(--tool-text)}.react-playground-file-tab.is-active{border-color:var(--tool-accent-line);background:var(--tool-accent-soft);color:var(--accent-color)}.react-playground-editor-meta{min-width:0;display:flex;align-items:center;gap:10px;color:var(--tool-text-faint);font-size:13.5px;white-space:nowrap}.react-playground-editor-meta span{min-width:0;overflow:hidden;text-overflow:ellipsis}.react-playground-editor-meta span:first-child{font-weight:600}.react-playground-editor-shell{min-height:0;flex:1;position:relative;overflow:hidden;background:var(--tool-field);direction:ltr}.react-playground-editor-host,.react-playground-editor-host>.cm-editor{width:100%;height:100%;min-height:588px}.react-playground-editor-host>.cm-editor{background:var(--tool-field);text-align:start}.react-playground-editor-host>.cm-editor .cm-gutters{background:var(--tool-field)}.react-playground-editor-fallback{width:100%;min-height:588px;resize:none;border:0;border-radius:0;padding:16px;background:var(--tool-field);color:var(--tool-text);font-family:var(--font-monospace);font-size:14px;line-height:1.65;caret-color:var(--accent-color);-moz-tab-size:2;tab-size:2;white-space:pre;overflow:auto}.react-playground-editor-fallback:focus-visible,.react-playground-preview-shell:focus-visible,.react-playground-preview-canvas:focus-within{outline:2px solid var(--focus-ring);outline-offset:-3px}.react-playground-pane-actions{min-width:0;flex-wrap:wrap;justify-content:flex-end;gap:8px}.react-playground-viewport,.react-playground-preview-action,.react-playground-diagnostic-toggle{min-height:44px;border:1px solid var(--tool-line-strong);border-radius:var(--tool-radius);background:#ffffff0d;color:var(--tool-text);font-family:var(--font-jakarta);font-size:15px;font-weight:600;cursor:pointer}.react-playground-viewport{padding:0 12px;background:var(--tool-field)}.react-playground-preview-action{width:44px;height:44px;flex:0 0 44px;display:inline-grid;place-items:center;padding:0}.react-playground-diagnostic-toggle{display:inline-flex;align-items:center;gap:8px;padding:0 14px}.react-playground-preview-action:hover:not(:disabled),.react-playground-diagnostic-toggle:hover{border-color:#ffffff4d;background:#ffffff1a}.react-playground-preview-action[aria-pressed=true],.react-playground-diagnostic-toggle[aria-expanded=true]{border-color:var(--tool-accent-line);background:var(--tool-accent-soft);color:var(--accent-color)}.react-playground-preview-action:disabled{opacity:.5;cursor:not-allowed}.react-playground-diagnostic-toggle.has-issues{border-color:#ff63634d;color:#ff8585}.react-playground-diagnostic-toggle output{min-width:24px;height:24px;display:inline-grid;place-items:center;border-radius:999px;padding:0 6px;background:#ffffff1a;font-family:var(--font-monospace);font-size:13px}.react-playground-preview-shell{box-sizing:border-box;min-height:0;flex:1;position:relative;overflow:hidden;display:block;padding:1rem;background:var(--tool-field);scrollbar-color:rgba(255,255,255,.3) transparent}.react-playground-preview-shell[data-scale-mode=actual]{overflow:auto}.react-playground-preview-canvas{position:relative;min-width:0;min-height:0;margin-inline:auto;overflow:hidden;border-radius:var(--tool-radius);background:#fff}.react-playground-preview-scale-canvas{position:relative;overflow:hidden;background:#fff;transform-origin:top left}.react-playground-preview-frame{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:0;background:#fff}.react-playground-preview-frame.is-staging{visibility:hidden;pointer-events:none}.react-playground-preview-frame.is-visible{visibility:visible}.react-playground-preview-frame.is-visible.is-promoting{animation:react-playground-preview-resolve .22s cubic-bezier(.16,1,.3,1)}@keyframes react-playground-preview-resolve{0%{opacity:.72;filter:saturate(.78);transform:scale(.996)}to{opacity:1;filter:saturate(1);transform:scale(1)}}.react-playground-preview-placeholder{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;display:grid;place-items:center;padding:32px;background:var(--tool-raised);color:var(--tool-text-dim);text-align:center}.react-playground-preview-placeholder div{max-width:28rem}.react-playground-preview-placeholder i{display:block;margin-bottom:16px;color:var(--accent-color);font-size:30px}.react-playground-preview-placeholder strong{display:block;margin-bottom:8px;color:var(--tool-text);font-size:18px;font-weight:600}.react-playground-preview-placeholder p{margin:0;font-size:15px;line-height:1.6}.react-playground-preview-loading{position:absolute;z-index:5;top:12px;left:50%;min-height:40px;display:inline-flex;align-items:center;gap:10px;border:1px solid var(--tool-line-strong);border-radius:var(--tool-radius);padding:8px 14px;background:var(--tool-raised);color:var(--tool-text);font-size:14px;font-weight:600;transform:translate(-50%)}.react-playground-preview-loading i{color:var(--accent-color)}.react-playground-preview-error{position:absolute;z-index:6;inset-inline:1rem;bottom:1rem;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px;border:1px solid rgba(255,99,99,.3);border-radius:12px;padding:14px;background:linear-gradient(#ff636314,#ff636314),var(--tool-raised);color:var(--tool-text)}.react-playground-preview-error>i{margin-top:3px;color:#ff8585}.react-playground-preview-error strong,.react-playground-preview-error p,.react-playground-preview-error code{display:block}.react-playground-preview-error strong{margin-bottom:4px;font-size:15px;font-weight:600}.react-playground-preview-error p{margin:0;color:var(--tool-text-dim);font-size:15px;line-height:1.5}.react-playground-preview-error code{margin-top:6px;color:#ff8585;font-family:var(--font-monospace);font-size:14px}.react-playground-preview-error button,.react-playground-drawer-close{width:44px;height:44px;display:grid;place-items:center}.react-playground-preview-error button,.react-playground-drawer-tab,.react-playground-drawer-close,.react-playground-clear-console,.react-playground-undo button{border:1px solid transparent;border-radius:var(--tool-radius);background:transparent;color:var(--tool-text-dim);font-family:var(--font-jakarta);font-size:15px;font-weight:600;cursor:pointer}.react-playground-preview-error button:hover,.react-playground-drawer-tab:hover,.react-playground-drawer-close:hover,.react-playground-clear-console:hover,.react-playground-undo button:hover{background:#ffffff14;color:#fff}.react-playground-drawer{border-top:1px solid var(--tool-line);background:var(--tool-panel)}.react-playground-drawer:not(.is-open){display:none}.react-playground-drawer-header{min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-bottom:1px solid var(--tool-line)}.react-playground-drawer-tabs{display:flex;align-items:center;gap:6px}.react-playground-drawer-tab,.react-playground-clear-console,.react-playground-undo button{min-height:44px;padding:0 14px}.react-playground-drawer-tab.is-active{border-color:var(--tool-accent-line);background:var(--tool-accent-soft);color:var(--accent-color)}.react-playground-drawer-panel{min-height:150px;max-height:260px;overflow:auto;background:var(--tool-field);scrollbar-color:rgba(255,255,255,.3) transparent}.react-playground-problem-list,.react-playground-console-list{margin:0;padding:0;list-style:none}.react-playground-problem-list li+li,.react-playground-console-list li+li{border-top:1px solid var(--tool-line)}.react-playground-problem{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:12px;border:0;padding:12px 20px;background:transparent;color:var(--tool-text);text-align:start;cursor:pointer}.react-playground-problem:hover:not(:disabled){background:#ff636314}.react-playground-problem:disabled{cursor:default}.react-playground-problem>i{margin-top:4px;color:#ff8585}.react-playground-problem-copy{min-width:0;display:grid;gap:4px}.react-playground-problem-copy strong{color:var(--tool-text);font-family:var(--font-jakarta);font-size:15px;font-weight:500;line-height:1.5}.react-playground-problem-copy span{color:#ff8585;font-family:var(--font-monospace);font-size:13.5px}.react-playground-console-toolbar{display:flex;justify-content:flex-end;padding:6px 12px;border-bottom:1px solid var(--tool-line)}.react-playground-console-list li{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;padding:10px 20px}.react-playground-console-level{padding-top:2px;color:var(--tool-text-faint);font-family:var(--font-monospace);font-size:13px;font-weight:600;text-transform:uppercase}.react-playground-console-list li[data-level=warn] .react-playground-console-level{color:#e0a552}.react-playground-console-list li[data-level=error] .react-playground-console-level{color:#ff8585}.react-playground-console-list pre{margin:0;overflow-wrap:anywhere;white-space:pre-wrap;color:var(--tool-text);font-family:var(--font-monospace);font-size:14px;line-height:1.55}.react-playground-empty-log{margin:0;padding:20px;color:var(--tool-text-faint);font-size:15px;text-align:center}.react-playground-undo{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;border-top:1px solid var(--tool-line);padding:8px 12px 8px 20px;color:var(--tool-text-dim);font-size:15px}.react-playground-undo button{color:var(--accent-color)}.react-playground-handoff{display:inline-flex;align-items:center;gap:.45rem;width:fit-content;margin-top:.15rem;text-decoration:none}@media (min-width: 1100px){.react-playground-grid{grid-template-columns:minmax(0,var(--react-editor-width)) 1.25rem minmax(0,1fr);grid-template-areas:"code splitter preview"}.react-playground-code-pane{border-inline-end:0}.react-playground-splitter{grid-area:splitter;position:relative;display:grid;place-items:center;border-inline:1px solid var(--tool-line);cursor:col-resize;touch-action:none}.react-playground-splitter span{position:relative;width:2px;height:52px;border-radius:2px;background:var(--tool-line-strong);transform:scaleY(1);transition:transform .15s ease,background-color .15s ease}.react-playground-splitter:hover span,.react-playground-splitter:focus-visible span,.react-playground-grid.is-resizing .react-playground-splitter span{background:var(--accent-color);transform:scaleY(1.38)}.react-playground-panel .react-playground-splitter:focus-visible{outline-offset:-3px}.react-playground-grid.is-resizing,.react-playground-grid.is-resizing *{cursor:col-resize;-webkit-user-select:none;user-select:none}.react-playground-grid.is-resizing iframe{pointer-events:none}}@media (min-width: 769px){.react-playground-grid.is-preview-focused{grid-template-columns:minmax(0,1fr);grid-template-areas:"preview";min-height:max(640px,calc(100dvh - 5.5rem))}.react-playground-grid.is-preview-focused .react-playground-code-pane,.react-playground-grid.is-preview-focused .react-playground-splitter{display:none}.react-playground-grid.is-preview-focused .react-playground-preview-pane{min-height:max(640px,calc(100dvh - 5.5rem))}.react-playground-grid.is-preview-focused .react-playground-pane-header{position:sticky;top:calc(var(--nav-height) + .5rem);z-index:7}}@media (max-width: 1519px){.react-playground-diagnostic-toggle span:not(.tool-sr-only){display:none}}@media (max-width: 1099px){.react-playground-preview-pane .react-playground-pane-header{align-items:flex-start}.react-playground-preview-pane .react-playground-pane-actions{width:100%;justify-content:flex-start}.react-playground-viewport{flex:1 1 100%;min-width:0}}@media (max-width: 900px){.react-playground-command-bar{align-items:flex-start}.react-playground-command-actions{max-width:58%}.react-playground-grid{min-height:600px}.react-playground-editor-host,.react-playground-editor-host>.cm-editor,.react-playground-editor-fallback{min-height:548px}.react-playground-editor-meta span:first-child{display:none}}@media (max-width: 768px){.container.react-playground-container{width:min(100% - 1rem,100%)}.tool-panel.react-playground-panel{overflow:visible;border-radius:16px}.react-playground-command-bar{display:grid;grid-template-columns:minmax(0,1fr);padding:12px}.react-playground-command-context{flex-wrap:wrap;gap:12px}.react-playground-runtime-copy{flex:1 1 12rem}.react-playground-runtime-copy span{overflow:visible;text-overflow:clip;white-space:normal}.react-playground-command-actions{width:100%;max-width:none;display:grid;grid-template-columns:minmax(0,1fr) auto auto}.react-playground-status{justify-self:start}.react-playground-auto-run{justify-self:end}.react-playground-reset span{display:none}.tool-btn-secondary.react-playground-reset{width:44px;padding-inline:0}.tool-btn.react-playground-run{min-width:0}.react-playground-mobile-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid var(--tool-line)}.react-playground-mobile-tab{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--tool-text-dim);font-family:var(--font-jakarta);font-size:15px;font-weight:600;cursor:pointer}.react-playground-mobile-tab.is-active{border-bottom-color:var(--accent-color);background:var(--tool-accent-soft);color:var(--accent-color)}.react-playground-grid{display:block;min-height:610px}.react-playground-pane{display:none;min-height:610px}.react-playground-pane.is-mobile-active{display:flex}.react-playground-code-pane{border-inline-end:0}.react-playground-pane-header{padding-inline:8px}.react-playground-file-tab{padding-inline:10px}.react-playground-editor-host,.react-playground-editor-host>.cm-editor,.react-playground-editor-fallback{min-height:558px}.react-playground-editor-host>.cm-editor,.react-playground-editor-fallback{font-size:16px}.react-playground-preview-shell{min-height:558px;padding:.65rem}.react-playground-pane-actions{width:100%;justify-content:space-between}.react-playground-expand-preview{display:none}.react-playground-drawer{position:fixed;z-index:1200;inset:auto 0 0;max-height:min(62dvh,520px);overflow:hidden;border:1px solid var(--tool-line-strong);border-radius:16px 16px 0 0;box-shadow:0 -18px 56px #0000008c}.react-playground-drawer-panel{max-height:calc(min(62dvh,520px) - 61px)}.react-playground-preview-error{inset-inline:.65rem;bottom:.65rem;padding:12px}}@media (max-width: 480px){.react-playground-status{max-width:100%;white-space:normal}.react-playground-command-actions{grid-template-columns:minmax(0,1fr) 44px}.react-playground-auto-run{grid-column:1 / -1;grid-row:1;justify-self:start}.tool-btn.react-playground-run{grid-column:1;grid-row:2}.tool-btn-secondary.react-playground-reset{grid-column:2;grid-row:2}.react-playground-preview-pane .react-playground-pane-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));justify-content:stretch}.react-playground-preview-pane .react-playground-viewport{grid-column:1 / -1}.react-playground-preview-pane .react-playground-preview-action,.react-playground-preview-pane .react-playground-diagnostic-toggle{width:100%;min-width:0;justify-content:center}.react-playground-file-tab{padding-inline:8px;font-size:13.5px}.react-playground-file-tab i{display:none}.react-playground-editor-meta{font-size:13px}.react-playground-preview-error{grid-template-columns:auto minmax(0,1fr)}.react-playground-preview-error button{grid-column:2;grid-row:1;justify-self:end;margin-bottom:-2.25rem}.react-playground-undo{align-items:flex-start}}@media (prefers-reduced-motion: reduce){.react-playground-preview-canvas,.react-playground-splitter span{transition:none}.react-playground-preview-frame.is-visible.is-promoting{animation:none}.react-playground-status[data-state=loading]:before,.react-playground-status[data-state=compiling]:before{animation:none;border-color:var(--accent-color)}}@media (forced-colors: active){.react-playground-status:before{forced-color-adjust:none}.tool-panel.react-playground-panel,.react-playground-pane,.react-playground-editor-shell,.react-playground-preview-error,.react-playground-drawer{border:1px solid CanvasText}}@keyframes react-playground-spin{to{transform:rotate(360deg)}}
