.scene-editor{margin-top:20px;min-width:0}
.scene-editor .field{min-width:0}
.scene-editor select,.scene-editor input{max-width:100%;min-width:0;font-size:16px}
.scene-editor button{min-height:48px;line-height:1.3;font-size:14px;touch-action:manipulation}
.scene-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}
.scene-tools button{padding:12px 9px;min-width:0}
.scene-participant-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.scene-participant-actions .note{flex:1;min-width:170px;margin:0}
.scene-object-picker{padding:16px;border:1px solid #c4d7e5;border-radius:10px;background:#f4f6f9}
.scene-tool-hint{min-height:44px;margin:10px 0;line-height:1.5}
.scene-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#fff;padding:10px 0}
.scene-quick-actions button{padding:12px 8px}
.scene-legend{display:flex;gap:8px 18px;flex-wrap:wrap;margin:12px 0;font-size:13px}
.scene-legend span{display:inline-flex;gap:6px;align-items:center}
.scene-legend i{width:10px;height:10px;border-radius:50%;flex:none}
.scene-editor details{border-top:1px solid #d5dee8;padding:8px 0;margin:12px 0}
.scene-editor summary{line-height:1.5;padding:12px 0}
.scene-editor h3{font-size:17px;margin:20px 0 12px}
.scene-object-record{border:1px solid #d5dee8;padding:16px;border-radius:10px;margin:12px 0}
.scene-object-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.scene-editor .timeline{gap:10px}
.scene-editor #timeline{min-height:48px;touch-action:pan-x}
.scene-editor .scene.editing svg{touch-action:none}
.scene-editor .scene:not(.editing) svg{touch-action:pan-y}
.scene-editor .scene.editing [data-scene-object]{cursor:grab}
.scene-editor .scene.editing [data-scene-object]:active{cursor:grabbing}
.scene-editor [data-edit-target]{cursor:grab}
.scene-editor [data-edit-target]:active{cursor:grabbing}
.scene-selection:empty{display:none}
.scene-selection{padding:10px 12px;border-left:4px solid #e2a225;background:#fff8e9;font-size:14px;line-height:1.5;margin:8px 0}
@media(max-width:760px){
 .scene-editor .scene-participant{grid-template-columns:1fr 1fr;gap:10px}
 .scene-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
 .scene-quick-actions{position:sticky;bottom:0;z-index:4;padding-bottom:max(10px,env(safe-area-inset-bottom));border-top:1px solid #d5dee8}
 .scene-object-fields{grid-template-columns:1fr 1fr}
 .scene-editor .timeline{display:grid;grid-template-columns:auto 1fr auto}
 .scene-editor .timeline input{width:100%;min-width:0}
 .scene-editor .timeline button{max-width:110px}
 .scene-tool-hint{font-size:14px}
}
.phone-mode .scene-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
.phone-mode .scene-participant{grid-template-columns:1fr 1fr}
.phone-mode .scene-object-fields{grid-template-columns:1fr 1fr}
@media print{.scene-quick-actions,.scene-tools{display:none}}
