:root{--bg:#17181e;--sidebar:#1c1d24;--panel:#21222c;--surface:#262733;--surface-hover:#2f3040;--border:#2c2d3a;--text:#e8e9f0;--muted:#8b8d9c;--accent:#00f593;--handle:#5fe3c3;--purple:#7c6cf2;--save:#d9d9e6;--wave:#00f593;--wave-dim:#3b3e4c;--sel-bg:#ffffff06;--playhead:#fff;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:Pretendard,Noto Sans KR,Malgun Gothic,system-ui,sans-serif}*{box-sizing:border-box}[hidden]{display:none!important}html,body{background:var(--bg);height:100%;color:var(--text);margin:0;overflow:hidden}button{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0}svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}svg.fill{fill:currentColor;stroke:none}svg.fill path[fill=none]{stroke:currentColor}.spacer{flex:1}.app{grid-template-columns:112px 1fr;height:100%;display:grid}.app.collapsed{grid-template-columns:64px 1fr}.app.collapsed .tool span{display:none}.sidebar{background:var(--sidebar);flex-direction:column;align-items:stretch;gap:8px;min-height:0;padding:18px 0 16px;display:flex}.menu-btn{align-self:center;margin-bottom:18px}.menu-btn svg{stroke-width:1.6px;width:36px;height:36px}.tools{flex-direction:column;flex:1;gap:4px;display:flex}.tool{color:var(--muted);text-align:center;flex-direction:column;align-items:center;gap:6px;padding:16px 6px;font-size:14px;line-height:1.3;transition:color .15s,background .15s;display:flex;position:relative}.tool svg{stroke-width:1.5px;width:30px;height:30px}.tool:hover{color:var(--text)}.tool.active{color:var(--text);background:var(--bg)}.tool.active:after{content:"";background:var(--purple);width:3px;position:absolute;top:0;bottom:0;right:0}.tool.help svg{fill:var(--muted);stroke:var(--sidebar)}.tool.help:hover svg{fill:var(--text)}.icon-btn{width:44px;height:44px;color:var(--text);border-radius:10px;place-items:center;display:inline-grid}.icon-btn:hover{background:var(--surface)}.main{flex-direction:column;min-width:0;display:flex;position:relative}.close-btn{z-index:2;position:absolute;top:20px;right:28px}.close-btn svg{stroke-width:2.2px;width:32px;height:32px}.dropzone{flex:1;place-items:center;padding:32px;display:grid}.drop-card{border:2px dashed var(--border);text-align:center;border-radius:24px;width:min(560px,100%);padding:56px 40px;transition:border-color .15s,background .15s}body.drag-over .drop-card{border-color:var(--accent);background:#00f5930a}.drop-icon{width:64px;height:64px;color:var(--accent);stroke-width:2px}.drop-card h1{margin:16px 0 8px;font-size:28px;font-weight:700}.drop-card p{color:var(--muted);margin:0 0 28px;line-height:1.6}.drop-card .hint{margin:16px 0 0;font-size:14px}.btn{white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:8px;height:56px;padding:0 28px;font-size:20px;transition:background .15s,opacity .15s;display:inline-flex}.btn svg{width:22px;height:22px}.btn.primary{background:var(--accent);color:#0b2a1d;border-radius:999px;height:52px;padding:0 40px;font-size:18px;font-weight:700}.btn.primary:hover{filter:brightness(1.08)}.btn.ghost{background:var(--panel)}.btn.ghost:hover:not(:disabled){background:var(--surface-hover)}.btn.icon{width:84px;padding:0}.btn:disabled{opacity:.35;cursor:default}.editor{flex-direction:column;flex:1;min-height:0;padding:0 46px 14px;display:flex}.stage{flex-direction:column;flex:1;justify-content:center;min-height:0;padding-top:72px;display:flex}.file-name{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;align-self:flex-end;max-width:70%;margin:0 24px 6px 0;font-size:18px;font-style:italic;overflow:hidden}.wave{background:var(--panel);cursor:text;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:6px;height:224px;position:relative;overflow:hidden}.wave canvas{position:absolute;top:0}.handle{background:var(--handle);cursor:ew-resize;z-index:1;place-items:center;width:14px;height:100%;display:grid;position:absolute;top:0;left:0}.handle.left{border-radius:6px 0 0 6px}.handle.right{border-radius:0 6px 6px 0}.handle i{background:radial-gradient(circle,#1a1b22 1.6px,#0000 2px) 0 0/4px 8px repeat-y;width:4px;height:22px}.handle:hover,.wave.dragging .handle{filter:brightness(1.1)}.fade-btn{z-index:1;background:var(--surface);width:54px;height:40px;color:var(--text);border-radius:6px;place-items:center;transition:background .15s,color .15s;display:grid;position:absolute;top:8px;left:0}.fade-btn:hover{background:var(--surface-hover)}.fade-btn.active{background:var(--accent);color:#0b2a1d}.fade-btn svg{stroke-width:2px;width:26px;height:26px}.sel-duration{color:var(--muted);font-variant-numeric:tabular-nums;pointer-events:none;text-shadow:0 0 6px var(--panel);font-size:16px;position:absolute;bottom:6px;left:0}.scrollbar{background:var(--panel);cursor:pointer;border-radius:4px;height:8px;margin:6px 14px 0;position:relative}.scrollbar .thumb{cursor:grab;touch-action:none;background:#4b4d60;border-radius:4px;position:absolute;top:0;bottom:0}.wave-scale{color:var(--muted);font-variant-numeric:tabular-nums;justify-content:space-between;align-items:center;margin:8px -20px 0;font-size:16px;display:flex}.zoom-hint{opacity:.6;font-size:12px}.panel-row{align-items:center;gap:12px;min-height:66px;margin-top:32px;padding-right:24px;display:flex}.tool-panel{flex:1;align-items:center;gap:12px;min-width:0;display:flex}.panel-desc{color:var(--muted);margin:0;font-size:15px;line-height:1.5}.field-inline{color:var(--muted);white-space:nowrap;align-items:center;gap:10px;font-size:15px;display:inline-flex}.field-inline select{font:inherit;color:var(--text);background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:8px 10px}.check input{width:18px;height:18px;accent-color:var(--accent)}.gain-control{align-items:center;gap:14px;display:flex}.gain-control input[type=range]{width:220px;accent-color:var(--accent)}.gain-control output{min-width:92px;color:var(--accent);font-variant-numeric:tabular-nums;font-size:24px;font-weight:700}.level-info{color:var(--muted);white-space:nowrap;flex-direction:column;gap:6px;font-size:14px;display:flex}.level-info .check{align-items:center;gap:6px;display:inline-flex}.level-info .check input{width:16px;height:16px}.bpm-result{align-items:baseline;gap:6px;min-width:140px;display:flex}.bpm-result strong{color:var(--accent);font-variant-numeric:tabular-nums;font-size:40px;font-weight:700}.bpm-result span{color:var(--muted)}.transport{border-top:1px solid var(--border);align-items:center;gap:20px;padding-top:24px;display:flex}.play-btn{background:var(--surface);border-radius:999px;flex-shrink:0;place-items:center;width:200px;height:68px;display:grid}.play-btn:hover{background:var(--surface-hover)}.play-btn svg{width:30px;height:30px}.play-btn .i-pause,.play-btn.playing .i-play{display:none}.play-btn.playing .i-pause{display:block}#toStartBtn{margin:0 30px 0 26px}.time-group{color:var(--muted);align-items:center;gap:12px;margin-left:auto;font-size:18px;display:flex}.time-group label:not(:first-child){margin-left:2px}.time-field{border:2px solid var(--border);border-radius:999px;align-items:center;height:68px;padding:0 14px 0 26px;display:flex}.time-field:focus-within{border-color:var(--accent)}.time-field input{width:8.2ch;color:var(--text);font:inherit;font-variant-numeric:tabular-nums;background:0 0;border:0;outline:0;font-size:22px}.steppers{flex-direction:column;display:flex}.steppers button{width:24px;height:18px;color:var(--text);border-radius:4px;place-items:center;display:grid}.steppers button:hover{background:var(--surface-hover)}.steppers svg{stroke-width:2.4px;width:20px;height:20px}.format-wrap{position:relative}.pill{border:2px solid var(--border);white-space:nowrap;border-radius:999px;height:68px;padding:0 40px;font-size:22px}.pill:hover{background:var(--panel)}.pill b{color:var(--accent);margin-left:6px;font-weight:500}.menu{background:var(--surface);border:1px solid var(--border);z-index:5;border-radius:14px;flex-direction:column;min-width:200px;padding:6px;display:flex;position:absolute;bottom:calc(100% + 10px);left:0;right:0;box-shadow:0 10px 30px #0006}.menu button{text-align:left;border-radius:10px;padding:12px 14px;font-size:16px}.menu button small{color:var(--muted);margin-left:6px}.menu button:hover{background:var(--surface-hover)}.menu button[aria-checked=true]{color:var(--accent)}.btn.save{background:var(--save);color:#1b1c24;border-radius:999px;width:200px;height:68px;font-size:22px}.btn.save:hover:not(:disabled){background:#fff}.overlay{z-index:10;background:#0a0a0ea8;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.card{background:var(--sidebar);border:1px solid var(--border);border-radius:18px;padding:32px 36px;box-shadow:0 20px 60px #00000080}.busy-card{flex-direction:column;align-items:center;gap:18px;min-width:320px;display:flex}.busy-card p{margin:0;font-size:17px}.busy-card .btn{height:44px;font-size:16px}.spinner{border:4px solid var(--surface-hover);border-top-color:var(--accent);border-radius:50%;width:40px;height:40px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.progress{background:var(--surface);border-radius:3px;width:260px;height:6px;overflow:hidden}.progress div{background:var(--accent);width:0;height:100%;transition:width .1s}.help-card{width:min(560px,100%);max-height:100%;overflow:auto}.help-card h2{margin:0 0 12px}.help-card h3{color:var(--muted);margin:20px 0 10px;font-size:16px}.help-card ul{color:#c9cad6;margin:0;padding-left:20px;line-height:1.8}.help-card dl{grid-template-columns:auto 1fr;gap:8px 20px;margin:0 0 24px;display:grid}.help-card dt{color:var(--accent);font-family:ui-monospace,Consolas,monospace}.help-card dd{color:#c9cad6;margin:0}.toast{background:var(--surface);border:1px solid var(--border);opacity:0;pointer-events:none;z-index:20;border-radius:999px;max-width:calc(100% - 32px);padding:12px 22px;font-size:15px;transition:opacity .2s,transform .2s;position:fixed;bottom:120px;left:50%;transform:translate(-50%,20px)}.toast.show{opacity:1;transform:translate(-50%)}@media (width<=1280px){.editor{padding:0 24px 14px}.play-btn,.btn.save{width:120px}.pill{padding:0 22px}#toStartBtn{margin:0 4px}.time-field input{font-size:19px}}@media (width<=980px){.transport{flex-wrap:wrap;gap:12px}.time-group{order:3;width:100%;margin-left:0}.panel-row{flex-wrap:wrap}.btn{height:48px;padding:0 18px;font-size:17px}.btn.icon{width:56px}}
