#layout-demo{scroll-margin-top:35px}
.preview-mode-row{display:flex;justify-content:center;padding:5px 0 24px}
.preview-mode-switch{position:relative;isolation:isolate;display:inline-grid;grid-template-columns:1fr 1fr;padding:5px;border:1px solid #ffffffbd;border-radius:99px;background:linear-gradient(120deg,#e9e4f24d,#eadbf359,#dce8f54d);box-shadow:inset 0 1px 0 #ffffffe0,inset 0 -1px 0 #b9a3d018,0 6px 22px #8067970b;backdrop-filter:blur(20px) saturate(150%);-webkit-backdrop-filter:blur(20px) saturate(150%)}
.mode-highlight{position:absolute;z-index:-1;top:5px;bottom:5px;left:5px;width:calc(50% - 5px);border:1px solid #ffffffeb;border-radius:99px;background:linear-gradient(145deg,#ffffffed,#fff7fdab 55%,#edf3ffba);box-shadow:0 3px 10px #74598f14,inset 0 1px 1px #fff,inset 0 -1px 1px #b998d92b;transition:transform .32s cubic-bezier(.22,1,.36,1)}
.preview-mode-switch[data-mode=watch] .mode-highlight{transform:translateX(100%)}
.preview-mode-switch [role=tab]{display:flex;align-items:center;justify-content:center;gap:8px;position:relative;min-width:145px;min-height:44px;border:0;background:transparent;border-radius:99px;padding:12px 21px;font-size:14px;font-weight:500;color:#887294;transition:color .2s}
.preview-mode-switch [role=tab][aria-selected=true]{color:#5f456e}
.preview-mode-switch [role=tab]:hover{color:#61446e}
.preview-mode-switch svg{height:17px;width:17px;stroke:currentColor;stroke-width:1.25;stroke-linejoin:round;fill:none;opacity:.8}
.preview-mode-switch [role=tab]:focus-visible{outline:2px solid #a084b8;outline-offset:3px}
.watch-stage{position:relative;isolation:isolate;height:auto;aspect-ratio:16/10;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(115deg,#cde0f8,#dbd8f0 47%,#f0d3e5);box-shadow:inset 0 0 0 1px #b29ec712}
.watch-stage video{display:block;width:100%;height:100%;object-fit:contain;object-position:center;}
.watch-description{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 4px 1px}
.watch-description>.watch-copy{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
.watch-title{font-size:13px;font-weight:550;color:#6c5479}
.watch-detail{font-size:11px;color:#9682a3}
.watch-motion{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;min-width:105px;flex-shrink:0;padding:9px 14px;border:1px solid #e5dced;border-radius:99px;background:linear-gradient(145deg,#ffffffb3,#f6f1fc80);box-shadow:inset 0 1px 0 #fff;font-size:12px;color:#81648f;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.watch-motion:hover{background:#fff}
.watch-motion-icon{font-size:10px}

@media(max-width:680px){.preview-mode-row{padding:7px 0 19px}.preview-mode-switch [role=tab]{min-width:132px;font-size:14px;padding:11px 16px;gap:7px}.preview-mode-switch svg{height:16px;width:16px}.watch-stage{height:auto}.watch-description{padding:14px 3px 4px;gap:12px}.watch-description>.watch-copy{gap:5px;display:flex;flex-direction:column}.watch-title{font-size:12px}.watch-detail{font-size:10px;line-height:1.6;max-width:185px}.watch-motion{min-width:91px;min-height:44px;padding:10px 12px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.mode-highlight,.preview-mode-switch [role=tab]{transition:none}}

.watch-controls{display:flex;align-items:center;gap:8px;flex-shrink:0}.watch-fullscreen{display:grid;place-items:center;width:40px;height:40px;border:1px solid #e5dced;border-radius:50%;background:linear-gradient(145deg,#ffffffb3,#f6f1fc80);color:#81648f;box-shadow:inset 0 1px 0 #fff}.watch-fullscreen:hover{background:#fff}.watch-fullscreen svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;fill:none}@media(max-width:680px){.watch-description{align-items:center;flex-wrap:wrap}.watch-description>.watch-copy{flex:1;min-width:150px}.watch-controls{gap:6px}.watch-fullscreen{width:44px;height:44px}.watch-motion{min-width:85px}}

.preview-panels{position:relative;overflow:hidden;isolation:isolate}
.preview-panels>[role=tabpanel]{width:100%;opacity:0;pointer-events:none;position:absolute;inset:0 auto auto 0;transform:translateY(10px)}
.preview-panels[data-mode=interact]>#layout-interact-panel,.preview-panels[data-mode=watch]>#layout-watch-panel{position:relative;opacity:1;pointer-events:auto;transform:none;z-index:1}
.preview-panels>[role=tabpanel][aria-hidden=true]{pointer-events:none}
@media(prefers-reduced-motion:reduce){.preview-panels>[role=tabpanel]{transform:none}}
