.nene-editor{max-width:900px;margin:0 auto;padding-bottom:calc(110px + env(safe-area-inset-bottom));width:100%;min-width:0}.nene-editor h1{font-size:28px}.nene-editor h2{font-size:20px;margin:24px 0 12px}.nene-editor label{display:block;font-size:15px;line-height:1.5}.nene-editor input:not([type=checkbox]),.nene-editor select,.nene-editor textarea{box-sizing:border-box;width:100%;min-height:46px;margin-top:6px;padding:10px;border:1px solid #63522d;border-radius:10px;color:#f5efd9;background:#151410;font-size:16px}.nene-editor input[type=file]{overflow:hidden}.nene-editor input[type=range]{padding:4px}.nene-editor button,.nene-editor .btn{min-height:46px;white-space:normal}.nene-editor button:disabled{opacity:.45}.nene-editor .editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.nene-editor .editor-clip,.nene-editor .editor-caption{padding:14px;border:1px solid #554522;border-radius:14px;margin:10px 0;background:#12110e}.nene-editor .editor-clip h3{font-size:16px;overflow-wrap:anywhere;margin:0 0 12px}.nene-editor .editor-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.nene-editor .editor-actions>*{flex:1 1 120px}.nene-editor canvas{display:block;width:100%;height:clamp(220px,42vh,380px);height:clamp(220px,42svh,380px);object-fit:contain;background:#000;border-radius:12px}.nene-editor details{border:1px solid #554522;border-radius:12px;padding:14px;margin:14px 0}.nene-editor summary{cursor:pointer;font-size:17px;min-height:36px}.nene-editor .editor-note{font-size:14px;line-height:1.5;color:#d4cab0}.nene-editor [hidden]{display:none!important}.nene-editor progress{width:100%;height:16px;accent-color:#d7b453}.nene-editor .editor-receipt{overflow-wrap:anywhere}.nene-editor .editor-history-item{border-top:1px solid #554522;padding:14px 0}.nene-editor .editor-danger{color:#ffbaba}.nene-editor input:focus-visible,.nene-editor textarea:focus-visible,.nene-editor select:focus-visible,.nene-editor button:focus-visible{outline:2px solid #f7d26c;outline-offset:3px}@media(max-width:480px){.nene-editor .editor-grid{grid-template-columns:1fr}.nene-editor .notice{font-size:14px;line-height:1.6}}

/* Keep editor controls readable in narrow and desktop-site mobile viewports. */
.nene-editor .editor-grid>*{min-width:0}.nene-editor .notice:empty{display:none}.nene-editor input[type=file]::file-selector-button{border:1px solid #8b703b;border-radius:8px;padding:9px 12px;margin-right:10px;background:#292113;color:#ffe7a1;font:inherit}.nene-editor select{min-width:0;text-overflow:ellipsis}.nene-editor progress{margin:10px 0}.nene-editor .editor-actions{margin-bottom:12px}
@media(max-width:600px){.nene-editor .editor-grid{grid-template-columns:1fr}.nene-editor .editor-actions{flex-direction:column}.nene-editor .editor-actions>*{flex:auto;width:100%}}
/* Visual film workspace. Media never leaves the device for rendering. */
.nene-editor .editor-preview-dock{background:#090909;border:1px solid #493b22;border-radius:16px;padding:10px;margin:14px 0;z-index:8}
.nene-editor .editor-preview-dock canvas{height:clamp(160px,25vh,280px);height:clamp(160px,25svh,280px)}
.nene-editor .editor-preview-dock output{display:block;text-align:center;font-size:13px;color:#e7d6ab;font-variant-numeric:tabular-nums}
.nene-editor .editor-preview-dock .editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 0}
.nene-editor .editor-preview-dock .editor-actions>*{min-height:44px;font-size:13px;padding:9px}
.nene-editor .editor-preview-hint{color:#cfc2a1;text-align:center;font-size:14px;margin:6px 0}
.nene-editor .editor-filmstrip{display:flex;gap:10px;overflow-x:auto;padding:6px 2px 12px;scroll-snap-type:x proximity}
.nene-editor .editor-clip-tile{flex:0 0 112px;min-width:0;scroll-snap-align:start;display:flex;flex-direction:column;gap:5px;padding:7px;border:1px solid #63522d;border-radius:12px;background:#17140e;color:#fff1cb;text-align:left}
.nene-editor .editor-clip-tile[aria-pressed=true]{border:2px solid #f4c95d;background:#332812}
.nene-editor .editor-clip-tile video{width:100%;height:62px;object-fit:cover;pointer-events:none;border-radius:6px;background:#000}
.nene-editor .editor-clip-tile span{font-size:12px;color:#c7bfae}
.nene-editor .editor-clip-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.nene-editor .editor-clip-actions button:last-child{grid-column:1/-1}
.nene-editor .editor-clip-actions button{font-size:13px;padding:9px;min-width:0}
.nene-editor .editor-grid>*{min-width:0}.nene-editor .notice:empty{display:none}.nene-editor progress{margin:6px 0;height:7px}
.nene-editor input[type=range]{accent-color:#edc56b;cursor:pointer;padding:0;border:0;background:transparent;min-height:38px}
.nene-editor input[type=file]::file-selector-button{border:1px solid #8b703b;border-radius:8px;padding:9px 12px;margin-right:10px;background:#292113;color:#ffe7a1;font:inherit}
.nene-editor .editor-library{display:grid;gap:8px}.nene-editor .editor-library button{overflow-wrap:anywhere}
@media(min-height:640px){.nene-editor .editor-preview-dock{position:sticky;top:calc(76px + env(safe-area-inset-top))}}
@media(max-width:600px){.nene-editor .editor-grid{grid-template-columns:1fr}}
/* Full-screen editing workspace: preview, tracks, one tool panel, toolbar. */
body.nene-editing{overflow:hidden}
body.nene-editing>.app>header,body.nene-editing .bottom{visibility:hidden;pointer-events:none}
#screen>main.nene-editor.editor-workspace{position:fixed;inset:0;z-index:40;width:100%;max-width:none;height:100vh;height:100dvh;margin:0;padding:env(safe-area-inset-top) max(10px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(10px,env(safe-area-inset-left));display:grid;grid-template-rows:50px minmax(110px,1fr) 164px minmax(100px,27dvh) 62px;gap:6px;overflow:hidden;background:#0b0b0b}
.editor-workspace .editor-workspace-header{margin:0;min-width:0;gap:10px;display:flex;align-items:center;border-bottom:1px solid #3b3020}
.editor-workspace .editor-workspace-header h1{font:600 17px system-ui,sans-serif;margin:0;flex:1;white-space:nowrap}
.editor-workspace .editor-workspace-header .back{font-size:30px;min-height:44px;min-width:36px}
.editor-workspace .editor-top-export{width:auto;min-height:38px;padding:8px 16px;border-radius:10px;font-size:14px}
.nene-editor.editor-workspace .editor-preview-dock{position:relative;top:auto;margin:0;padding:4px 8px;border:0;border-radius:0;min-height:0;display:grid;grid-template-columns:1fr auto;grid-template-rows:minmax(50px,1fr) 26px 32px auto;gap:2px 10px;background:#060606;overflow:hidden}
.nene-editor.editor-workspace .editor-preview-dock canvas{grid-column:1/-1;grid-row:1;width:100%;height:100%;min-height:0;object-fit:contain;border-radius:0}
.nene-editor.editor-workspace .editor-preview-dock .editor-preview-hint{grid-column:1/-1;grid-row:1;align-self:center;z-index:1;background:#111b;margin:auto;padding:10px;border-radius:8px}
.nene-editor.editor-workspace .editor-preview-dock input[type=range]{grid-column:1;grid-row:2;min-height:24px;margin:0}
.nene-editor.editor-workspace .editor-preview-dock output{grid-column:2;grid-row:2;align-self:center;font-size:11px}
.nene-editor.editor-workspace .editor-preview-dock .editor-actions{grid-row:3;grid-column:1/-1;display:flex;justify-content:center;margin:0;gap:10px}
.nene-editor.editor-workspace .editor-preview-dock .editor-actions>*{flex:0 1 140px;min-height:30px;padding:4px 10px;width:auto;border-radius:8px;font-size:12px}
.nene-editor.editor-workspace .editor-preview-dock progress{position:absolute;bottom:0;left:0;width:100%;height:3px;margin:0}
.nene-editor.editor-workspace .editor-preview-dock .notice{grid-column:1/-1;grid-row:4;padding:4px 8px;margin:0;border:0;background:#14110a;font-size:11px;line-height:1.3;max-height:32px;overflow:auto}
.editor-workspace .editor-tracks{position:relative;min-width:0;min-height:0;overflow:hidden;border-top:1px solid #352c1c;border-bottom:1px solid #352c1c;padding:2px 0;background:#141310}
.editor-workspace .editor-tracks::after{content:'';position:absolute;left:var(--playhead,0%);top:22px;bottom:0;width:2px;background:#ffe3a0;pointer-events:none;z-index:2}
.editor-workspace .editor-ruler{display:flex;justify-content:space-between;color:#afa99c;font-size:10px;height:20px;font-variant-numeric:tabular-nums}
.editor-workspace .editor-tracks h2{display:none}
.nene-editor.editor-workspace .editor-filmstrip{gap:4px;padding:0 0 4px;min-height:55px;max-height:64px}
.nene-editor.editor-workspace .editor-clip-tile{position:relative;min-width:56px;min-height:52px;height:54px;padding:2px;gap:0;border-radius:5px;overflow:hidden}
.nene-editor.editor-workspace .editor-clip-tile video{height:100%;position:absolute;inset:0;width:100%;border-radius:3px;opacity:.7}
.nene-editor.editor-workspace .editor-clip-tile b,.nene-editor.editor-workspace .editor-clip-tile span{position:relative;z-index:1;text-shadow:0 1px 4px #000;background:#0008;font-size:10px;padding:2px;border-radius:3px;max-width:100%;overflow:hidden;white-space:nowrap}
.editor-workspace .editor-lane{display:flex;gap:5px;align-items:flex-start;min-height:28px;margin-top:3px}
.editor-workspace .editor-lane-label{flex:0 0 36px;font-size:10px;color:#c1b99e;align-self:center}
.editor-workspace .editor-lane-content{position:relative;min-width:0;flex:1;max-height:42px;overflow:auto;background:#211d14;border-radius:4px}
.nene-editor.editor-workspace .editor-track-segment{position:relative;display:block;min-height:22px;height:22px;padding:2px 5px;border:1px solid #9b803d;border-radius:4px;background:#65501e;color:#fff2c9;font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:left;margin-bottom:1px}
.nene-editor.editor-workspace .editor-empty-track{width:100%;min-height:25px;padding:3px 8px;background:#201c14;border:1px dashed #75613a;color:#d7c391;font-size:12px;text-align:left}
.editor-workspace .editor-tool-panel{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 4px 8px;scrollbar-width:thin;border-bottom:1px solid #332a1a}
.nene-editor.editor-workspace .editor-sheet h2{font:600 14px system-ui,sans-serif;margin:6px 0 10px}
.nene-editor.editor-workspace .editor-sheet label{font-size:12px}
.nene-editor.editor-workspace .editor-sheet .editor-note{font-size:12px;margin:6px 0;line-height:1.4}
.nene-editor.editor-workspace .editor-sheet>.editor-selected-tools>.editor-clip{margin:0;padding:8px;border-radius:8px}
.nene-editor.editor-workspace .editor-sheet .editor-clip h3{font-size:12px;margin:0 0 4px}
.nene-editor.editor-workspace .editor-sheet .editor-clip input[type=range]{min-height:28px;margin:0}
.nene-editor.editor-workspace .editor-clip-actions{display:flex;gap:6px;margin-top:6px}
.nene-editor.editor-workspace .editor-clip-actions>*{flex:1;font-size:11px;min-height:36px;padding:5px}
.nene-editor.editor-workspace .editor-sheet details{margin:6px 0;padding:8px;border-radius:8px}
.nene-editor.editor-workspace .editor-sheet>details>summary{font-size:13px;min-height:28px}
.nene-editor.editor-workspace .editor-sheet>details[open]>summary{margin-bottom:6px}
.editor-workspace .editor-toolbar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;min-width:0;padding:0 0 4px;background:#0b0b0b}
.nene-editor.editor-workspace .editor-tool-button{min-width:0;min-height:48px;padding:3px;border:0;border-radius:7px;background:transparent;color:#b9b3a7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.editor-workspace .editor-tool-button span{font-size:22px;line-height:1}.editor-workspace .editor-tool-button b{font-size:10px;font-weight:500}
.editor-workspace .editor-tool-button[aria-pressed=true]{background:#302612;color:#f4d78b}
@media(min-width:850px){#screen>main.nene-editor.editor-workspace{padding-left:calc((100vw - 800px)/2);padding-right:calc((100vw - 800px)/2)}}
@media(max-height:600px){#screen>main.nene-editor.editor-workspace{grid-template-rows:44px minmax(70px,1fr) 125px minmax(70px,25dvh) 50px;gap:3px}.editor-workspace .editor-lane-content{max-height:24px}.nene-editor.editor-workspace .editor-filmstrip{max-height:48px}.nene-editor.editor-workspace .editor-clip-tile{height:44px;min-height:44px}.nene-editor.editor-workspace .editor-tool-button{min-height:44px}}
.nene-editor.editor-workspace .editor-add-clip{flex:0 0 42px;min-width:42px;min-height:44px;background:#302612;border:1px solid #a48745;border-radius:5px;color:#ffe3a0;font-size:26px}
.nene-editor.editor-workspace .editor-sheet output{display:block;font-size:11px;color:#d9c490}
@media(max-height:480px){#screen>main.nene-editor.editor-workspace{grid-template-rows:40px minmax(0,1fr) 70px minmax(70px,1fr) 46px}.editor-workspace .editor-ruler{display:none}.nene-editor.editor-workspace .editor-filmstrip{max-height:36px;min-height:32px}.nene-editor.editor-workspace .editor-clip-tile{height:30px;min-height:30px}.editor-workspace .editor-lane{min-height:15px;margin-top:1px}.editor-workspace .editor-lane-content{max-height:15px}.nene-editor.editor-workspace .editor-track-segment,.nene-editor.editor-workspace .editor-empty-track{min-height:15px;height:15px;padding:0 4px}.editor-workspace .editor-preview-dock .notice{display:none}}

.nene-editor.editor-workspace .editor-clip-tile .editor-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:3px;opacity:.7;pointer-events:none}

.nene-editor.editor-workspace .editor-sheet audio{display:block;width:100%;height:44px;margin:8px 0;color-scheme:dark}
