:root{--playground-header-height: 4.25rem}body.playground-page{min-width:20rem;overflow-x:clip;background:var(--bs-color-background)}.playground-skip-link{position:fixed;z-index:100;top:.75rem;left:.75rem;padding:.65rem .9rem;color:var(--bs-white);background:var(--bs-color-primary);border-radius:var(--bs-radius-md);transform:translateY(-150%)}.playground-skip-link:focus{transform:translateY(0)}.playground-header{position:sticky;z-index:20;top:0;display:flex;min-height:var(--playground-header-height);align-items:center;justify-content:space-between;gap:var(--bs-space-4);padding:var(--bs-space-3) clamp(1rem,3vw,2rem);background:color-mix(in srgb,var(--bs-color-background) 90%,transparent);border-bottom:1px solid var(--bs-color-border);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.playground-brand{color:var(--bs-color-text);font-weight:750}.playground-brand .bs-icon{color:var(--bs-color-primary-hover)}.playground-main{padding:clamp(1rem,3vw,2rem)}.playground-intro{display:flex;align-items:end;justify-content:space-between;gap:var(--bs-space-6);margin-bottom:var(--bs-space-6)}.playground-intro h1{margin:var(--bs-space-3) 0 var(--bs-space-2);font-size:clamp(2rem,5vw,4rem)}.playground-intro p{max-width:48rem;margin:0;color:var(--bs-color-text-muted)}.playground-actions{justify-content:flex-end}.playground-workspace{display:grid;min-height:calc(100vh - 15rem);grid-template-columns:minmax(20rem,.8fr) minmax(26rem,1.2fr);gap:var(--bs-space-4)}.playground-editors{display:grid;min-width:0;grid-template-rows:repeat(2,minmax(18rem,1fr));gap:var(--bs-space-4)}.playground-editor-panel,.playground-preview-panel{min-width:0;overflow:hidden;background:var(--bs-color-surface);border:1px solid var(--bs-color-border);border-radius:var(--bs-radius-xl)}.playground-editor-panel{display:grid;grid-template-rows:auto minmax(0,1fr)}.playground-panel-heading,.playground-preview-toolbar{display:flex;min-height:3.4rem;align-items:center;justify-content:space-between;gap:var(--bs-space-3);padding:var(--bs-space-3) var(--bs-space-4);border-bottom:1px solid var(--bs-color-border)}.playground-panel-heading label{color:var(--bs-color-text);font-weight:750}.playground-panel-heading span{color:var(--bs-color-text-subtle);font-size:var(--bs-font-size-xs)}.playground-editor-panel textarea{width:100%;min-height:18rem;resize:vertical;padding:var(--bs-space-4);color:#f8edf4;background:#140a15;border:0;outline:0;font-family:var(--bs-font-mono);font-size:.82rem;line-height:var(--bs-line-height-code);tab-size:2}.playground-editor-panel textarea:focus-visible{box-shadow:inset 0 0 0 3px var(--bs-color-primary)}.playground-preview-panel{display:grid;grid-template-rows:auto minmax(30rem,1fr)}.playground-preview-toolbar h2{margin:0;font-size:var(--bs-font-size-md)}.playground-preview-toolbar p{margin:0;color:var(--bs-color-text-subtle);font-size:var(--bs-font-size-xs)}.playground-device-controls{display:flex;gap:var(--bs-space-1);padding:.2rem;background:#ffffff08;border:1px solid var(--bs-color-border);border-radius:var(--bs-radius-md)}.playground-device-controls button{padding:.4rem .65rem;color:var(--bs-color-text-muted);background:transparent;border:0;border-radius:var(--bs-radius-sm);font:inherit;font-size:var(--bs-font-size-xs)}.playground-device-controls button[aria-pressed=true]{color:var(--bs-white);background:var(--bs-color-primary)}.playground-preview-stage{min-width:0;overflow:auto;padding:var(--bs-space-4);background:#0b060c}.playground-preview-shell{height:100%;min-height:30rem;margin-inline:auto;transition:max-width var(--bs-duration-normal)}.playground-preview-shell.preview-size-desktop{max-width:100%}.playground-preview-shell.preview-size-tablet{max-width:48rem}.playground-preview-shell.preview-size-mobile{max-width:24.375rem}.playground-preview-shell iframe{width:100%;height:100%;min-height:30rem;background:#140a15;border:1px solid var(--bs-color-border);border-radius:var(--bs-radius-lg)}@media(max-width:70rem){.playground-intro{align-items:flex-start;flex-direction:column}.playground-actions{justify-content:flex-start}.playground-workspace{grid-template-columns:1fr}.playground-editors{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(20rem,auto)}}@media(max-width:44rem){.playground-header{align-items:flex-start}.playground-brand span{max-width:8rem;line-height:1.2}.playground-download{display:none}.playground-main{padding:1rem}.playground-actions>*{flex:1 1 calc(50% - var(--bs-space-2))}.playground-editors{grid-template-columns:1fr}.playground-preview-toolbar{align-items:flex-start;flex-direction:column}.playground-device-controls{width:100%;overflow-x:auto}.playground-device-controls button{flex:1 0 auto}.playground-preview-stage{padding:var(--bs-space-2)}}@media(prefers-reduced-motion:reduce){.playground-preview-shell{transition:none}}
