/* Canvas-first phone workspace. The editor fits the viewport without page jumps. */
body.touchStudio{height:100dvh;overflow:hidden;background:#121416;color:#f2f1ed;color-scheme:dark;--accent:#f78c54;--text:#f2f1ed;--muted:#b2b5b8;--line:#42464a}
.touchStudio header{height:54px;min-height:54px;width:100%;max-width:900px;margin:0 auto;padding:5px 12px;background:#202326;border:0;border-bottom:1px solid #373c40;border-radius:0;gap:6px}.touchStudio header .brandlogo{height:42px;width:76px}.touchStudio header .quiet{color:#f2f1ed;font-size:24px;min-width:42px;min-height:42px;padding:3px}.touchStudio header #export{min-height:40px;min-width:92px;background:#f78c54;color:#20140e;border-color:#f78c54;border-radius:10px;font-size:13px;padding:9px 11px;letter-spacing:0}.touchStudio header .brand{margin-right:auto}
.touchStudio .workspace{width:100%;max-width:900px;height:calc(100dvh - 54px);margin:0 auto;padding:0;display:flex;flex-direction:column;min-height:0;border-radius:0;background:#171a1d;box-shadow:none;overflow:hidden}.touchStudio .welcome,.touchStudio .addbuttons,.touchStudio .cinematicButton,.touchStudio .musicLibraryButton,.touchStudio .quickDock,.touchStudio .studioDock,.touchStudio .textEditBar,.touchStudio .textTapHint,.touchStudio .appSharing,.touchStudio .inlineTrimHint{display:none!important}.touchStudio main{position:relative;flex:1 1 auto;min-height:150px;display:flex;flex-direction:column;background:#111315;border:0;border-radius:0;overflow:hidden}.touchStudio .stage,.touchStudio.is-empty .stage{flex:1 1 auto;height:auto;min-height:80px;max-height:none;padding:14px;overflow:hidden;background:repeating-conic-gradient(#1b1f22 0% 25%,#202529 0% 50%) 0 0 / 18px 18px;touch-action:none;user-select:none;-webkit-user-select:none}.touchStudio .stage canvas{max-height:100%;max-width:100%;object-fit:contain;touch-action:none;cursor:grab}.touchStudio .stage canvas:active{cursor:grabbing}.touchStudio .previewhead{top:8px;right:8px;left:auto;z-index:8}.touchStudio .previewhead select{background:#2b3035e8;border:1px solid #586069;color:#f2f1ed;font-size:11px;min-height:32px;padding:5px 7px}.touchStudio #emptyState{background:#181c20;color:#f4f2ee}.touchStudio #emptyState .emptyicon{display:none}.touchStudio #emptyState h2{font-size:22px;margin-top:0}.touchStudio #emptyState p{color:#b3b9bf}.touchStudio #emptyState button{background:#f78c54;color:#22150e;font-size:15px;min-height:52px;border:0}
.touchStudio .directHint{font-size:11px;text-align:center;padding:7px 4px;background:#21262a;color:#d1d5d8;flex-shrink:0;line-height:1.3}.touchStudio .transport{height:40px;min-height:40px;flex-shrink:0;padding:0 12px;background:#202529;border:0;justify-content:flex-start;gap:7px}.touchStudio .transport button{color:#f4f2ed;min-width:42px;min-height:38px;padding:4px;font-size:24px}.touchStudio .transport #start{margin:0;font-size:23px}.touchStudio .transport #play{font-size:0;min-width:48px}.touchStudio .transport #play:after{font-size:24px}.touchStudio .transport #fullscreen{margin-left:auto;font-size:25px}.touchStudio #touchClock{font-size:11px;letter-spacing:.3px;font-variant-numeric:tabular-nums;white-space:nowrap;color:#d0d4d7;order:-1;margin-right:auto}.touchStudio #timeDisplay{display:none}.touchStudio #scrubber{flex-shrink:0;display:block!important;min-height:18px;height:18px;width:calc(100% - 24px);margin:0 12px;accent-color:#f78c54;background:#202529}
.touchStudio .objectBar{background:#262c30;border-block:1px solid #3c444b;padding:7px 10px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:65px}.touchStudio .objectStatus{min-width:0;display:grid;gap:4px}.touchStudio .objectStatus b{font-size:12px;color:#ffc59d}.touchStudio .objectStatus span{font-size:10px;color:#c2c8cc;line-height:1.3;max-width:170px}.touchStudio .objectActions{display:flex;gap:5px;flex-shrink:0;align-items:center}.touchStudio .objectActions button{font-size:11px;min-height:42px;min-width:42px;padding:7px;background:#343d44;color:#fff;border:1px solid #53616c;border-radius:8px}.touchStudio .objectActions .danger{color:#ffc1b5}.touchStudio .editorToolbar{order:0;flex-shrink:0;background:#1c2024;border-bottom:1px solid #353c42}.touchStudio .tools,.touchStudio.is-empty .tools{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));padding:0 5px;margin:0;gap:1px;overflow:visible}.touchStudio .tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:7px 2px;min-width:0;min-height:60px;background:transparent;border:0;border-radius:8px;color:#d7dde1;font-size:11px;text-transform:none}.touchStudio .tools button b{font:25px/1 system-ui,sans-serif;color:#ffb77e;display:block}.touchStudio .tools button.active{background:#3b3028;color:#fff3e9}.touchStudio .tools button:hover{background:#30373c}
.touchStudio .editorTimeline,.touchStudio.is-empty .editorTimeline{flex:0 0 106px;min-height:106px;height:106px;background:#191e22;margin:0;padding:3px 0 0 53px;overflow:hidden;border-bottom:1px solid #353c42}.touchStudio .timelineAdd{left:7px;bottom:30px;width:38px;height:38px;min-height:38px;font-size:28px;background:#f78c54;color:#25180f}.touchStudio .timelineScroll{padding:0 15px 0 12px;height:83px}.touchStudio .timelineTracks{margin-top:11px;padding-top:0}.touchStudio .pipTrack{height:22px;background:#252d33}.touchStudio .pipClip{height:20px;min-height:20px;top:0;border-radius:3px;color:white;background-color:#313c42}.touchStudio .pipClip span{background:#0007;color:white;font-size:9px}.touchStudio .clips{height:42px;min-height:42px;margin-top:4px;background:#2d363d}.touchStudio .clip,.touchStudio .clip.image,.touchStudio .clip.video{height:42px;min-height:42px;border-width:2px;border-color:#252b30}.touchStudio .clip.selected{border-color:#f78c54}.touchStudio .timelineClock{padding:3px 13px 3px 0;font-size:9px;color:#a8b0b7}.touchStudio .trimLength{display:none}.touchStudio .inlineTrim button{width:22px;min-height:20px}.touchStudio .inlineTrim button[data-trim-edge=start]{left:-11px}.touchStudio .inlineTrim button[data-trim-edge=end]{right:-11px}.touchStudio.is-empty #clips:after{color:#bbc4cb;padding:12px 5px;font-size:11px}.touchStudio.is-empty #pipTrack:after{font-size:9px;color:#82919d;padding:5px}.touchStudio footer{display:flex;min-height:25px;height:25px;flex-shrink:0;background:#1b2024;color:#98a3ab;padding:0 10px;font-size:9px}.touchStudio footer button{color:#c0cad0;font-size:10px;min-height:25px;padding:0 5px}
.touchStudio .touchSheet{flex:0 1 auto;max-height:39dvh;overflow-y:auto;overscroll-behavior:contain;background:#252b30;border-top:1px solid #56616a;min-height:0;scrollbar-width:thin}.touchStudio.sheet-open .editorTimeline{display:none!important}.touchStudio .touchSheet .library,.touchStudio .touchSheet .inspector{margin:0;border:0;border-radius:0;background:#252b30;color:#f4f2ee}.touchStudio .panelheading{position:sticky;top:0;z-index:5;background:#2e363d;border:0;padding:4px 12px;min-height:44px}.touchStudio .panelheading h2{font-size:14px;color:#ffbb8c}.touchStudio .panelheading .quiet{color:#ffbf94;min-height:40px}.touchStudio #panelContent,.touchStudio #inspectorContent{padding:14px}.touchStudio .smallnote,.touchStudio .pagehint{color:#ccd3d8;font-size:12px;line-height:1.6}.touchStudio .field>span{color:#d7dde1;font-size:12px}.touchStudio .field input:not([type=range]):not([type=color]),.touchStudio .field textarea,.touchStudio .field select,.touchStudio select{background:#192126;color:#f4f2ee;border-color:#57656f}.touchStudio .field input[type=color]{background:#202a30;border-color:#596c79}.touchStudio .field input[type=range]{accent-color:#f78c54}.touchStudio .touchSheet button{background:#36424c;border-color:#61717e;color:#f3f1ed}.touchStudio .touchSheet button.primary{background:#f78c54;border-color:#f78c54;color:#26170d}.touchStudio .touchSheet button.active{background:#63442f;border-color:#ffa465}.touchStudio .quickGrid,.touchStudio .cameraGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.touchStudio .quickGrid button{min-height:65px}.touchStudio .quickGrid span,.touchStudio .cameraCard small,.touchStudio .motionLength{color:#c9d3da}.touchStudio .motionLength b{color:#fff}.touchStudio .quickBack{background:none;border:0;color:#ffb77e}.touchStudio .musicCard,.touchStudio .selectedMusic,.touchStudio .motionSlot,.touchStudio .cameraCard,.touchStudio .captionEdit{background:#1c252c;border-color:#526571}.touchStudio .musicSongInfo small,.touchStudio .musicSongInfo>span:not(.musicBadge),.touchStudio .musicCount{color:#bdcbd5}.touchStudio .musicDetails pre{color:#cbd7e0}.touchStudio .captionList small{color:#a5c4d7}.touchStudio .cameraToggle{color:#eee}.touchStudio .layerList{display:grid;gap:8px}.touchStudio .layerList button{text-align:left;min-height:56px;display:grid;gap:4px}.touchStudio .layerList button span{font-weight:400;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.touchStudio .clipactions{padding:10px 14px}.touchStudio .advanced{border-color:#4f5f6a}.touchStudio .advanced summary{color:#d1dce4}
#mediaSelection{position:absolute;z-index:6;border:1.5px solid #ffaf70;box-shadow:0 0 0 1px #0007;pointer-events:none;touch-action:none}#mediaSelection .mediaTag{position:absolute;left:8px;top:6px;font:700 9px system-ui,sans-serif;letter-spacing:1px;color:#291a0f;background:#ffc094;padding:3px 5px;border-radius:3px;pointer-events:none}#mediaSelection .directGrip{position:absolute;width:38px;height:38px;min-height:38px;padding:0;background:transparent;border:0;pointer-events:auto;touch-action:none;border-radius:50%}#mediaSelection .directGrip:after{content:'';position:absolute;inset:11px;background:#ffb67f;border:2px solid #482c16;border-radius:4px;box-shadow:0 1px 4px #0008}#mediaSelection .nw{left:-19px;top:-19px;cursor:nwse-resize}#mediaSelection .ne{right:-19px;top:-19px;cursor:nesw-resize}#mediaSelection .sw{left:-19px;bottom:-19px;cursor:nesw-resize}#mediaSelection .se{right:-19px;bottom:-19px;cursor:nwse-resize}.touchStudio #textSelection{z-index:7;border-color:#81d6ff;pointer-events:auto}.touchStudio .resizeGrip::after{background:#8bd9ff;border-color:#1c4e68}.touchStudio #pipSelection{z-index:8;border-color:#9de879}.touchStudio #pipSelection button{background:#a8e786;color:#17330a}.touchStudio dialog{background:#252d33;color:#f3f1ed;border:1px solid #65737d}.touchStudio dialog p{color:#d0d8de}.touchStudio dialog button{background:#3c4952;border-color:#697b87;color:#fff}.touchStudio dialog button.primary{background:#f78c54;color:#27180d;border-color:#f78c54}.touchStudio dialog .addMenu button{background:#303b44;color:#fff}.touchStudio dialog .addMenu small{color:#bdcbd5}.touchStudio dialog .addMenu b{color:#ffc399}.touchStudio #toast{background:#fff0e2;color:#36200e;bottom:20px}.touchStudio .progress{background:#485965}.touchStudio .progress>div{background:#ffae75}
@media(max-width:500px){.touchStudio .objectBar{display:block;padding:6px 10px;min-height:78px}.touchStudio .objectStatus{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:5px}.touchStudio .objectStatus b{font-size:11px}.touchStudio .objectStatus span{font-size:9px;max-width:200px;text-align:right}.touchStudio .objectActions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.touchStudio .objectActions button{min-height:36px;font-size:11px;padding:5px}.touchStudio .touchSheet{max-height:38dvh}.touchStudio .directHint{font-size:10px;padding:5px 2px}}
@media(max-height:650px){.touchStudio header{height:48px;min-height:48px}.touchStudio .workspace{height:calc(100dvh - 48px)}.touchStudio .objectStatus span{display:none}.touchStudio .objectBar{min-height:57px;padding:4px 8px}.touchStudio .objectStatus{margin-bottom:3px}.touchStudio .objectActions button{min-height:30px}.touchStudio .tools button{min-height:51px;padding:5px 2px}.touchStudio .editorTimeline{flex-basis:87px;min-height:87px;height:87px}.touchStudio .timelineClock{display:none}.touchStudio footer{display:none}.touchStudio .directHint{display:none}.touchStudio .touchSheet{max-height:37dvh}}
