*{box-sizing:border-box}html{color-scheme:dark;background:#101113;font:16px/1.45 Pretendard,-apple-system,BlinkMacSystemFont,"Malgun Gothic",sans-serif;color:#f3f3f4}body{margin:0}main{max-width:480px;margin:auto;min-height:100dvh;background:#0b0c0e;display:flex;flex-direction:column}header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;border-bottom:1px solid #202125}header b{font:bold italic 24px/1 Arial,sans-serif;letter-spacing:-1.4px}header b span,.film{color:#58a5ff}header a{color:#adb3c0;font-size:12px}.stage{display:grid;place-items:center;padding:12px;background:#0c0c0e}#frame{position:relative;height:clamp(154px,36dvh,365px);aspect-ratio:9/16;border-radius:10px;overflow:hidden;background:#171513}#frame.loaded{background:#09090b}video{width:100%;height:100%;object-fit:cover}#caption{position:absolute;bottom:19%;left:5%;right:5%;text-align:center;font-weight:700;line-height:1.34;white-space:pre-line;text-shadow:0 1px 5px #111;font-size:15px;pointer-events:none}#play{position:absolute;bottom:8px;left:8px;width:40px;height:40px;border-radius:50%;background:#17191fd9;border:1px solid #52535a;color:white}.sheet{flex:1;padding:8px 18px 24px;background:#191a1e;border-radius:18px 18px 0 0}.handle{width:32px;height:4px;border-radius:8px;margin:0 auto 12px;background:#555761}.tabs{display:flex;justify-content:space-between;border-bottom:1px solid #35363e;color:#bbbcc4;font-size:13px;padding:3px 4px 11px}.tabs b{color:#58a5ff}.entry{margin:16px 0 20px;padding:13px 14px;display:flex;gap:12px;align-items:center;border:1px solid #568ee3;border-radius:12px;background:#1d2634;cursor:pointer}.entry strong,.entry small{display:block}.entry strong{font-size:17px}.entry small,.meta{font-size:13px;color:#b7bcc4}.entry i{margin-left:auto;font-size:25px}.film{font-size:25px}.sr{position:absolute;clip-path:inset(50%);width:1px;height:1px}.entry:has(+input:focus-visible){outline:2px solid white}h1,h2,p{margin:0}h2{font-size:16px}.existing{margin-top:11px;background:#28292d;padding:12px;border-radius:9px;color:#a3a5ab;font-size:14px}.heading{display:flex;align-items:center;gap:8px;margin:7px 0 14px}h1{font-size:19px}.heading button{font-size:26px;border:0;background:none;color:inherit;width:40px;height:42px}#status{font-size:14px;color:#d6d7da}progress{width:100%;height:5px;display:block;accent-color:#378aff;margin:10px 0 14px}button,a{font-family:inherit;cursor:pointer}.choice{display:grid;width:100%;gap:4px;text-align:left;color:inherit;background:#232429;border:1px solid #424349;border-radius:11px;padding:13px;margin:8px 0}.choice[aria-pressed=true]{border-color:#5a9eff;background:#1c293a}.choice strong{font-size:15px}.primary,#download{display:block;text-align:center;width:100%;margin:14px 0 0;border:0;border-radius:10px;padding:13px;background:#1671e8;color:white;font-size:15px;font-weight:700}.primary:disabled{opacity:.44}#download{background:#303946}[hidden]{display:none!important}
#overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#entry{padding:20px 0}.field,.toggle{display:block;font-size:14px;font-weight:600;margin:14px 0 6px}
.field small,.hint{font-size:13px;color:#aeb4bf;font-weight:400}.hint{margin:8px 0}
.edit-input{width:100%;padding:10px;border:1px solid #414751;border-radius:9px;background:#212429;color:#f3f4f6;font:inherit}
.guide-row{display:flex;gap:8px}.guide-row button,summary{color:#dce7ff;background:#262c37;border:1px solid #495568;border-radius:9px;padding:9px 12px;cursor:pointer}
#editor{margin:14px 0}#fields{margin:0;padding:0;border:0}.edit-line{display:block;margin:10px 0;color:#aeb4bf;font-size:12px}
.edit-line textarea{display:block;resize:vertical;margin-top:4px}#work{padding-bottom:16px}.stage{position:sticky;top:0;z-index:1}
@media(max-height:700px){#frame{height:25dvh}}

.quick-video #cutMode button[aria-pressed=true]{background:#213d68;border-color:#72aaff;color:white}.quick-video #cutMode{margin:10px 0}.quick-video video{object-fit:contain}.quick-video #quickControls{border:0;padding:0;margin:16px 0}.quick-video legend{font-weight:700}.quick-video input[type=range]{width:100%;accent-color:#58a5ff;min-height:28px}.quick-video output{color:#aeb4bf;font-variant-numeric:tabular-nums}

.join-row{display:flex;gap:5px;align-items:center;border-bottom:1px solid #383b42;padding:8px 0}.join-row span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px}.join-row button{border:1px solid #495568;border-radius:7px;background:#262c37;color:#dce7ff;padding:8px 5px}.join-row button:disabled{opacity:.35}

#highlightEditor,#quickPublish{border-top:1px solid #383b42;margin-top:14px;padding-top:10px}
#highlightEditor .guide-row{flex-wrap:wrap}
#highlightEditor button{min-height:42px}
#trimmedGaps{display:flex;flex-wrap:wrap;gap:6px}
#trimmedGaps button{color:#dce7ff;background:#262c37;border:1px solid #495568;border-radius:8px;padding:7px 10px}
#quickPublish textarea{width:100%;resize:vertical}
#postStatus a{color:#8abbff}

.quick-video #cutTimeline{padding:14px 0 16px;border-bottom:1px solid #383b42}
.track-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}
.track-heading output{font-size:12px;font-variant-numeric:tabular-nums}
#trackClips{display:flex;overflow-x:auto;gap:4px;padding:3px;min-height:56px;border-radius:7px;background:#101115}
#trackClips:empty{border:1px dashed #48515d}
#trackClips button{position:relative;min-width:78px;max-width:190px;flex:1;padding:0;overflow:hidden;border-radius:6px;border:2px solid transparent;background:#292c34;color:white}
#trackClips button[aria-pressed=true]{border-color:#71affe}
#trackClips canvas{display:block;width:100%;height:48px;object-fit:cover}
#trackClips span{position:absolute;bottom:2px;left:3px;border-radius:3px;padding:1px 4px;background:#0c101bd9;color:white;font:600 11px/1.5 system-ui}
#trackTools{display:flex;gap:4px;flex-wrap:wrap}
#trackTools button,#emptyVideoPick{background:#262c37;border:1px solid #495568;color:#e8efff;border-radius:7px;padding:8px;font-weight:600;min-height:40px}
#trackTools button:disabled{opacity:.38}
#emptyVideoPick{position:absolute;inset:0;margin:auto;width:fit-content;height:fit-content;padding:10px 15px}
.quick-video #entry .entry,.quick-video #entry>.hint{display:none}
.quick-video #entry{padding:8px 0}
.quick-video #frame:not(.loaded){background:#16191f;border:1px solid #383d46}
.cut-arranged #cutMode,.cut-arranged #manualTrim,.cut-arranged #joinList,.cut-arranged #highlightEditor,.cut-arranged #transitionControl,.cut-arranged #montageStatus{display:none}

#trackClips button:only-child{max-width:none}
#trackClips progress{appearance:none;position:absolute;inset:0;width:100%;height:100%;margin:0;border:0;background:transparent;pointer-events:none}
#trackClips button[aria-pressed=false] progress{visibility:hidden}
#trackClips progress::-webkit-progress-bar{background:transparent}
#trackClips progress::-webkit-progress-value{border-right:2px solid white;background:transparent}
#trackClips progress::-moz-progress-bar{border-right:2px solid white;background:transparent}

#fxPanel{padding-block:8px;color:#f3eee4}
.fx-heading,#fxInspector{display:flex;align-items:center;gap:8px}
.fx-heading h3{margin:0 auto 0 0;font-size:14px}
#fxRemove{border-radius:6px;padding:6px;background:#292c34;color:#fff;border:1px solid #535762}

#fxLanes{display:grid;gap:2px;margin-top:6px}
.fx-lane{position:relative;height:32px;background:#252322;border-radius:4px}
.fx-block{position:absolute;top:1px;bottom:1px;overflow:hidden;white-space:nowrap;touch-action:none;border:1px solid #a97a39;background:#785528;color:white;font-size:11px;font-weight:600;padding:0;border-radius:4px}
.fx-block[aria-pressed=true]{border-color:#ffd795;background:#a46f2e}
#fxInspector{flex-wrap:wrap;margin:6px 0 0;padding:6px;border:1px solid #514637;border-radius:6px}
#fxInspector label{display:grid;gap:2px;font-size:11px;flex:1;min-width:52px}
#fxInspector input{box-sizing:border-box;width:100%;min-width:0}
#fxInspector legend{font-size:12px}
#fxPanel[hidden],#fxInspector[hidden]{display:none}
#trackClips{gap:0;padding-inline:0}
#trackClips button{min-width:0;max-width:none}

/* 영상과 편집 트랙을 같은 화면에 두고, 추가 설정만 아래에서 스크롤한다. */
.quick-video main{height:100dvh;min-height:0;display:grid;grid-template-rows:auto minmax(112px,1fr) auto minmax(104px,auto);overflow:hidden}
.quick-video header{padding:9px 16px;background:#121316}
.quick-video .stage{position:relative;top:auto;min-height:0;padding:8px;background:#0b0c0e}
.quick-video #frame{height:100%;max-height:48dvh;max-width:100%}
.quick-video #cutTimeline{max-height:48dvh;overflow:auto;background:#18191d;border-block:1px solid #34353a;padding:10px 14px;scrollbar-width:thin}
.quick-video .sheet{min-height:0;max-height:24dvh;overflow:auto;border-radius:0;padding:8px 14px 18px;overscroll-behavior:contain}
.quick-video main:has(#editSettings[open]):has(#work:not([hidden])){grid-template-rows:auto minmax(96px,1fr) auto minmax(155px,38dvh)}
.quick-video main:has(#editSettings[open]) .sheet{max-height:none}
.quick-video .handle{display:none}
.quick-video .track-heading{gap:8px;margin:0 0 7px}
.track-heading h2{font-size:14px}.track-heading output{margin-left:auto;font:600 12px/1.3 ui-monospace,monospace}
#dockFile{background:#25272d;color:#edf0f4;border:1px solid #41444b;font-family:inherit;font-weight:600;font-size:12px;border-radius:6px;min-height:29px}
#cutTimeline:not(.has-media) #dockFile,#cutTimeline:not(.has-media) #trackNeedle{display:none}
.track-board{position:relative;overflow:hidden;border-radius:5px;background:#111216}
#trackScale{display:flex;justify-content:space-between;align-items:start;height:23px;color:#b5b8c0;font:10px/1.1 ui-monospace,monospace;background:repeating-linear-gradient(90deg,#44464e 0 1px,transparent 1px 5%) bottom/100% 4px no-repeat}
#trackScale:empty{height:8px}
#trackNeedle{position:absolute;top:16px;bottom:0;left:0;width:2px;background:#fff;pointer-events:none;box-shadow:0 0 2px #171719}
#trackNeedle::before{content:"";position:absolute;top:-2px;left:-3px;width:8px;height:6px;background:white;clip-path:polygon(0 0,100% 0,100% 50%,50% 100%,0 50%)}
#trackClips{min-height:44px;border-radius:4px}
#trackClips canvas{height:42px;object-fit:fill}
#trackClips progress{display:none}
#fxLanes{margin-top:3px;max-height:100px;overflow:auto}
.fx-empty{width:100%;min-height:30px;border:1px dashed #705c3d;border-radius:4px;background:#26221d;text-align:left;color:#e6bf84;font:inherit;font-size:12px;padding:3px 9px}
.fx-lane{height:28px;background:#24211d}
.fx-block{min-width:4px;border-color:#b48544}
#trackWave{height:21px;width:100%;display:block;margin-top:3px;border-radius:4px;background:#172b2a}
#fxPanel{padding:5px 0 0}.fx-heading h3{font-size:12px;color:#e5bb81}
#fxInspector{align-items:end}
#fxInspector button{color:#eee;border:1px solid #5b5042;border-radius:5px;background:#302b25;padding:5px}
.quick-video #trackTools{display:grid;grid-template-columns:repeat(5,1fr)}
.quick-video #trackTools button{padding:4px;min-height:34px;font-size:12px}
.quick-video #work>.heading{margin:0}.quick-video #work>.heading h1{display:none}
.quick-video #work>.heading button{width:auto;height:auto;font-size:12px;padding:3px 0;color:#b9bdc5}
.quick-video #joinTools>.entry{display:none}
body:not(.quick-video) #editSettings>summary{display:none}
#editSettings{margin-top:6px}#editSettings>summary{font-size:14px;font-weight:600}
.quick-video #quickControls{min-width:0}
@media(max-height:650px){.quick-video header{padding:5px 12px}.quick-video main{grid-template-rows:auto minmax(90px,1fr) auto minmax(80px,auto)}.quick-video #cutTimeline{padding-block:6px;max-height:46dvh}}

.track-ruler{position:relative}
.quick-video #trackCursor{position:absolute;inset:0;opacity:0;width:100%;height:100%;min-height:0;margin:0;cursor:ew-resize}
.track-ruler:focus-within{outline:1px solid #78b6ff;outline-offset:-1px}
#trackScale{padding-block:2px}
.quick-video #fxPanel{padding:8px 0}
#fxInspector{background:#1e2025;border:1px solid #414149;padding:6px 8px 8px;column-gap:6px}
#fxInspector legend{padding-inline:4px;color:#edca8f}
#fxInspector label{font-weight:500;color:#c3c3c8;font-size:10px}
#fxInspector input[type=number]{padding:4px 5px;border:1px solid #45454b;border-radius:4px;background:#282a30;font:12px ui-monospace,monospace;color:#f5f5f5}
#fxInspector input[type=range]{accent-color:#edbd72;min-height:24px}
#fxInspector #fxRemove,#fxInspector #fxCopy{font-size:11px}
#fxPresetList{display:flex;gap:6px;overflow:auto;scrollbar-width:thin;padding-bottom:2px}
#fxPresetList button{flex:none;display:flex;gap:5px;align-items:center;padding:7px 9px;background:#26272c;border:1px solid #404046;color:#e7e5df;border-radius:7px;font-family:inherit;font-size:12px}
#fxPresetList button:before{content:'✦';font-size:13px;color:#f2ce85}
#fxPresetList button[data-kind=zoom]:before{content:'↗';color:#aed4ff}
#fxPresetList button[data-kind=echo]:before{content:'▧';color:#c2b3f2}
#fxPresetList button:focus-visible{outline:2px solid white}
.fx-heading{margin-bottom:5px}.fx-heading h3{font-size:12px}

#trackTools button{white-space:nowrap}
