.editor-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:30px 0 22px}.editor-heading h2{font:normal clamp(32px,4vw,48px) Georgia,serif;letter-spacing:-.04em;margin:8px 0}.editor-heading h2 em{color:#608b6d}.editor-heading p:last-child,.editor-side>p:not(.eyebrow){color:#75877a;font-size:13px;line-height:1.6;margin:0}.file-button{margin:0;position:relative;display:inline-block;padding:13px 20px;border-radius:6px;background:#24583d;color:white;cursor:pointer;white-space:nowrap}.file-button:focus-within{outline:2px solid #24583d;outline-offset:3px}.file-button input{position:absolute;width:1px;height:1px;opacity:0}.editor-workspace{display:grid;grid-template-columns:minmax(0,1fr) 275px;background:#fff;border:1px solid #dfe7dc;border-radius:10px;overflow:hidden}.viewer{padding:18px;background:#e8eee5;min-width:0}.viewer-top,.viewer-bottom{display:flex;justify-content:space-between;gap:12px;font-size:10px;font-weight:bold;letter-spacing:.1em;color:#718777}.viewer-top span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:0}.screen{height:clamp(240px,40vw,470px);background:#16251e;border-radius:6px;margin:12px 0;display:grid;place-items:center;overflow:hidden}.screen video{width:100%;height:100%;object-fit:contain;margin:0}.screen #placeholder{text-align:center;color:#d1ded2}.screen #placeholder span{font-size:40px}.screen #placeholder p{margin:8px}.screen #placeholder small{color:#9aafa0}.editor-side{padding:24px}.editor-side h3{font:normal 27px Georgia,serif;line-height:1.15;margin:14px 0}.editor-side dl{margin:24px 0}.editor-side dl div{display:flex;justify-content:space-between;border-top:1px solid #edf0eb;padding:12px 0;font-size:12px}.editor-side dt{color:#75877a}.editor-side dd{margin:0;font-weight:bold}.editor-side #status{font-size:12px;line-height:1.5;color:#52725d;overflow-wrap:anywhere}.timeline-panel{margin-top:16px;background:#fff;border:1px solid #dfe7dc;border-radius:10px;padding:22px}.timeline-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.timeline-header h3{margin:7px 0 0;font-size:17px}.editor-actions{display:flex;gap:8px;flex-wrap:wrap}.editor-actions button,#adjust{width:auto;margin:0;padding:10px 13px;background:#eaf1e8;color:#24583d}.timeline-help{font-size:12px;color:#75877a;margin:22px 0 8px}#seek{margin:0;cursor:pointer}.timeline{display:flex;position:relative;height:76px;margin-top:8px;background:#eef1ec;border-radius:6px;overflow:hidden}.segment{height:100%;margin:0;border:2px solid #fff;border-radius:5px;background:#b5cfab;color:#244b34;padding:8px;min-width:0;overflow:hidden;white-space:nowrap;font-size:11px}.segment[aria-pressed=true]{border-color:#24583d;background:#89b48b}.segment.removed{background:#edf0eb;color:#a3afa3;text-decoration:line-through}.timeline-scale{display:flex;justify-content:space-between;color:#9aac9e;font-size:9px;letter-spacing:.1em;margin-top:8px}#segment-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;border-top:1px solid #edf0eb;margin-top:20px;padding-top:14px;font-size:12px;color:#627268}#segment-controls>span{align-self:center;font-weight:bold}#segment-controls label{margin:0;font-size:11px}#segment-controls input{display:block;width:110px;padding:8px;margin-top:5px;border:1px solid #d9e1d6;border-radius:5px;font:inherit}#adjust-message{width:100%;margin:0;color:#a13d34}@media(max-width:700px){.editor-heading{align-items:start;flex-direction:column}.editor-workspace{grid-template-columns:1fr}.editor-side{padding:20px}.editor-side dl{margin:14px 0}.timeline-header{align-items:start;flex-direction:column}.screen{height:250px}.site-nav{flex-wrap:wrap;justify-content:end}}
.editor-side select{display:block;width:100%;border:1px solid #d9e1d6;border-radius:6px;background:#fafbf8;color:#1c3027;padding:10px;font:inherit;font-size:12px}.editor-side select:focus-visible{outline:2px solid #24583d;outline-offset:3px}

/* Keep the preview and controls inside the available viewport. */
[hidden]{display:none!important}
.screen{position:relative;height:auto;aspect-ratio:16/9;max-height:65vh}
.screen video{min-width:0;max-height:65vh}
.editor-workspace,.timeline-panel,.editor-side{min-width:0}
.crop-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.crop-toolbar label{margin:0;display:flex;align-items:center;gap:8px}
.crop-toolbar button{width:auto;margin:0;padding:10px;background:#d5e2d0;color:#24583d}
.crop-toolbar p{width:100%;font-size:12px;color:#52725d;margin:0 0 12px}
#crop-layer{position:absolute;pointer-events:none;overflow:hidden}
#crop-box{position:absolute;border:2px solid #d4ec94;box-shadow:0 0 0 200vmax #0008;pointer-events:auto;touch-action:none;cursor:move}
#crop-box:focus-visible{outline:3px solid white}
#crop-box i{position:absolute;width:24px;height:24px;border:3px solid #fff;background:#24583d;border-radius:4px;touch-action:none}
[data-corner=nw]{left:-2px;top:-2px;cursor:nwse-resize}
[data-corner=ne]{right:-2px;top:-2px;cursor:nesw-resize}
[data-corner=sw]{left:-2px;bottom:-2px;cursor:nesw-resize}
[data-corner=se]{right:-2px;bottom:-2px;cursor:nwse-resize}
#seek{height:40px;touch-action:pan-y}
.timeline{overflow-x:auto}
.segment{flex-shrink:0!important;min-width:44px}
@media(max-width:900px){.editor-workspace{grid-template-columns:1fr}.editor-side dl{display:flex;gap:20px;flex-wrap:wrap}.editor-side dl div{gap:12px}.screen{height:auto}}
@media(max-width:480px){main{padding:12px}.viewer,.timeline-panel{padding:12px}.editor-actions{width:100%}.editor-actions button{flex:1;min-height:44px}.viewer-top{letter-spacing:0}.screen{min-height:0}.editor-heading{padding-top:20px}}

.editor-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;align-items:center}
.editor-tools button{width:auto;margin:0;padding:12px;background:#d5e2d0;color:#24583d}
#proxy-status{font-size:12px;color:#52725d}
body.editor-expanded main{max-width:none}
.editor-workspace.sidebar-hidden{grid-template-columns:minmax(0,1fr)}
.sidebar-hidden .editor-side{display:none}
.timeline-scroll{overflow-x:auto}
#timeline-content{min-width:100%}
.timeline{overflow:visible}
.segment{min-width:0;padding:4px;touch-action:manipulation}
.zoom-control{display:flex;align-items:center;gap:12px;margin:12px 0}
.zoom-control input{max-width:180px}

.embedded-editor main {max-width:none;padding:1rem} .embedded-editor header,.embedded-editor footer,.embedded-editor .editor-heading h2,.embedded-editor .editor-heading p {display:none} .embedded-editor .editor-heading{margin:0 0 1rem}.return-workflow{max-width:22rem} 

.embedded-editor .screen,.embedded-editor .screen video{max-height:480px}.embedded-editor .screen video{height:100%}
