/* SnipyCut approved iPad editor layout, 2026-11-03.
   This styles OpenReel's original controls, without cloning actions. */
@media (min-width:760px) and (any-pointer:coarse){
.editor-shell.editor-compact{
--sc-left-edge:12px;--sc-left-width:170px;--sc-right-edge:calc(100vw - 182px);
--sc-right-width:170px;--sc-work-top:10px;--sc-stage-right:calc(100vw - 190px);
--sc-stage-bottom:calc(100dvh - 195px);--sc-nav-top:255px
}
.editor-shell.editor-compact>header{
height:0!important;min-height:0!important;flex:0 0 0!important;padding:0!important;
border:0!important;overflow:visible!important;background:transparent!important;z-index:45!important
}
.editor-shell.editor-compact .editor-body{flex:1 1 auto;min-height:0;overflow:hidden}
.editor-shell.editor-compact .editor-workspace{
gap:7px!important;padding:7px!important;
grid-template-columns:clamp(145px,15.5vw,218px) minmax(0,1fr) clamp(152px,15.5vw,218px)!important;
grid-template-rows:minmax(0,1fr) minmax(155px,26%)!important;
grid-template-areas:"snipy-left stage snipy-right" "timeline timeline timeline"!important
}
.editor-shell.editor-compact .editor-workspace::before,
.editor-shell.editor-compact .editor-workspace::after{
content:"";display:block;background:var(--bg-1,#fff);border:1px solid var(--border,#e2e2e7);
border-radius:12px;min-width:0;min-height:0
}
.editor-shell.editor-compact .editor-workspace::before{grid-area:snipy-left}
.editor-shell.editor-compact .editor-workspace::after{grid-area:snipy-right}
.editor-shell.editor-compact .editor-stage,
.editor-shell.editor-compact #editor-panel-timeline{position:relative;z-index:1;min-width:0;min-height:0}
.editor-shell.editor-compact>header>[data-editor-header="mode"]{
position:fixed!important;top:calc(var(--sc-work-top) + 7px);
left:calc(var(--sc-left-edge) + 5px);width:calc(var(--sc-left-width) - 10px);
margin:0!important;padding:3px!important;display:grid!important;grid-template-columns:1fr 1fr;gap:2px;z-index:50
}
.editor-shell.editor-compact>header>[data-editor-header="mode"] button{
min-width:0;min-height:43px;white-space:normal;line-height:1.15;padding:4px 3px;font-size:11px
}
.editor-shell.editor-compact>header>[data-editor-header="project"]{
position:fixed!important;top:calc(var(--sc-work-top) + 35px);
left:calc(var(--sc-right-edge) + 10px);width:calc(var(--sc-right-width) - 20px);
display:flex!important;flex-direction:column;justify-content:flex-start!important;
align-items:stretch!important;gap:9px;min-width:0;z-index:50
}
.editor-shell.editor-compact>header>[data-editor-header="project"]>div{display:block!important;width:100%;min-width:0}
.editor-shell.editor-compact>header>[data-editor-header="project"] input{
width:100%!important;max-width:none!important;border:1px solid var(--border)!important;
border-radius:8px;padding:9px 5px!important;height:42px;font-weight:600;text-align:center;background:var(--bg-1)
}
.editor-shell.editor-compact>header>[data-editor-header="export"]{
position:fixed!important;top:calc(var(--sc-work-top) + 139px);
left:calc(var(--sc-right-edge) + 10px);width:calc(var(--sc-right-width) - 20px);
display:flex!important;justify-content:stretch!important;align-items:stretch!important;z-index:51
}
.editor-shell.editor-compact>header>[data-editor-header="export"]>*{width:100%}
.editor-shell.editor-compact>header>[data-editor-header="export"] button{min-height:40px}
.editor-shell.editor-compact>.editor-workspace-tabs{
position:fixed!important;top:var(--sc-nav-top);left:calc(var(--sc-right-edge) + 10px);
width:calc(var(--sc-right-width) - 20px);height:auto;
max-height:calc(var(--sc-stage-bottom) - var(--sc-nav-top) - 12px);
min-height:0;display:flex!important;flex-direction:column!important;gap:7px;
padding:0!important;border:0!important;background:transparent!important;overflow-y:auto;z-index:43
}
.editor-shell.editor-compact>.editor-workspace-tabs::before{
content:"Araçlar";font-size:13px;font-weight:750;padding:0 0 7px;
border-bottom:1px solid var(--border);margin-bottom:2px;flex:none
}
.editor-shell.editor-compact>.editor-workspace-tabs button{
flex:0 0 44px;width:100%;min-height:44px;padding:8px 5px;text-align:center;
font-size:0!important;border:1px solid var(--border);border-radius:9px;
background:var(--bg-2);color:var(--fg-2)
}
.editor-shell.editor-compact>.editor-workspace-tabs button::after{font-size:12px;font-weight:650}
.editor-shell.editor-compact>.editor-workspace-tabs button[aria-controls="editor-panel-timeline"]::after{content:"Zaman çizelgesi"}
.editor-shell.editor-compact>.editor-workspace-tabs button[aria-controls="editor-panel-media"]::after{content:"Medya"}
.editor-shell.editor-compact>.editor-workspace-tabs button[aria-controls="editor-panel-inspector"]::after{content:"Düzenle"}
.editor-shell.editor-compact>.editor-workspace-tabs button[aria-controls="editor-panel-chat"]::after{content:"Yapay Zekâ"}
.editor-shell.editor-compact>.editor-workspace-tabs button[aria-pressed=true]{
color:white!important;background:#8f69f7!important;border-color:#8f69f7!important
}
.editor-shell.editor-compact [data-tour=preview]{overflow:hidden}
.editor-shell.editor-compact [data-tour=preview]>.border-b{display:none!important}
.editor-shell.editor-compact [data-tour=preview]>.flex-1{flex:1 1 auto;min-height:0;padding:3px!important}
.editor-shell.editor-compact [data-tour=preview]>.shrink-0.border-t{
position:absolute!important;left:0;right:0;bottom:0;z-index:30;
background:transparent!important;border:0!important;color:white!important;overflow:visible!important
}
.editor-shell.editor-compact [data-tour=preview]>.shrink-0.border-t::before{
content:"";position:absolute;bottom:0;left:0;right:0;height:108px;
background:linear-gradient(transparent,rgba(0,0,0,.68));pointer-events:none;z-index:-1
}
.editor-shell.editor-compact [data-tour=preview]>.shrink-0.border-t>.h-1\.5{
position:relative;background:rgba(255,255,255,.3);z-index:1
}
.editor-shell.editor-compact [data-preview-transport]{
display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
min-height:55px;padding:4px 10px!important;gap:5px;align-items:center;
overflow:visible!important;background:transparent!important
}
.editor-shell.editor-compact [data-preview-timecode]{grid-column:1;justify-self:start;min-width:0}
.editor-shell.editor-compact [data-preview-timecode],
.editor-shell.editor-compact [data-preview-timecode] *{color:white!important;text-shadow:0 1px 2px #000a}
.editor-shell.editor-compact [data-preview-playback]{
grid-column:2;justify-self:center;margin:0!important;gap:7px
}
.editor-shell.editor-compact [data-preview-playback] button{
color:white!important;background:rgba(255,255,255,.14)!important;
border-radius:9px;backdrop-filter:blur(5px)
}
.editor-shell.editor-compact [data-preview-playback] button:nth-child(2){
border-radius:50%;background:rgba(255,255,255,.23)!important;box-shadow:0 2px 8px #0003
}
.editor-shell.editor-compact [data-preview-tools]{
position:fixed!important;top:calc(var(--sc-work-top) + 78px);
left:calc(var(--sc-left-edge) + 10px);width:calc(var(--sc-left-width) - 20px);
display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
grid-auto-rows:minmax(39px,auto);gap:7px!important;align-content:start;
align-items:stretch;padding:0!important;margin:0!important;z-index:55;background:transparent
}
.editor-shell.editor-compact [data-preview-tools]::before{
content:"Oynatıcı";grid-column:1/-1;font-weight:750;font-size:13px;
color:var(--fg,#252333);align-self:center;padding:0 2px;height:22px
}
.editor-shell.editor-compact [data-preview-tools]>*{min-width:0;margin:0!important}
.editor-shell.editor-compact [data-preview-tools]>:nth-child(3),
.editor-shell.editor-compact [data-preview-tools]>:nth-child(4),
.editor-shell.editor-compact [data-preview-tools]>:nth-child(5),
.editor-shell.editor-compact [data-preview-tools]>:nth-child(6){grid-column:1/-1}
.editor-shell.editor-compact [data-preview-tools]>button,
.editor-shell.editor-compact [data-preview-tools]>div>button{
width:100%!important;height:100%;min-height:38px;min-width:0;border-radius:8px;
background:var(--bg-2)!important;color:var(--fg-2)!important;justify-content:center;
font-size:11px;white-space:normal;padding:6px 3px
}
.editor-shell.editor-compact [data-preview-tools]>button[aria-pressed=true]{
background:#302056!important;color:white!important
}
.editor-shell.editor-compact [data-preview-tools]>:nth-child(1),
.editor-shell.editor-compact [data-preview-tools]>:nth-child(2){
position:fixed!important;top:calc(var(--sc-stage-bottom) - 56px);
width:38px!important;height:38px!important;min-width:38px;min-height:38px;
background:rgba(25,24,32,.57)!important;color:white!important;
border:1px solid rgba(255,255,255,.15);backdrop-filter:blur(5px);z-index:60
}
.editor-shell.editor-compact [data-preview-tools]>:nth-child(1){left:calc(var(--sc-stage-right) - 91px)}
.editor-shell.editor-compact [data-preview-tools]>:nth-child(2){left:calc(var(--sc-stage-right) - 47px)}
.editor-shell.editor-compact [data-preview-tools]>:nth-child(-n+2):hover{
background:rgba(25,24,32,.76)!important
}
.editor-shell.editor-compact #editor-panel-timeline[hidden]{display:flex!important}
.editor-shell.editor-compact #editor-panel-media:not([hidden]),
.editor-shell.editor-compact #editor-panel-inspector:not([hidden]),
.editor-shell.editor-compact #editor-panel-chat:not([hidden]){
position:fixed!important;top:calc(var(--sc-work-top) + 12px);
left:calc(var(--sc-right-edge) - 315px);width:310px;
height:calc(var(--sc-stage-bottom) - var(--sc-work-top) - 14px);
max-height:calc(100dvh - 175px);grid-area:unset!important;z-index:42;
box-shadow:0 12px 40px #0003;background:var(--bg-1)
}
.editor-shell.editor-compact .editor-rail:not([hidden]){
position:fixed;top:calc(var(--sc-work-top) + 12px);
left:calc(var(--sc-right-edge) - 370px);width:50px;
height:calc(var(--sc-stage-bottom) - var(--sc-work-top) - 14px);
z-index:43;background:var(--bg-1)
}
}
@media (min-width:760px) and (any-pointer:coarse) and (max-height:730px){
.editor-shell.editor-compact .editor-workspace{
grid-template-rows:minmax(0,1fr) minmax(120px,24%)!important
}
.editor-shell.editor-compact [data-preview-tools]{
top:calc(var(--sc-work-top) + 66px);gap:4px!important;grid-auto-rows:minmax(31px,auto)
}
.editor-shell.editor-compact [data-preview-tools]>button,
.editor-shell.editor-compact [data-preview-tools]>div>button{min-height:30px;padding:3px}
.editor-shell.editor-compact>.editor-workspace-tabs{gap:4px}
.editor-shell.editor-compact>.editor-workspace-tabs button{min-height:34px;flex-basis:34px}
.editor-shell.editor-compact>header>[data-editor-header="export"]{top:calc(var(--sc-work-top) + 125px)}
}
/* Leave room for the persistent home logo above the mode switch. */
@media (min-width:760px) and (any-pointer:coarse){
.editor-shell.editor-compact>header>[data-editor-header="mode"]{top:calc(var(--sc-work-top) + 42px)}
.editor-shell.editor-compact [data-preview-tools]{top:calc(var(--sc-work-top) + 105px)}
}
