.studio-editor .preview-viewport {overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x pan-y;scroll-behavior:auto;}
.studio-editor .preview-viewport::-webkit-scrollbar {display:none;}
.studio-editor .preview-track {width:100%;gap:24px;padding:0 24px;justify-content:flex-start;}
.studio-editor .preview-board {flex:0 0 88%;height:100%;transition:none;user-select:none;}
.studio-editor .project-live-frame {pointer-events:none;}
.studio-editor .preview-board--live::after {content:"";position:absolute;inset:0;z-index:3;border-radius:inherit;}
.studio-editor[data-track-mode="drag"] .preview-viewport {cursor:grab;}
.studio-editor .preview-viewport.is-dragging {cursor:grabbing;user-select:none;}
.studio-editor[data-preview="phone"] .preview-track {justify-content:flex-start;padding:0 24px;}
.studio-editor[data-preview="phone"] .preview-board,.studio-editor[data-preview="phone"] .preview-board:not(:first-child) {display:block;flex:0 0 auto;width:auto;height:100%;aspect-ratio:393/852;}
.studio-editor .editor-tools {gap:4px;max-width:calc(100% - 24px);}
.studio-editor .editor-tools .tool-button {width:44px;height:44px;min-width:44px;cursor:pointer;background:transparent;}
.studio-editor .editor-tools .tool-button.selected {background:var(--studio-active,rgba(180,170,150,.2));box-shadow:inset 0 0 0 1px var(--editor-edge);}
.studio-editor .editor-tools .tool-button:disabled {opacity:.4;cursor:default;}
.studio-editor .editor-tools .track-step-button {width:auto;min-width:76px;padding:0 10px;white-space:nowrap;border-radius:7px;background:transparent;cursor:pointer;}
.studio-editor .editor-tools .track-step-button:hover {background:var(--studio-active,rgba(180,170,150,.2));}
.studio-editor .editor-tools svg {width:22px;height:22px;}
.studio-editor .editor-tools :focus-visible,.studio-editor .preview-viewport:focus-visible {outline:2px solid #c59a55;outline-offset:-3px;}
.studio-editor .device-switch button {height:44px;min-width:44px;}
@media(max-width:1100px){.studio-editor .editor-body{grid-template-columns:150px minmax(0,1fr)}.studio-editor .editor-inspector{display:none}}
@media(max-width:600px){.studio-editor .editor-body{display:flex;height:640px}.studio-editor .editor-pages{display:none}.studio-editor .preview-track,.studio-editor[data-preview="phone"] .preview-track{width:100%;padding:0 14px;gap:18px}.studio-editor .preview-viewport{inset:20px 0 90px}.studio-editor[data-preview="phone"] .preview-board,.studio-editor[data-preview="phone"] .preview-board:not(:first-child){display:block;flex:0 0 auto;width:auto;min-width:0;max-width:100%;height:min(100%,490px);max-height:100%;box-sizing:border-box;aspect-ratio:393/852;overflow:hidden;isolation:isolate;border:6px solid #242321;border-radius:30px;box-shadow:0 0 0 1px rgba(245,236,220,.3),inset 0 0 0 1px rgba(255,255,255,.12),0 12px 28px rgba(0,0,0,.22)}.studio-editor[data-preview="phone"] .preview-board[data-copy="true"]{display:none}.studio-editor .editor-tools{gap:2px;bottom:18px}.studio-editor .editor-tools [data-track-mode],.studio-editor .editor-tools [data-track-speed],.studio-editor .editor-tools [data-track-pause]{display:none}.studio-editor .editor-tools .track-step-button{min-width:82px;padding:0 8px}.studio-editor .editor-topbar{grid-template-columns:30px minmax(0,1fr)}}
@media(max-width:900px) and (orientation:landscape){.studio-editor .editor-body{height:480px}.studio-editor .editor-pages{display:none}.studio-editor .editor-canvas{grid-column:1/-1}}

/* Direct site interaction: no hover overlay or return button in hand mode. */
.studio-editor[data-track-mode="hand"] .project-live-frame{pointer-events:auto}
.studio-editor[data-track-mode="hand"] .preview-board--live::after{display:none}
.studio-editor[data-track-mode="drag"] .preview-viewport{touch-action:pan-y}

@supports (height: 1cqh) { @media (max-width:600px) { .studio-editor .preview-viewport { container-type:size; } .studio-editor[data-preview="phone"] .preview-board,.studio-editor[data-preview="phone"] .preview-board:not(:first-child) { width:min(226px,46.1cqh);height:min(490px,100cqh); } } }
