/* Editing stays in one screen: preview → timeline → tools → current tool. */
.touchStudio .workspace{max-width:1000px}.touchStudio header{max-width:1000px}.touchStudio main{min-height:125px}.touchStudio .stage{padding:12px}.touchStudio .directHint{display:none}.touchStudio .objectBar{min-height:44px;height:44px;padding:4px 10px;display:flex;gap:8px}.touchStudio .objectStatus{display:block;margin:0}.touchStudio .objectStatus b{font-size:11px;white-space:nowrap}.touchStudio .objectStatus span{display:none}.touchStudio .objectActions{display:flex;overflow-x:auto;scrollbar-width:none;gap:5px}.touchStudio .objectActions button{min-height:34px;min-width:44px;padding:5px 8px;font-size:11px}.touchStudio .transport{min-height:40px;height:40px}.touchStudio #scrubber{height:20px;min-height:20px}
.touchStudio .editorTimeline,.touchStudio.is-empty .editorTimeline,.touchStudio.sheet-open .editorTimeline{order:0;display:block!important;flex:0 0 113px;height:113px;min-height:113px;padding:0 0 0 51px;border-block:1px solid #3b444c;background:#161b20;position:relative}.touchStudio .editorTimeline.has-overlays{height:140px;min-height:140px;flex-basis:140px}.touchStudio .timelineScroll{height:91px;padding:5px 16px 5px 12px}.touchStudio .has-overlays .timelineScroll{height:118px}.touchStudio .timelineTracks{margin:4px 0 0;padding:0}.touchStudio .textTrack{position:relative;height:32px;margin-bottom:6px;background:#202d38;border-radius:4px;touch-action:pan-x}.touchStudio .textClip{position:absolute;top:0;height:32px;min-height:32px;min-width:8px;padding:3px 8px;border:1px solid #5d9ec8;background:#244d68;color:#e3f6ff;border-radius:4px;touch-action:none;overflow:visible;white-space:nowrap;text-align:left}.touchStudio .textClip.selected{border:2px solid #8fd9ff;background:#326384;z-index:5}.touchStudio .textClip>span{font-size:11px;display:block;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.touchStudio .textClip i{position:absolute;top:-2px;height:32px;width:22px;min-height:32px;padding-top:7px;background:#99d9ff;color:#0d2a3e;font:12px/1.4 system-ui;text-align:center;font-style:normal;touch-action:none;border-radius:4px;cursor:ew-resize}.touchStudio .textClip i[data-text-edge=start]{left:-8px}.touchStudio .textClip i[data-text-edge=end]{right:-8px}.touchStudio .textClip.selected>span{padding-inline:9px}.touchStudio .textTrackEmpty{width:100%;height:32px;min-height:32px;padding:4px 10px;border:1px dashed #536d82;background:none;color:#abd2ed;font-size:11px;text-align:left;white-space:nowrap}.touchStudio .clips{height:40px;min-height:40px;margin:0}.touchStudio .clip,.touchStudio .clip.video,.touchStudio .clip.image{height:40px;min-height:40px}.touchStudio .pipTrack{height:23px;margin-top:5px}.touchStudio .pipClip{height:23px;min-height:23px}.touchStudio .timelineClock{padding:0 14px 0 12px;font-size:10px;line-height:20px}.touchStudio .timelineAdd{left:8px;bottom:29px;width:34px;height:34px;min-height:34px;font-size:25px}.touchStudio .has-overlays .timelineAdd{bottom:56px}.touchStudio .laneLabels{position:absolute;top:9px;left:7px;width:42px;display:grid;grid-template-rows:38px 44px 23px;pointer-events:none}.touchStudio .laneLabels span{font-size:8px;letter-spacing:.7px;color:#98b5cb;line-height:32px}.touchStudio .timelinePlayhead{z-index:7;width:2px;background:#fff1df}.touchStudio .timelinePlayhead:before{background:#fff1df}
.touchStudio .navStatus{flex-shrink:0;min-height:29px;padding:2px 12px;display:flex;align-items:center;justify-content:space-between;background:#20272d;border-bottom:1px solid #343e46;color:#c8d3dc;font-size:11px}.touchStudio .navStatus button{min-height:29px;padding:3px 10px;background:transparent;border:0;color:#ffbd94;font-size:12px}.touchStudio .navTip{color:#9dabba;font-size:10px}.touchStudio .editorToolbar{flex-shrink:0;border-bottom:1px solid #3a4249}.touchStudio .tools,.touchStudio.is-empty .tools{display:flex!important;overflow-x:auto;overflow-y:hidden;padding:3px 6px;gap:4px;scrollbar-width:thin;scrollbar-color:#62727f transparent;touch-action:pan-x}.touchStudio .tools button{flex:0 0 68px;min-height:61px;padding:5px 2px;font-size:11px;gap:5px;white-space:nowrap}.touchStudio .tools button b{font:25px/1 system-ui}.touchStudio .tools button[data-touch-tool=captions] b{color:#99d9ff}.touchStudio .tools button.active{background:#36495a;color:#fff}.touchStudio .tools button.active b{color:#c6eaff}.touchStudio .touchSheet{flex:0 1 auto;max-height:32dvh;min-height:0;scroll-padding-top:0}.touchStudio .touchSheet[hidden]{display:none!important}.touchStudio .touchSheet .panelheading{display:none}.touchStudio #panelContent,.touchStudio #inspectorContent{padding:12px}.touchStudio .wordsField{margin:0 0 10px}.touchStudio .wordsField textarea{font-size:16px;line-height:1.4;min-height:65px;height:65px;padding:10px;resize:vertical;border:1px solid #788d9d}.touchStudio .textInstruction{font-size:12px;line-height:1.6;color:#c4d2de;margin:10px 0}.touchStudio .timingFields{display:grid;grid-template-columns:minmax(0,1fr) 84px;gap:7px;align-items:end}.touchStudio .timingFields .field{margin:0;gap:4px}.touchStudio .timingFields input{min-height:40px;width:100%;font-size:16px;padding:7px}.touchStudio .timingFields .field>span{font-size:11px}.touchStudio .timingFields button{min-height:40px;padding:6px;font-size:12px;background:#2e4659;border-color:#638199}.touchStudio .textQuick{display:flex;gap:7px;margin:10px 0;flex-wrap:wrap}.touchStudio .textQuick button{flex:1;min-height:40px;font-size:11px;padding:7px;white-space:nowrap}.touchStudio .textStyle,.touchStudio .subtitleOptions{border-top:1px solid #4e5d68;padding:10px 0;margin-top:10px}.touchStudio .textStyle summary,.touchStudio .subtitleOptions summary{color:#c5d9e8;font-size:12px;min-height:28px;cursor:pointer}.touchStudio .textStyle .fieldrow{margin-top:10px}.touchStudio .textList{display:grid;gap:5px;margin-top:8px}.touchStudio .textList:empty{display:none}.touchStudio .textList button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;text-align:left;padding:8px 10px}.touchStudio .textList span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.touchStudio .textList small{font-size:10px;white-space:nowrap;color:#c7d5df}.touchStudio .textList .active{border-color:#99d9ff;background:#2b4b63}.touchStudio .subtitleOptions{margin-bottom:0}.touchStudio footer{min-height:22px;height:22px;font-size:9px}.touchStudio .touchSheet .clipactions{padding:8px 12px}.touchStudio .touchSheet .advanced{margin:0 12px 10px}.touchStudio #toast{bottom:88px}
#captionSelection{position:absolute;z-index:9;border:1.5px solid #99d9ff;box-shadow:0 0 0 1px #001e3680;pointer-events:none;touch-action:none}#captionSelection .directGrip{position:absolute;width:36px;height:36px;min-height:36px;padding:0;background:none;border:0;pointer-events:auto;touch-action:none;border-radius:50%}#captionSelection .directGrip:after{content:'';position:absolute;inset:12px;background:#99d9ff;border:1px solid #18374b;border-radius:3px}#captionSelection .nw{left:-18px;top:-18px}#captionSelection .ne{right:-18px;top:-18px}#captionSelection .sw{left:-18px;bottom:-18px}#captionSelection .se{right:-18px;bottom:-18px}
@media(min-width:780px){.touchStudio .touchSheet{max-height:34dvh}.touchStudio .tools button{flex:1 0 68px}.touchStudio .timingFields{grid-template-columns:1fr 100px 1fr 100px}.touchStudio .wordsField textarea{min-height:60px}.touchStudio #panelContent{max-width:840px;margin:auto}.touchStudio .textList{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:700px){.touchStudio header{height:46px;min-height:46px}.touchStudio .workspace{height:calc(100dvh - 46px)}.touchStudio .objectBar{min-height:36px;height:36px;padding-block:2px}.touchStudio .objectActions button{min-height:30px}.touchStudio .tools button{min-height:52px}.touchStudio .tools button b{font-size:22px}.touchStudio .touchSheet{max-height:27dvh}.touchStudio .navStatus{min-height:25px}.touchStudio .timelineClock{display:flex}.touchStudio footer{display:none}.touchStudio .transport{height:34px;min-height:34px}.touchStudio #scrubber{height:16px;min-height:16px}}
@media(max-height:500px) and (min-width:650px){body.touchStudio{overflow:auto;height:auto}.touchStudio .workspace{min-height:750px;height:auto}.touchStudio main{height:300px;flex:none}.touchStudio .touchSheet{max-height:260px}}
