[hidden]{display:none!important}
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",sans-serif;color:#19302b;background:#eef2ef;font-synthesis:none;--dark:#0f2824;--green:#38d58e;--line:#e5ebe7;--muted:#84928c;--radius:14px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:18px}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}input[type=range]{width:100%;accent-color:#16ab79;cursor:pointer}input[type=checkbox]{accent-color:#1ab07b}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #00c388;outline-offset:3px}button,input,select{touch-action:manipulation}.hidden-input,.hidden-video{position:absolute!important;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden}.topbar{height:75px;padding:0 clamp(15px,2.6vw,40px);display:flex;align-items:center;justify-content:space-between;background:#0e211d;color:white;border-bottom:1px solid #ffffff14;gap:16px}.identity{display:flex;align-items:center;gap:12px;min-width:0}.mark{width:38px;height:36px;display:flex;align-items:center;justify-content:space-between;flex-direction:column;padding:7px 6px}.mark i{width:22px;height:5px;background:linear-gradient(90deg,#cffff0 24%,transparent 24%,transparent 43%,#cffff0 43%);display:block}.mark i:nth-child(2){transform:scaleX(.8)}.brand{font-size:20px;letter-spacing:.09em;white-space:nowrap;font-weight:400}.brand strong{font-weight:750}.brand span{font-size:11px;letter-spacing:.12em;vertical-align:2px;color:#62dfa6;font-weight:800}.tagline{font-size:9px;letter-spacing:.12em;color:#a2b3ab;padding-top:4px}.tagline b{color:#6adc9f}.head-actions{display:flex;align-items:center;gap:9px}.private{font-size:11px;color:#b1c7b8;margin-right:10px}.alive,.small-dot{display:inline-block;width:7px;height:7px;background:#5ce5a0;border-radius:50%;margin-right:6px;box-shadow:0 0 12px #5ce5a080}.btn{border:1px solid transparent;border-radius:9px;padding:11px 14px;font-weight:650;font-size:12px;white-space:nowrap;transition:background .15s}.btn.primary{background:#58e4aa;color:#0c2a22}.btn.primary:not(:disabled):hover{background:#86f4c8}.btn.ghost{background:#ffffff0b;color:#d7e9de;border-color:#ffffff1c}.btn.outline{background:white;color:#2c5144;border-color:#d8e7dd}.btn.outline:hover{background:#f0f9f3}.btn.full{width:100%;display:block}.navband{background:#fff;box-shadow:0 4px 12px #15271f0a;padding:11px clamp(15px,2.6vw,40px);display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line)}.tabset{display:flex;background:#eef3ef;border-radius:11px;padding:4px;gap:4px;flex-shrink:0}.mode-tab{background:transparent;border:none;padding:11px 20px;border-radius:8px;font-size:13px;font-weight:800;color:#638074}.mode-tab small{font-size:9px;font-weight:650;color:inherit;opacity:.68;margin-left:6px}.mode-tab.active{color:#165c43;background:white;box-shadow:0 2px 5px #12352220}.mode-note{color:#85958d;font-size:12px}.workspace{display:grid;grid-template-columns:minmax(255px,300px) minmax(0,1fr) minmax(275px,325px);gap:15px;max-width:1820px;margin:auto;padding:19px 20px 60px;align-items:start}.panel{min-width:0;background:#fff;border:1px solid #e3ebe5;box-shadow:0 6px 23px #11281c08;border-radius:var(--radius);overflow:hidden}.panel-title{padding:22px 22px 13px}.panel-title small,.preview-title small,.modal-heading small{font-size:10px;font-weight:850;letter-spacing:.17em;color:#299765}.panel-title h2{font-size:19px;margin:5px 0 7px;letter-spacing:.005em}.panel-title p{color:#84948c;font-size:11px;line-height:1.7;margin:0}.group{padding:19px 21px;border-top:1px solid var(--line)}.group-title,.file-label{font-size:12px;font-weight:850;color:#324d42;display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.tag{color:#9fa8a4;letter-spacing:.06em;font-size:9px;border:1px solid #e4ebe5;border-radius:4px;padding:3px 6px}.tag.green{color:#2bad78;background:#ebf9f2;border-color:#d3eee2}.aspects{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.aspects button{display:flex;gap:7px;justify-content:center;align-items:center;min-height:44px;background:#f8faf8;border:1px solid #e8ede9;border-radius:8px;color:#66766d;font-size:12px}.aspects button.selected{background:#e6f8ef;border-color:#64d9a3;color:#116443;font-weight:800}.shape{display:block;flex-shrink:0;border:1.8px solid currentColor;border-radius:2px;width:18px;height:12px}.shape.portrait{width:10px;height:18px}.shape.square{width:13px;height:13px}.shape.ratio43{width:17px;height:13px}.shape.ratio34{width:11px;height:15px}.shape.ultra{width:20px;height:8px}.inline-end{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;font-size:11px;color:#617a6b}.inline-end select,.preset-row select{min-width:0;background:white;border:1px solid #dce7e0;border-radius:8px;padding:9px;color:#214437}.file-label{margin-bottom:9px}.dropzone{display:flex;align-items:center;gap:11px;min-width:0;border:1px dashed #cbded1;background:#f6faf7;border-radius:11px;padding:15px 10px;cursor:pointer}.dropzone:hover,.dropzone.dragover{border-color:#1fc486;background:#edf9f2}.upload-symbol{font-size:28px;line-height:1;color:#798e82;flex-shrink:0}.upload-symbol.luminous{color:#25bd7e}.file-copy{display:flex;min-width:0;gap:5px;flex:1;flex-direction:column}.file-copy strong{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.file-copy small{font-size:10px;color:#8c9b92;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.add-sign{font-size:19px;font-weight:200;color:#51b78b}.trim-control{margin-top:15px}.trim-control label,.control label{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#667a70;margin-bottom:8px}.trim-control output,.control output{color:#176e4e;font-weight:800;font-variant-numeric:tabular-nums}.trim-control input,.control input{margin:0;height:16px}.crop-ops{display:flex;gap:8px;margin:14px 0 8px}.crop-ops .btn{flex:1;padding:9px 3px}.crop-status,.helper{font-size:10px;line-height:1.7;color:#93a198}.fine-switches{display:grid;gap:10px;margin-top:14px}.check{font-size:11px;color:#617b6b}.max-label{color:#18986b;font-size:10px}.range-ends{display:flex;justify-content:space-between;color:#a0ada5;font-size:10px}.player-pane{min-width:0}.preview-title{display:flex;align-items:flex-end;justify-content:space-between;margin:5px 3px 16px}.preview-title h1{font-size:22px;letter-spacing:.01em;margin:6px 0 0}.red-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#58e4aa;box-shadow:0 0 10px #1ad78978;vertical-align:3px;margin-left:5px}.spec-label{font-size:11px;color:#85948b;border:1px solid #dce7df;background:#fff;border-radius:100px;padding:7px 10px;white-space:nowrap}.stage-wrap{border-radius:13px;background:#101a17;padding:clamp(9px,1.5vw,18px);box-shadow:0 14px 45px #0b281a18}.stage{width:100%;aspect-ratio:16/9;position:relative;overflow:hidden;background:#172b22;border:1px solid #315243;touch-action:none;cursor:grab;user-select:none}.stage:active{cursor:grabbing}.stage canvas{display:block;width:100%;height:100%}.empty-state{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#0b1e16d5;color:#f3fff7;gap:9px;pointer-events:none;text-align:center}.empty-icon{font-size:39px;color:#7ee9b2}.empty-state strong{font-size:16px}.empty-state small{font-size:11px;color:#b3cbb9}.player-controls{display:flex;align-items:center;gap:11px;background:#fff;padding:13px 14px;border:1px solid var(--line);border-radius:0 0 11px 11px;margin:0 5px;box-shadow:0 6px 15px #183e2420}.icon-btn{background:none;border:1px solid #e1e9e3;border-radius:8px;width:35px;height:35px;display:grid;place-items:center;color:#376b51;font-size:19px;flex-shrink:0}.play-btn{color:#0a724c;background:#e6f9ed;border-color:#d4efdf}.play-time{font-variant-numeric:tabular-nums;font-size:10px;color:#47604f;white-space:nowrap}.seekbar{flex:1;min-width:45px;accent-color:#1bc48c}.layer-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:13px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:11px}.tool-label,.gesture-help{font-size:10px;color:#9aaa9e}.layer-button{border-radius:7px;padding:9px 11px;border:1px solid transparent;background:#f4f7f3;color:#7c8f83;font-size:11px;font-weight:750}.layer-button.active{color:#086941;border-color:#9decc7;background:#e2f9ec}.gesture-help{margin-left:auto}.preview-bottom{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#91a097;margin-top:11px;padding:0 6px}.preview-bottom span:first-child{color:#376b52}.control{margin-bottom:14px}.control:last-child{margin-bottom:0}.mint{color:#11a76c}.textbtn{border:0;background:none;font-size:10px;color:#249967;text-decoration:underline;text-underline-offset:3px;padding:2px}.color-setting{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:11px}.color-setting input{width:48px;height:33px;border:0;padding:0;background:none}.preset-row{display:flex;gap:7px;margin:8px 0}.preset-row .btn{padding:8px}.preset-row select{flex:1;width:40px}.importlabel{display:grid;place-items:center;cursor:pointer}.export-panel{padding:18px 21px 22px;background:#ecf8f1;border-top:1px solid #dcefe2}.export-panel .btn{margin-bottom:8px}.export-hint{font-size:10px;line-height:1.6;color:#729080;margin-top:7px}.mode-simple [data-advanced]{display:none!important}.mode-simple .options [data-advanced]{display:none!important}.back-top{position:fixed;bottom:calc(22px + env(safe-area-inset-bottom));right:17px;border:0;border-radius:100px;background:#123d2d;color:white;box-shadow:0 4px 23px #0003;padding:12px 17px;font-size:12px;font-weight:800;z-index:24;opacity:0;pointer-events:none;transform:translateY(12px);transition:opacity .2s,transform .2s}.back-top.visible{opacity:1;pointer-events:auto;transform:none}.modal-backdrop{position:fixed;inset:0;background:#071b13c9;z-index:90;display:flex;align-items:center;justify-content:center;padding:12px;overflow-y:auto}.modal-backdrop[hidden]{display:none!important}.modal{background:white;border-radius:15px;max-width:730px;width:100%;max-height:calc(100dvh - 25px);overflow:auto;padding:20px}.modal-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.modal h2{font-size:19px;margin:5px 0}.crop-box{position:relative;max-height:57dvh;width:fit-content;max-width:100%;margin:15px auto;border:1px solid #dbe7dd;background:#eef0ee}.crop-box canvas{display:block;max-width:100%;max-height:57dvh;width:auto;height:auto}.crop-selection{position:absolute;border:2px solid #33cb87;background:#31cf7c16;touch-action:none;cursor:move;box-shadow:0 0 0 9999px #0b171c33}.crop-selection i{position:absolute;width:15px;height:15px;background:white;border:3px solid #17b977;border-radius:50%;touch-action:none}.crop-selection i[data-handle=nw]{top:-9px;left:-9px;cursor:nwse-resize}.crop-selection i[data-handle=ne]{top:-9px;right:-9px;cursor:nesw-resize}.crop-selection i[data-handle=sw]{bottom:-9px;left:-9px;cursor:nesw-resize}.crop-selection i[data-handle=se]{bottom:-9px;right:-9px;cursor:nwse-resize}.crop-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.crop-fields label{font-size:10px;display:flex;flex-direction:column;gap:4px}.crop-fields input{width:100%;border:1px solid #d7e8dd;border-radius:6px;padding:8px}.modal-actions{display:flex;justify-content:space-between;gap:10px;margin-top:15px}.export-modal{max-width:420px;text-align:center;padding:32px}.export-symbol{font-size:38px;color:#1eaa74}.export-modal p{color:#688271;line-height:1.7;font-size:12px}.progress-rail{height:11px;background:#deeee3;border-radius:10px;overflow:hidden;margin-top:22px}.progress-rail>div{background:#36cc8c;height:100%;width:0;transition:width .2s}.progress-label{font-size:23px;font-weight:900;color:#238d63;margin:13px 0 20px}.toast{position:fixed;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));background:#122b22;color:white;font-size:12px;padding:14px 18px;border-radius:12px;box-shadow:0 6px 30px #0004;transform:translate(-50%,15px);opacity:0;pointer-events:none;transition:.25s;z-index:110;max-width:min(90vw,500px);line-height:1.6;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1300px){.workspace{grid-template-columns:minmax(235px,270px) minmax(0,1fr) minmax(235px,275px);padding:16px;gap:11px}.group{padding:17px 14px}.panel-title{padding:20px 15px 12px}.gesture-help{display:none}}
@media(max-width:1050px) and (min-width:751px){.workspace{grid-template-columns:270px minmax(0,1fr)}.options{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.options>.panel-title{grid-column:1/-1}.options>.export-panel{grid-column:1/-1}.player-pane{position:sticky;top:14px}}
@media(max-width:750px){html{scroll-padding-top:0}.topbar{height:auto;min-height:61px;padding:10px 13px}.mark{width:28px;height:28px;padding:5px}.mark i{width:17px;height:4px}.brand{font-size:15px}.brand span{font-size:9px}.tagline{font-size:7px}.private,.head-actions .ghost{display:none}.head-actions .btn{padding:9px 10px;font-size:10px}.navband{padding:7px 12px;gap:0}.tabset{width:100%}.mode-tab{flex:1;padding:10px 6px}.mode-note{display:none}.workspace{display:flex;flex-direction:column;gap:13px;padding:0 10px 70px}.player-pane{order:0;width:100%;position:sticky;top:0;z-index:20;padding:10px 0 9px;background:#eef2ef;box-shadow:0 7px 10px -10px #123c2860}.sources{order:1;width:100%}.options{order:2;width:100%}.preview-title{margin:2px 4px 8px}.preview-title h1{font-size:14px;margin-top:3px}.preview-title small{font-size:8px}.spec-label{font-size:9px;padding:5px 8px}.stage-wrap{padding:6px;border-radius:10px}.stage{max-height:40dvh}.player-controls{padding:6px 9px;margin:0 2px;gap:7px}.icon-btn{height:31px;width:31px}.layer-toolbar{margin-top:7px;padding:6px;gap:5px;border-radius:8px}.layer-button{padding:7px 9px;font-size:10px}.tool-label,.gesture-help{display:none}.preview-bottom{margin-top:4px;font-size:8px;padding:0 5px}.panel-title{padding:16px 17px 11px}.group{padding:16px}.aspects{grid-template-columns:repeat(3,1fr)}.crop-box{max-height:55dvh}.crop-box canvas{max-height:55dvh}}
@media(max-width:750px) and (orientation:portrait){.stage-wrap{max-height:43dvh;display:flex;align-items:center;justify-content:center}.stage{width:auto;max-width:100%;min-width:0;max-height:40dvh;aspect-ratio:var(--stage-ratio,16/9)}.stage canvas{width:100%;height:100%}.player-pane{max-height:60dvh}}
@media(max-width:380px){.brand{font-size:13px}.brand span{font-size:8px}.tagline{letter-spacing:.04em}.head-actions .btn{font-size:9px}.play-time{font-size:9px}}
