/* Made by Duhyun, Kim / Datetime 1 Nov 2026 */
.local-source-button.local-workspace-save-error{border-color:var(--amber,#b45518);color:var(--amber,#b45518)}
.local-last-workspace{max-width:520px}.local-last-workspace-list{display:grid;gap:9px}.local-last-workspace-row{display:grid;gap:5px;text-align:start;width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;background:transparent;color:inherit;cursor:pointer}.local-last-workspace-row strong{font-size:14px}.local-last-workspace-row span{font-size:12px;overflow-wrap:anywhere}.local-last-workspace-row small{font-size:11px;color:var(--muted)}.local-last-workspace-row:hover:not(:disabled),.local-last-workspace-row:focus-visible{border-color:var(--accent);background:var(--soft,#eff6ff)}
/* The empty mobile picker contains three actions plus its local-storage note.
 * Once media is loaded, the existing video aspect ratio remains authoritative. */
@media(max-width:600px){body.work-ui.editor-layout .media-editor:not(.editor-has-media) :is(#videoStage,#shareStage){min-height:300px}}
@media(max-width:360px){body.work-ui.editor-layout .media-editor:not(.editor-has-media) :is(#videoStage,#shareStage){min-height:340px}}
.local-source-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;width:100%;margin:8px 0 0}.local-source-actions>.button{margin:0!important;min-height:42px;padding:9px 13px!important;font-size:13px}.local-source-button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.local-source-button .singoq-icon{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.local-workspace-status{display:block;min-height:18px;margin:5px 0;color:var(--muted);font-size:11px}.local-workspace-status[data-error=true]{color:var(--amber,#b45518)}.local-source-loaded{display:none;gap:5px}.editor-has-media .local-source-loaded{display:inline-flex}.local-source-loaded .local-source-button{min-width:36px;min-height:36px;padding:7px!important}.local-source-loaded .local-source-button span{display:none}.local-dashcam-library{width:min(680px,calc(100vw - 24px));max-height:min(760px,calc(100dvh - 32px));padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--text);box-shadow:0 20px 80px #0005;overflow:auto}.local-dashcam-library::backdrop{background:#07102199;backdrop-filter:blur(3px)}.local-library-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.local-library-heading h2{font-size:19px;margin:0}.local-library-close,.local-library-play{border:1px solid var(--line);border-radius:10px;background:transparent;color:inherit;min-width:38px;min-height:38px;font-size:24px}.local-dashcam-library>p{font-size:13px;margin:10px 0 14px}.local-library-list{display:grid;gap:8px;max-height:45dvh;overflow:auto}.local-library-row{display:flex;align-items:center;gap:8px;padding:9px 10px;border:1px solid var(--line);border-radius:11px}.local-library-row>label{display:flex;align-items:center;gap:10px;flex:1;min-width:0;cursor:pointer;margin:0}.local-library-row input{width:18px;height:18px;flex:none}.local-library-row label>span{display:grid;gap:4px;min-width:0}.local-library-row strong{font-size:13px;overflow-wrap:anywhere}.local-library-row small{font-size:11px;color:var(--muted)}.local-library-play{font-size:20px;flex:none}.local-library-preview{width:100%;max-height:220px;background:#080b12;border-radius:10px;margin-top:12px}.local-library-feedback{font-size:12px;min-height:18px}.local-library-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;border-top:1px solid var(--line);padding-top:12px}.local-library-footer .button{font-size:13px;min-height:40px}.local-library-link{margin-inline-end:auto;color:var(--accent);font-size:12px}.local-library-footer>span{font-size:12px;color:var(--muted);white-space:nowrap}@media(max-width:600px){.local-source-actions{display:grid;grid-template-columns:1fr;max-width:280px;margin-left:auto;margin-right:auto;gap:6px}.local-source-actions>.button{width:100%;min-height:40px}.local-dashcam-library{padding:15px;max-height:calc(100dvh - 24px)}.local-library-heading h2{font-size:17px}.local-library-footer{flex-wrap:wrap;gap:9px}.local-library-link{flex-basis:100%;margin:0}.local-library-list{max-height:44dvh}}

/* Keep selection counts readable in RTL while filenames follow their own script. */
#localDashcamSelectedCount{direction:ltr;unicode-bidi:isolate}
.local-workspace-storage-row{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:2px 10px;max-width:100%}.local-workspace-storage-row .local-workspace-status{min-width:0;overflow-wrap:anywhere}.local-storage-manage{min-height:40px;padding:6px 2px;font-size:12px;color:var(--accent);text-decoration:underline;text-underline-offset:3px}.local-storage-manage:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.named-workspace-toolbar{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:0 12px;min-width:0;max-width:100%;margin:-5px 0 5px}.named-workspace-toolbar .local-storage-manage{min-height:36px;margin:0;white-space:normal;overflow-wrap:anywhere;font-size:12px}@media(max-width:600px){.named-workspace-toolbar .local-storage-manage{min-height:44px}.named-workspace-toolbar{gap:0 10px;margin:-4px 0 4px}}
@media(max-width:600px){.local-storage-manage{min-height:44px}.local-workspace-storage-row{gap:0 8px}}
/* The three translated source actions determine the empty card's height.
 * Decoded media retains the existing video ratio and timeline placement. */
body.work-ui.editor-layout .media-editor:not(.editor-has-media) :is(#videoStage,#shareStage):has(.local-source-actions){aspect-ratio:auto;min-height:clamp(300px,25vw,440px)}
body.work-ui.editor-layout .media-editor:not(.editor-has-media) :is(#videoStage,#shareStage):has(.local-source-actions)>:is(video,canvas){position:absolute;inset:0}
body.work-ui.editor-layout .media-editor:not(.editor-has-media) :is(#placeholder,#sharePlaceholder):has(.local-source-actions){position:relative;inset:auto;height:auto;min-height:inherit}
body.work-ui.editor-layout .media-editor:not(.editor-has-media) :is(#dropZone,#shareDropZone):has(.local-source-actions){position:relative;inset:auto;height:auto;min-height:inherit;overflow:visible}
@media(max-width:360px){body.work-ui.editor-layout .media-editor:not(.editor-has-media) :is(#videoStage,#shareStage):has(.local-source-actions){min-height:340px}}
