:root{--demo-gutter:24px}.demo-lab{--demo-step-num-size:26px;padding:48px var(--demo-gutter) 80px;background:var(--color-white)}.demo-lab-inner{grid-template-columns:320px minmax(0,1fr);align-items:start;gap:40px;max-width:1280px;margin:0 auto;display:grid}.demo-controls{top:calc(96px + var(--promo-banner-height));margin-top:calc(var(--demo-step-num-size) + 12px);grid-area:1/1;position:sticky}.demo-step-title{font-family:var(--font-sans);color:var(--text-primary);align-items:center;gap:10px;margin:0 0 12px;font-size:1.1rem;font-weight:600;line-height:1.4;display:flex}.demo-step-title--tune{margin-top:28px}.demo-step-num{width:var(--demo-step-num-size);height:var(--demo-step-num-size);border:1px solid var(--color-frame-gold);background:linear-gradient(135deg, var(--color-gold-soft), var(--color-gold-pale));font-family:var(--font-mono);color:var(--color-gold-text);border-radius:50%;flex:none;justify-content:center;align-items:center;font-size:.72rem;font-weight:500;line-height:1;display:inline-flex}.demo-accordion{border-bottom:1px solid var(--color-stone-200)}.demo-accordion-title{font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted);cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;padding:16px 0;font-size:.72rem;font-weight:500;list-style:none;display:flex}.demo-accordion-title::-webkit-details-marker{display:none}.demo-accordion-title:after{content:"+";color:var(--text-muted);font-size:1rem;font-weight:400}.demo-accordion[open]>.demo-accordion-title:after{content:"−"}.demo-accordion-body{padding-bottom:20px}.demo-presets{flex-direction:column;gap:8px;margin-bottom:8px;display:flex}.demo-preset{border:1px solid var(--color-stone-150);background:var(--color-white);cursor:pointer;text-align:left;border-radius:12px;align-items:center;gap:12px;padding:12px 14px;transition:border-color .15s,background .15s;display:flex}.demo-preset--active{border-color:var(--color-gold-text);background:var(--color-gold-wash)}@media (hover:hover) and (pointer:fine){.demo-preset:hover{border-color:var(--color-stone-300);background:var(--color-stone-25)}.demo-preset--active:hover{border-color:var(--color-gold-text);background:var(--color-gold-wash)}}.demo-preset-swatch{border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.demo-preset-swatch svg{transform:translate(1.5px)}.demo-preset-swatch--classic{color:#1c1917;background:#ffde17}.demo-preset-swatch--bold{color:#fff;background:#e63946}.demo-preset-swatch--minimal{color:#ababab;background:#444}.demo-preset-swatch--matched{color:#fff;background:#e0703c}.demo-preset-name{font-family:var(--font-sans);color:var(--text-primary);font-size:.88rem;font-weight:600;line-height:1.2;display:block}.demo-preset-desc{font-family:var(--font-sans);color:var(--text-muted);font-size:.82rem;line-height:1.3;display:block}.demo-field{margin-bottom:16px}.demo-field:last-child{margin-bottom:0}.demo-label{font-family:var(--font-sans);color:var(--text-secondary);align-items:center;gap:8px;margin-bottom:8px;font-size:.82rem;font-weight:500;display:flex}.demo-toggle input[type=checkbox]{width:18px;height:18px;accent-color:var(--color-gold-text);flex:none;margin:0}.demo-hint{font-family:var(--font-sans);color:var(--text-muted);margin-top:6px;font-size:.82rem;line-height:1.5}.demo-hint--error{color:var(--color-error)}.demo-color-row{align-items:center;gap:10px;transition:opacity .15s;display:flex}.demo-color-row--disabled{opacity:.4;pointer-events:none}.demo-color-input{border:1px solid var(--color-stone-400);cursor:pointer;background:0 0;border-radius:8px;width:36px;height:36px;padding:2px}.demo-color-hex{width:96px;font-family:var(--font-mono);color:var(--text-primary);background:var(--color-white);border:1px solid var(--color-stone-400);text-transform:lowercase;border-radius:8px;padding:8px 10px;font-size:.92rem}.demo-color-hex[aria-invalid=true]{border-color:var(--color-error)}.demo-shapes{gap:8px;display:flex}.demo-shape{border:2px solid var(--color-stone-150);background:var(--color-white);width:48px;height:48px;color:var(--text-muted);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;transition:border-color .15s,color .15s;display:flex}@media (hover:hover) and (pointer:fine){.demo-shape:hover{border-color:var(--color-stone-400);color:var(--text-primary)}}.demo-shape--active{border-color:var(--color-gold-text);color:var(--color-gold-text);background:var(--color-gold-wash)}.demo-range-row{align-items:center;gap:12px;display:flex}.demo-range{accent-color:var(--color-gold-text);flex:1;height:24px}.demo-range-val{font-family:var(--font-mono);color:var(--text-muted);text-align:right;min-width:36px;font-size:.72rem}.demo-range-reset{width:32px;height:32px;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;transition:color .15s,background .15s;display:inline-flex}.demo-range-reset svg{width:14px;height:14px;display:block}@media (hover:hover) and (pointer:fine){.demo-range-reset:hover{color:var(--text-primary);background:var(--color-stone-200)}}.demo-range-reset[hidden]{display:none}.demo-toggles{grid-template-columns:1fr 1fr;gap:0 12px;display:grid}.demo-toggle{min-height:44px;font-family:var(--font-sans);color:var(--text-secondary);cursor:pointer;align-items:center;gap:8px;font-size:.82rem;display:flex}.demo-sub-fields{border:0;min-width:0;margin:12px 0 0;padding:0 0 0 4px;transition:opacity .15s}.demo-sub-fields:disabled{opacity:.35}.demo-select{width:100%;font-family:var(--font-sans);color:var(--text-primary);background:var(--color-white);border:1px solid var(--color-stone-400);cursor:pointer;border-radius:8px;padding:8px 10px;font-size:.92rem}.demo-text-input{width:100%;font-family:var(--font-sans);color:var(--text-primary);background:var(--color-white);border:1px solid var(--color-stone-400);box-sizing:border-box;border-radius:8px;padding:8px 10px;font-size:.92rem}.demo-preset:active,.demo-shape:active,.demo-range-reset:active,.demo-copy:active{transform:scale(.97)}.demo-embed{border:1px solid var(--color-stone-150);background:var(--color-white);border-radius:14px;max-width:1280px;margin:40px auto 0;overflow:hidden}.demo-embed-summary{cursor:pointer;-webkit-user-select:none;user-select:none;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:18px 20px;list-style:none;display:grid}.demo-embed-summary::-webkit-details-marker{display:none}.demo-embed-summary:active{background:var(--color-stone-50)}@media (hover:hover) and (pointer:fine){.demo-embed-summary:hover{background:var(--color-stone-50)}}.demo-embed-summary:focus-visible{outline-offset:-4px}.demo-embed-title{font-family:var(--font-sans);color:var(--text-primary);align-items:center;gap:10px;font-size:1.1rem;font-weight:600;display:inline-flex}.demo-embed-sub{font-family:var(--font-sans);color:var(--text-muted);font-size:.88rem;font-weight:500}.demo-embed-chevron{color:var(--text-muted);transition:transform var(--duration-base) var(--ease-out)}.demo-embed[open] .demo-embed-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.demo-embed-chevron{transition:none}}.demo-embed-body{border-top:1px solid var(--color-stone-150);grid-template-columns:minmax(0,1fr) 320px;gap:32px;padding:20px;display:grid}.demo-embed-code{border:1px solid var(--color-stone-150);background:var(--color-stone-50);border-radius:8px;align-self:start;overflow:hidden}.demo-code-bar{border-bottom:1px solid var(--color-stone-150);justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;display:flex}.demo-code-bar span{font-family:var(--font-sans);color:var(--text-muted);font-size:.82rem;font-weight:500}.demo-code{font-family:var(--font-mono);color:var(--text-secondary);white-space:pre;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--color-stone-300) transparent;max-height:360px;margin:0;padding:14px 16px;font-size:.82rem;line-height:1.6;overflow:auto}.demo-copy{font-family:var(--font-sans);min-height:32px;color:var(--text-muted);background:var(--color-white);border:1px solid var(--color-stone-150);cursor:pointer;border-radius:50px;padding:6px 16px;font-size:.82rem;font-weight:600;transition:color .15s,border-color .15s}@media (hover:hover) and (pointer:fine){.demo-copy:hover{color:var(--text-primary);border-color:var(--color-stone-400)}}.demo-embed-cta{background:var(--color-gold-wash);border:1px solid #c9a00066;border-radius:12px;align-self:start;padding:20px}.demo-embed-cta-title{font-family:var(--font-sans);color:var(--text-primary);font-size:1rem;font-weight:600}.demo-embed-cta-text{font-family:var(--font-sans);color:var(--text-secondary);margin:8px 0 16px;font-size:.88rem;line-height:1.6}.demo-embed-cta-platform{border-bottom:1px solid var(--color-frame-gold);margin-top:0;padding-bottom:14px}.demo-embed-cta-text a{font-weight:400}.demo-embed-cta-text code{font-family:var(--font-mono);font-size:.72rem}.demo-embed-cta .btn,.demo-embed-cta .btn__face{width:100%}.demo-embed-cta-note{font-family:var(--font-sans);color:var(--text-muted);text-align:center;margin-top:10px;font-size:.82rem;font-weight:500}.demo-embed-cta-alt{font-family:var(--font-sans);color:var(--text-muted);border-top:1px solid var(--color-frame-gold);margin-top:16px;padding-top:14px;font-size:.82rem;line-height:1.6}.demo-embed-cta-alt a{width:fit-content;margin-top:6px;font-weight:400;display:block}.demo-preview{top:calc(96px + var(--promo-banner-height));grid-area:1/2;position:sticky}.demo-context-tabs{--demo-tabs-bg:#2a2724;scrollbar-width:none;background:var(--demo-tabs-bg);border-radius:12px 12px 0 0;gap:2px;padding:6px 6px 0;display:flex;position:relative;overflow-x:auto}.demo-context-tabs::-webkit-scrollbar{display:none}.demo-context-tabs:before,.demo-context-tabs:after{content:"";z-index:1;pointer-events:none;opacity:0;width:56px;transition:opacity var(--duration-base) var(--ease-out);flex:none;position:sticky}.demo-context-tabs:before{background:linear-gradient(to right, var(--demo-tabs-bg), transparent);margin-right:-58px;left:-6px}.demo-context-tabs:after{background:linear-gradient(to left, var(--demo-tabs-bg), transparent);margin-left:-58px;right:-6px}.demo-context-tabs--more-start:before,.demo-context-tabs--more-end:after{opacity:1}.demo-ctx-tab{min-height:36px;font-family:var(--font-sans);white-space:nowrap;color:#a8a29e;cursor:pointer;background:0 0;border:0;border-radius:8px 8px 0 0;flex:none;align-items:center;padding:0 14px;font-size:.88rem;font-weight:500;transition:color .15s,background .15s;display:inline-flex}@media (hover:hover) and (pointer:fine){.demo-ctx-tab:not(.demo-ctx-tab--active):hover{color:#f5f0e8;background:#ffffff0f}}.demo-ctx-tab--active{color:#fff;background:#0f0e0d}.demo-ctx-tab:focus-visible{outline-offset:-3px;outline-color:var(--color-gold-light)}.demo-preview:has(.demo-player-wrap--page) .demo-context-tabs{--demo-tabs-bg:#ddd8cf}.demo-preview:has(.demo-player-wrap--page) .demo-ctx-tab{color:#6b655c}@media (hover:hover) and (pointer:fine){.demo-preview:has(.demo-player-wrap--page) .demo-ctx-tab:not(.demo-ctx-tab--active):hover{color:#1c1917;background:#ffffff59}}.demo-preview:has(.demo-player-wrap--page) .demo-ctx-tab--active{color:#1c1917;background:#ece9e4}.demo-preview:has(.demo-player-wrap--page) .demo-ctx-tab:focus-visible{outline-color:var(--color-gold-text-hover)}.demo-ctx-tab:active{transform:scale(.97)}.demo-player-wrap{aspect-ratio:1920/776;border-radius:0 0 var(--demo-preview-radius,24px) var(--demo-preview-radius,24px);background:#0f0e0d;overflow:hidden;box-shadow:0 4px 32px #1c19171f}.demo-player-wrap--page{aspect-ratio:auto;height:min(calc(100vh - 232px - var(--promo-banner-height)), 1200px);height:min(calc(100svh - 232px - var(--promo-banner-height)), 1200px);background:#f6f5f3;border-radius:0 0 12px 12px;flex-direction:column;display:flex}.demo-frame-stage{height:100%;position:relative}.demo-player-wrap--page .demo-frame-stage{flex:1;height:auto;min-height:0}.demo-frame-fallback{object-fit:cover;width:100%;height:100%;display:block}.demo-frame-bar{background:#ece9e4;border-bottom:1px solid #e0dcd4;flex:none;align-items:center;gap:12px;padding:9px 14px;display:flex}.demo-frame-dots{gap:5px;display:flex}.demo-frame-dots span{background:#d2cdc4;border-radius:50%;width:9px;height:9px}.demo-frame-url{font-family:var(--font-mono);color:#6b655c;text-overflow:ellipsis;white-space:nowrap;background:#f6f5f3;border-radius:50px;flex:1;max-width:460px;padding:6px 14px;font-size:.72rem;font-weight:500;overflow:hidden}.demo-iframe{border:none;width:100%;height:100%;display:block;position:absolute;inset:0}.demo-iframe--staging{opacity:0;pointer-events:none}.demo-preview-note{font-family:var(--font-sans);color:var(--text-muted);text-align:center;margin-top:12px;font-size:.82rem;line-height:1.5}@media (width<=860px){.demo-lab-inner{flex-direction:column;align-items:stretch;gap:0;display:flex}.demo-controls{margin-top:32px;position:static}.demo-preview{display:contents}.demo-player-dock{margin-inline:calc(-1 * var(--demo-gutter));padding:0 var(--demo-gutter) 8px;background:var(--color-white)}[data-theme=dark] .demo-player-dock{background:var(--color-stone-850)}.demo-player-wrap--page{height:min(62vh,520px)}.demo-preview-note{margin-top:4px}.demo-embed-body{grid-template-columns:1fr}}@media (width<=860px) and (orientation:portrait){.demo-player-dock{top:calc(72px + var(--promo-banner-height));z-index:2;transition:top .25s;position:sticky}:root:has(.site-header.header-hidden) .demo-player-dock{top:var(--promo-banner-height)}.demo-player-dock:has(.demo-player-wrap--page){position:static}:root:not(:has(.demo-player-wrap--page)){scroll-padding-top:calc(72px + var(--promo-banner-height) + (100vw - 2 * var(--demo-gutter)) * 776 / 1920 + 32px)}}@media (pointer:coarse),(width<=860px){.demo-ctx-tab,.demo-copy,.demo-color-hex,.demo-select,.demo-text-input{min-height:44px}.demo-range{height:44px}.demo-range-reset,.demo-color-input{width:44px;height:44px}}@media (pointer:coarse){.demo-color-hex,.demo-select,.demo-text-input{font-size:16px}.demo-color-hex{width:10ch}}@media (width<=480px){:root{--demo-gutter:16px}.demo-lab{padding:32px var(--demo-gutter) 64px}.demo-embed-summary{grid-template-columns:1fr auto;row-gap:2px;padding:16px}.demo-embed-sub{grid-column:1}.demo-embed-chevron{grid-area:1/2/span 2}.demo-embed-body{gap:20px;padding:16px}.demo-presets{gap:6px}.demo-preset{padding:10px 12px}}[data-theme=dark] .demo-lab{background:var(--color-stone-850)}[data-theme=dark] .demo-accordion{border-bottom-color:var(--color-stone-750)}[data-theme=dark] .demo-preset{background:var(--color-stone-900);border-color:var(--color-stone-800)}[data-theme=dark] .demo-preset--active{border-color:var(--color-gold-dark);background:#fee26514}@media (hover:hover) and (pointer:fine){[data-theme=dark] .demo-preset:hover{background:var(--color-stone-825);border-color:var(--color-stone-700)}[data-theme=dark] .demo-preset--active:hover{border-color:var(--color-gold-dark);background:#fee26514}}[data-theme=dark] .demo-preset--active .demo-preset-desc{color:var(--text-secondary)}[data-theme=dark] .demo-preset-swatch--minimal{color:#ababab;background:#444}[data-theme=dark] .demo-shape{background:var(--color-stone-900);border-color:var(--color-stone-800);color:var(--color-stone-400)}@media (hover:hover) and (pointer:fine){[data-theme=dark] .demo-shape:hover{border-color:var(--color-stone-600);color:var(--color-stone-300)}}[data-theme=dark] .demo-shape--active{border-color:var(--color-gold-dark);color:var(--color-gold-light);background:#fee2650f}[data-theme=dark] .demo-color-input{border-color:var(--color-stone-500)}[data-theme=dark] .demo-color-hex{background:var(--color-stone-900);border-color:var(--color-stone-500);color:var(--color-stone-300)}[data-theme=dark] .demo-hint--error{color:var(--color-error-mid)}[data-theme=dark] .demo-color-hex[aria-invalid=true]{border-color:var(--color-error-mid)}@media (hover:hover) and (pointer:fine){[data-theme=dark] .demo-range-reset:hover{background:var(--color-stone-700)}}[data-theme=dark] .demo-select,[data-theme=dark] .demo-text-input{background:var(--color-stone-900);border-color:var(--color-stone-500);color:var(--color-stone-300)}[data-theme=dark] .demo-embed{border-color:var(--color-stone-800);background:var(--color-stone-900)}[data-theme=dark] .demo-embed-summary:active{background:var(--color-stone-825)}@media (hover:hover) and (pointer:fine){[data-theme=dark] .demo-embed-summary:hover{background:var(--color-stone-825)}}[data-theme=dark] .demo-embed-body{border-top-color:var(--color-stone-800)}[data-theme=dark] .demo-embed-code{background:var(--color-stone-900);border-color:var(--color-stone-800)}[data-theme=dark] .demo-code-bar{border-bottom-color:var(--color-stone-800)}[data-theme=dark] .demo-code{scrollbar-color:var(--color-stone-700) transparent}[data-theme=dark] .demo-embed-cta{border-color:var(--color-gold-dark);background:#fee26514}[data-theme=dark] .demo-embed-cta-alt{color:var(--text-secondary);border-top-color:var(--color-gold-dark)}[data-theme=dark] .demo-embed-cta-platform{border-bottom-color:var(--color-gold-dark)}[data-theme=dark] .demo-copy{background:var(--color-stone-825);border-color:var(--color-stone-700)}[data-theme=dark] .demo-player-wrap{box-shadow:0 4px 32px #0c0a0966}[data-theme=dark] .demo-player-wrap--page{background:#181512}[data-theme=dark] .demo-frame-bar{background:#221e1a;border-bottom-color:#2b2722}[data-theme=dark] .demo-frame-dots span{background:#39342d}[data-theme=dark] .demo-frame-url{color:#8a847a;background:#181512}[data-theme=dark] .demo-step-num{background:color-mix(in srgb, var(--color-gold) 10%, transparent);color:var(--color-gold-light)}[data-theme=dark] .demo-preview:has(.demo-player-wrap--page) .demo-context-tabs{--demo-tabs-bg:#141210}[data-theme=dark] .demo-preview:has(.demo-player-wrap--page) .demo-ctx-tab{color:#8a847a}@media (hover:hover) and (pointer:fine){[data-theme=dark] .demo-preview:has(.demo-player-wrap--page) .demo-ctx-tab:not(.demo-ctx-tab--active):hover{color:#e8e3db;background:#ffffff0a}}[data-theme=dark] .demo-preview:has(.demo-player-wrap--page) .demo-ctx-tab--active{color:#f5f0e8;background:#221e1a}[data-theme=dark] .demo-preview:has(.demo-player-wrap--page) .demo-ctx-tab:focus-visible{outline-color:var(--color-gold-light)}[data-theme=dark] .demo-field input[type=range]{accent-color:var(--color-gold-dark)}[data-theme=dark] .demo-toggle input[type=checkbox]{accent-color:var(--color-gold)}
