:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#f4f5f7;--surface:#fff;--surface-2:#eef0f3;--border:#dde1e7;--text:#15181d;--muted:#647084;--accent:#0b9467;--accent-ink:#fff;--accent-soft:#0b94671f;--loop:#c96a04;--loop-ink:#fff;--loop-soft:#d9770629;--wave:#c3c9d3;--danger:#c73434;--danger-soft:#c734341a;--shadow:0 1px 2px #1018280f, 0 8px 24px #1018280f;--radius:16px;--tap:44px;--gap:16px;--wave-height:150px}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#0f1216;--surface:#181c22;--surface-2:#222730;--border:#2b313b;--text:#e9ecf1;--muted:#8d96a5;--accent:#3ddc97;--accent-ink:#052417;--accent-soft:#3ddc9724;--loop:#ffb020;--loop-ink:#2b1a00;--loop-soft:#ffb0202e;--wave:#3b4350;--danger:#ff7b7b;--danger-soft:#ff7b7b1f;--shadow:0 1px 2px #0000004d}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;touch-action:manipulation}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;overscroll-behavior-y:none;margin:0;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,Noto Sans SC,Microsoft YaHei,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.4}h1,h2,h3,p,ol,ul{margin:0;padding:0}ol,ul{list-style:none}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;background:0 0;border:0;margin:0;padding:0}button:disabled{cursor:default;opacity:.4}button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.icon{flex:none;width:24px;height:24px}.file-input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.hint{color:var(--muted);font-size:13px}.app{min-height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;flex-direction:column;display:flex}.stage{gap:var(--gap);flex-direction:column;min-width:0;padding:16px 20px 20px;display:flex}.sidebar{flex-direction:column;min-width:0;padding:4px 20px 24px;display:flex}.primary,.ghost{min-height:var(--tap);white-space:nowrap;border-radius:12px;justify-content:center;align-items:center;gap:6px;padding:0 16px;font-weight:600;display:inline-flex}.primary{background:var(--accent);color:var(--accent-ink)}.ghost{background:var(--surface-2);color:var(--text)}.small{padding:0 12px;font-size:15px}.small .icon{width:20px;height:20px}.large{border-radius:16px;min-height:56px;padding:0 24px;font-size:18px}.now{align-items:baseline;gap:12px;min-width:0;display:flex}.now h1{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:20px;font-weight:700;overflow:hidden}.now-index{color:var(--muted);font-variant-numeric:tabular-nums;flex:none;font-size:14px}.alert{background:var(--danger-soft);color:var(--danger);border-radius:12px;padding:10px 14px;font-size:14px}.wave-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:0 24px 10px}.waveform{padding:26px 0}.waveform-surface{height:var(--wave-height);cursor:pointer;touch-action:pan-y;-webkit-user-select:none;user-select:none;position:relative}.waveform.is-idle .waveform-surface{cursor:default}.waveform-canvas{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.waveform-played{clip-path:inset(0 100% 0 0)}.waveform-region{background:var(--loop-soft);pointer-events:none;border-radius:4px;position:absolute;top:0;bottom:0}.waveform-head{background:var(--text);pointer-events:none;will-change:transform;border-radius:1px;width:2px;position:absolute;top:-6px;bottom:-6px;left:-1px}.waveform-note{text-align:center;color:var(--muted);pointer-events:none;font-size:13px;position:absolute;bottom:6px;left:0;right:0}.marker{width:var(--tap);margin-left:calc(var(--tap) / -2);cursor:ew-resize;touch-action:none;position:absolute;top:-26px;bottom:-26px}.marker:before{content:"";background:var(--loop);width:2px;margin-left:-1px;position:absolute;top:22px;bottom:22px;left:50%}.marker-flag{background:var(--loop);width:26px;height:22px;color:var(--loop-ink);border-radius:6px;place-items:center;margin-left:-13px;font-size:13px;font-weight:700;display:grid;position:absolute;left:50%}.marker-a .marker-flag{top:0}.marker-b .marker-flag{bottom:0}.time{font-variant-numeric:tabular-nums;justify-content:space-between;align-items:baseline;display:flex}.time-current{font-size:22px;font-weight:700}.time-total{color:var(--muted);font-size:15px}.transport{justify-content:center;align-items:center;gap:14px;display:flex}.round{background:var(--surface);border:1px solid var(--border);border-radius:50%;place-items:center;width:52px;height:52px;display:grid;position:relative}.round.play{background:var(--accent);width:76px;height:76px;color:var(--accent-ink);border-color:#0000}.round.play .icon{width:38px;height:38px}.round.skip .icon{width:34px;height:34px}.round.skip span{font-size:11px;font-weight:700;position:absolute;top:50%;left:50%;transform:translate(-50%,-38%)}.round.skip{width:58px;height:58px}.panels{gap:var(--gap);display:grid}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:12px;min-width:0;padding:14px 16px 16px;display:flex}.panel h2,.sidebar h2{font-size:15px;font-weight:700}.panel-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:2px 12px;min-height:28px;display:flex}.panel-head h2{flex:none}.panel-head .hint{text-align:right}.panel-rate .panel-head .hint{text-align:left;flex:1}.badge{background:var(--surface-2);color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;border-radius:999px;padding:3px 10px;font-size:13px;font-weight:600}.badge.is-on{background:var(--loop);color:var(--loop-ink)}.segmented{background:var(--surface-2);border-radius:14px;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;display:grid}.segmented button{min-height:48px;color:var(--muted);white-space:nowrap;border-radius:10px;justify-content:center;align-items:center;gap:6px;padding:0 6px;font-size:15px;font-weight:600;display:flex}.segmented .icon{width:20px;height:20px}.segmented button.is-on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.points{grid-template-columns:1fr 1fr;gap:12px;display:grid}.point{flex-direction:column;gap:8px;min-width:0;display:flex}.point-set{background:var(--surface-2);text-align:left;border:2px solid #0000;border-radius:14px;align-items:center;gap:12px;min-height:68px;padding:10px 12px;display:flex}.point.is-set .point-set{border-color:var(--loop);background:var(--loop-soft)}.point-letter{background:var(--loop);width:38px;height:38px;color:var(--loop-ink);border-radius:10px;flex:none;place-items:center;font-size:20px;font-weight:800;display:grid}.point-text{flex-direction:column;min-width:0;display:flex}.point-name{font-weight:700}.point-time{color:var(--muted);font-variant-numeric:tabular-nums;font-size:15px}.point.is-set .point-time{color:var(--text)}.point-nudge{grid-template-columns:1fr 1fr;gap:8px;display:grid}.point-nudge button{min-height:var(--tap);background:var(--surface-2);font-variant-numeric:tabular-nums;border-radius:10px;font-size:15px;font-weight:600}.clear-loop{width:100%}.rate-value{font-variant-numeric:tabular-nums;flex:none;font-size:22px;font-weight:700;line-height:28px}.rates{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.rates button{min-height:var(--tap);background:var(--surface-2);font-variant-numeric:tabular-nums;border-radius:10px;font-weight:600}.rates button.is-on{background:var(--accent);color:var(--accent-ink)}.shortcuts{color:var(--muted);text-align:center;font-size:13px;display:none}.sidebar-head{justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.sidebar-head h2{white-space:nowrap;flex:none;align-items:center;gap:8px;font-size:17px;display:flex}.count{background:var(--surface-2);color:var(--muted);font-variant-numeric:tabular-nums;border-radius:999px;padding:1px 8px;font-size:13px}.sidebar-actions{gap:8px;display:flex}.tracks{flex-direction:column;gap:4px;display:flex}.track{border-radius:12px;align-items:stretch;display:flex}.track.is-current{background:var(--accent-soft)}.track-main{text-align:left;border-radius:12px;flex:1;align-items:center;gap:10px;min-width:0;min-height:52px;padding:6px 4px 6px 10px;display:flex}.track-index{width:24px;color:var(--muted);font-variant-numeric:tabular-nums;flex:none;place-items:center;font-size:14px;display:grid}.track-name{-webkit-line-clamp:2;line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;flex:1;min-width:0;font-size:15px;display:-webkit-box;overflow:hidden}.track.is-current .track-name{font-weight:700}.track.is-current .track-index{color:var(--accent)}.track.is-failed .track-name{color:var(--danger);text-decoration:line-through}.track-remove{width:var(--tap);color:var(--muted);border-radius:12px;flex:none;place-items:center;display:grid}.track-remove .icon{width:18px;height:18px}.bars{align-items:flex-end;gap:2px;height:14px;display:inline-flex}.bars i{background:var(--accent);border-radius:1px;width:3px;animation:.9s ease-in-out infinite bounce}.bars i:nth-child(2){animation-delay:-.3s}.bars i:nth-child(3){animation-delay:-.6s}@keyframes bounce{0%,to{height:4px}50%{height:14px}}@media (prefers-reduced-motion:reduce){.bars i{height:10px;animation:none}}.sidebar-empty{flex-direction:column;gap:10px;padding:4px 0;display:flex}.sidebar-empty h3{color:var(--muted);font-size:13px;font-weight:600}.last-files{flex-direction:column;gap:2px;display:flex}.last-files li{background:var(--surface-2);color:var(--muted);overflow-wrap:anywhere;border-radius:10px;padding:8px 10px;font-size:14px}.welcome{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:16px;padding:40px 8px;display:flex}.welcome-icon{background:var(--accent-soft);width:72px;height:72px;color:var(--accent);border-radius:22px;place-items:center;display:grid}.welcome-icon .icon{width:36px;height:36px}.welcome h1{font-size:26px}.welcome p{max-width:420px;color:var(--muted)}.drop-overlay{z-index:10;border:3px dashed var(--accent);background:color-mix(in srgb, var(--bg) 85%, transparent);color:var(--accent);pointer-events:none;border-radius:24px;place-items:center;font-size:20px;font-weight:700;display:grid;position:fixed;inset:12px}@media (hover:hover){.ghost:hover:not(:disabled),.point-nudge button:hover:not(:disabled),.rates button:not(.is-on):hover,.track-remove:hover{background:var(--border)}.track:not(.is-current) .track-main:hover{background:var(--surface-2)}.segmented button:not(.is-on):hover{color:var(--text)}}@media (hover:hover) and (pointer:fine){.shortcuts{display:block}}@media (width<=480px){:root{--gap:12px;--wave-height:110px}.stage{padding:12px 14px 16px}.sidebar{padding:0 14px 24px}.wave-card{padding:0 20px 8px}.segmented button{font-size:14px}.point-set{gap:10px;padding:8px 10px}}@media (width>=700px){.panels{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"loop mode""loop rate"}.panel-loop{grid-area:loop}.panel-mode{grid-area:mode}.panel-rate{grid-area:rate}.rates{grid-template-columns:repeat(8,1fr);gap:6px}.clear-loop{margin-top:auto}}@media (width>=900px) and (height>=560px){.app{grid-template-columns:clamp(288px,27vw,340px) minmax(0,1fr);grid-template-areas:"sidebar stage";height:100dvh;display:grid;overflow:hidden}.stage{-webkit-overflow-scrolling:touch;grid-area:stage;padding:20px 28px 20px 24px;overflow-y:auto}.stage>*{flex:none}.stage>.welcome{flex:1}.stage>.wave-card{flex-direction:column;flex:200px;min-height:200px;max-height:420px;display:flex}.wave-card .waveform{flex-direction:column;flex:1;min-height:0;display:flex}.wave-card .waveform-surface{flex:1;height:auto;min-height:0}.sidebar{border-right:1px solid var(--border);background:var(--surface);-webkit-overflow-scrolling:touch;grid-area:sidebar;padding:8px 12px 16px 16px;overflow-y:auto}.sidebar-head{z-index:1;background:var(--surface);padding:20px 0 12px;position:sticky;top:-8px}.now h1{font-size:22px}}@media (height<=559px) and (orientation:landscape) and (width>=600px){:root{--wave-height:76px;--gap:12px}.stage{grid-template:"now now""wave panels""transport panels"".panels"1fr/minmax(0,1fr) minmax(0,1fr);align-items:start;padding-top:10px;display:grid}.stage>*{grid-column:1/-1}.stage>.now{grid-area:now}.stage>.wave-card{grid-area:wave}.stage>.transport{grid-area:transport}.stage>.panels{grid-area:panels;grid-template-columns:minmax(0,1fr);grid-template-areas:none}.panels>.panel{grid-area:auto}.rates{grid-template-columns:repeat(4,1fr)}.now h1{font-size:17px}.round.play{width:64px;height:64px}.transport{gap:10px}}
