:root{font-family:Inter,system-ui,sans-serif;color:#e7ecef;background:#15191f;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,.button{cursor:pointer;border:1px solid #3b4651;background:#242d37;color:#e7ecef;border-radius:6px;padding:10px 14px;font-size:.85rem}button:hover,.button:hover{border-color:#7fe0be;background:#2d3b43}button:disabled{opacity:.4;cursor:default}:focus-visible{outline:2px solid #7fe0be;outline-offset:3px}input,select{display:block;width:100%;background:#151b23;color:#e7ecef;border:1px solid #3b4651;border-radius:5px;padding:10px;margin-top:8px}[hidden],audio:not([controls]){display:none!important}input[type=checkbox]{width:auto;margin:0;accent-color:#7fe0be}input[type=range]{accent-color:#7fe0be;padding:0}header{padding:24px 32px;display:flex;align-items:center;gap:15px;border-bottom:1px solid #323b46}header img{width:42px;height:42px;object-fit:contain}h1{font-size:24px;letter-spacing:-1px;margin:0 0 4px}header span,.muted{color:#98a6b5;font-size:12px}.badge{margin-left:auto;border:1px solid #445349;padding:8px;color:#7fe0be}.layout{display:grid;grid-template-columns:340px minmax(0,1fr);min-height:85vh}aside{padding:26px 20px;border-right:1px solid #323b46;min-width:0}main{padding:28px;max-width:1200px;width:100%;min-width:0}h2{font-size:17px;font-weight:600;margin:0}.row{display:flex;gap:10px;align-items:center;justify-content:space-between}nav{display:flex;gap:6px;margin:22px 0 12px}.active,button[aria-pressed=true]{color:#7fe0be;border-color:#527f70;background:#213931}.files{max-height:65vh;overflow:auto;margin-bottom:14px;scrollbar-width:none}.files::-webkit-scrollbar{display:none}article{padding:12px 0;border-bottom:1px solid #303a45}.filename{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}section{background:#1b222b;border:1px solid #323c48;border-radius:10px;padding:24px;margin-bottom:22px}.controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px;margin:25px 0 16px}label{font-size:13px;color:#b9c5d1}.check{display:inline-flex;gap:8px;align-items:center;margin:8px 18px 8px 0}.mixers{margin:8px 0 18px}.tempo{border-top:1px solid #303a45;margin:18px 0;padding-top:20px}.mixer-control{display:flex;align-items:flex-end;gap:8px;min-width:0}.mixer-control label{flex:1;min-width:0}.mixer-control>.icon-button{height:39px}.tempo-main{display:flex;align-items:flex-end;gap:12px}.tempo-main>label{display:block;flex:1;min-width:0;max-width:500px}.tempo-main input[type=range]{height:34px;margin:2px 0 0}.tempo-actions{flex-shrink:0;flex-wrap:nowrap}.tempo>.row{margin-top:10px}.status{font-size:13px;color:#a9cbbb;overflow-wrap:anywhere;min-height:20px;margin:18px 0 0}.actions,.transport-buttons{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.icon-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:34px;height:34px;padding:0}.icon-button svg{flex-shrink:0}article .icon-button{width:28px;height:28px;border-color:transparent;background:transparent}article .icon-button:hover{background:#2d3b43;border-color:#3b4651}article .favorite{color:#edd291}article .favorite svg{fill:#edd29125}.icon-button.primary{background:#242d37;color:#d7e3e9;border-color:#465360;width:44px;height:40px}.primary:hover:not(:disabled){background:#303c48;border-color:#8bada7;color:#c0f0dd}.processing svg{animation:processing 1.4s ease-in-out infinite}@keyframes processing{50%{opacity:.3;transform:rotate(12deg)}}.empty{color:#80909f;font-size:14px;padding:22px 0;line-height:1.7}main>p{line-height:1.8}.compact-player{--progress: 0%;display:flex;align-items:center;gap:8px;margin-top:8px;min-width:0}.compact-player .play-button{color:#7fe0be;background:#24332f;border:1px solid #3c574d}.play-button svg path{fill:currentColor}.play-button[aria-label^=Pause] svg path{fill:none;stroke-width:3}.playback-time{color:#d3dfdf;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}.playback-time span{color:#84949f}input.audio-seek{flex:1;min-width:30px;height:4px;margin:0;border:0;border-radius:10px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#7fe0be var(--progress),#35414b var(--progress));cursor:pointer}.audio-seek::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:9px;height:9px;border-radius:50%;background:#a4eed2}.audio-seek::-moz-range-thumb{width:9px;height:9px;border:0;border-radius:50%;background:#a4eed2}.waveform-player{--progress: 0%;position:relative;margin-top:22px;overflow:hidden;border:1px solid #2e3f44;border-radius:8px;background:#121c21}.waveform-seek{position:relative;height:172px;cursor:crosshair;touch-action:none;background-image:repeating-linear-gradient(90deg,transparent 0,transparent calc(12.5% - 1px),#ffffff05 calc(12.5% - 1px),#ffffff05 12.5%)}.waveform-seek canvas{display:block;width:100%;height:100%;padding:16px 0;opacity:.7}.waveform-seek:focus-visible{outline-offset:-3px}.played-region{position:absolute;inset:0 auto 0 0;width:var(--progress);background:#7fe0be13;pointer-events:none}.playhead{position:absolute;top:0;bottom:0;left:var(--progress);width:2px;background:#d5ffed;box-shadow:0 0 10px #7fe0be90;pointer-events:none;transform:translate(-1px)}.playhead:before{content:"";position:absolute;top:0;left:-3px;width:8px;height:8px;background:#d5ffed;clip-path:polygon(0 0,100% 0,50% 100%)}.waveform-transport{display:flex;align-items:center;gap:14px;padding:9px 12px;background:#17232a;border-top:1px solid #293b40}.waveform-transport>.icon-button:last-child{margin-left:auto}.waveform-transport .icon-button{width:30px;height:30px;border-color:transparent;background:transparent}.waveform-transport .play-button{background:#7fe0be;color:#142b23}.waveform-transport .active:not(.play-button){color:#7fe0be;background:#213931}.output-footer{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-top:14px}.output-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;margin:0}.output-footer .actions{flex-wrap:nowrap;flex-shrink:0}@media(max-width:850px){.layout{grid-template-columns:1fr}aside{border-right:0;border-bottom:1px solid #323b46}.files{max-height:300px}.controls{grid-template-columns:1fr}header{padding:20px}.badge{display:none}main{padding:18px}section{padding:18px}}@media(max-width:420px){.output-footer{flex-wrap:wrap;gap:12px}.output-name{width:100%}.waveform-transport{gap:10px;padding:8px}.waveform-seek{height:140px}}@media(prefers-reduced-motion:reduce){.processing svg{animation:none}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.icon-button.loop-generator{width:54px;height:40px;background:#242d37;box-shadow:0 2px 4px #00000020}.loop-generator svg{width:30px;height:24px;stroke-width:1.8}.output-footer .favorite{color:#edd291;border-color:#8e7743;background:#393323}.output-footer .favorite svg{fill:#edd29130}.generator-section .controls,.output-section .waveform-player{margin-top:0}.selector-group{min-width:0}.choice-options{min-width:0;border:0;padding:6px 0 0;margin:6px 0 0}.controls{align-items:start}.header-links{display:flex;align-items:center;gap:18px;margin-left:auto}.header-links>a{color:#a9b9c8;font-size:13px;text-decoration:none}.header-links>a:hover{color:#9de8ce}.upload-button[aria-disabled=true]{opacity:.7;cursor:progress}.upload-button>span{display:flex}.spin{animation:loading-spin .8s linear infinite}@keyframes loading-spin{to{transform:rotate(360deg)}}.upload-progress{display:flex;flex-direction:column;gap:7px;color:#a9cbbb;font-size:12px;margin:12px 0}.upload-progress progress{width:100%;height:4px;accent-color:#7fe0be}.feedback-toast{position:fixed;right:24px;bottom:24px;z-index:10;display:flex;align-items:center;gap:10px;padding:12px 16px;border:1px solid #527f70;background:#23372f;color:#c6f5df;border-radius:8px;box-shadow:0 5px 24px #0005;font-size:13px;animation:feedback-enter .18s ease-out;pointer-events:none}@keyframes feedback-enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.recently-updated{animation:library-flash 1.8s ease-out}.is-flashing{animation:saved-flash 1.8s ease-out}@keyframes library-flash{0%{background:#7fe0be20}to{background:transparent}}@keyframes saved-flash{0%{box-shadow:0 0 0 5px #7fe0be45;border-color:#b2f5d7}to{box-shadow:0 0 0 0 transparent}}@media(prefers-reduced-motion:reduce){.spin,.recently-updated,.is-flashing,.feedback-toast{animation:none}}.mosaic-patterns{margin:16px 0}.mosaic-patterns summary{cursor:pointer;font-size:13px;color:#b9c5d1}.mosaic-patterns fieldset{border:0;padding:0;min-width:0}.pattern-list{max-height:240px;overflow:auto;margin:12px 0}.pattern-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.pattern-row .check{min-width:0}.pattern-row code{overflow-wrap:anywhere}.pattern-row button{padding:5px 8px}.pattern-editor{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.pattern-editor>label{flex:0 1 260px;min-width:0}.pattern-editor .actions{padding-bottom:1px}.pattern-new-chip{flex-shrink:0;padding:2px 6px;border:1px solid #527f70;border-radius:999px;background:#213931;color:#9de8ce;font-size:10px;line-height:1.3}.pattern-markers{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.pattern-marker{position:absolute;top:0;bottom:0;border-left:1px solid #7fe0be30;min-width:0}.pattern-marker>span{display:block;padding:3px 0;overflow:hidden;text-align:center;font:11px monospace;color:#c6f5df;background:#142b23d9}.pattern-marker.silence>span{color:#98a6b5;background:#151b23d9}.add-samples-dialog{width:min(580px,calc(100vw - 32px));max-height:calc(100dvh - 40px);box-sizing:border-box;overflow:auto;padding:22px;border:1px solid #465360;border-radius:12px;background:#1b222b;color:#e7ecef}.add-samples-dialog::backdrop{background:#090e16bd}.sample-sources{display:grid;gap:12px;margin-top:22px}.store-packs{border:1px solid #323c48;border-radius:6px;padding:0;margin:16px 0;max-height:45vh;overflow:auto}.store-pack{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #323c48;cursor:pointer}.store-pack:last-child{border-bottom:0}.store-pack.selected{background:#213931}.store-pack:has(input:disabled){opacity:.5;cursor:default}.store-pack input{flex:0 0 auto;width:auto;margin:0;accent-color:#7fe0be}.store-pack>span{display:grid;gap:4px;overflow-wrap:anywhere;min-width:0}.store-result{font-size:13px;overflow-wrap:anywhere;margin-bottom:14px}.store-result ul{padding-left:20px}.store-pack .store-pack-thumbnail{flex:0 0 54px;width:54px;height:54px;object-fit:cover;border-radius:5px;background:#151b23}.store-pack .store-pack-thumbnail.placeholder{display:flex;align-items:center;justify-content:center;color:#80909f}.store-import-progress{margin:12px 0;padding:10px;border:1px solid #527f70;border-radius:8px;background:#1b292a;box-shadow:0 4px 18px #0005;display:grid;gap:6px;font-size:12px}.store-import-progress>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-import-progress progress{width:100%;accent-color:#7fe0be}.store-import-progress p{margin:0}.store-import-progress button{padding:5px 8px;font-size:11px}.support-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);box-sizing:border-box;overflow:auto;padding:24px;border:1px solid #527f70;border-radius:12px;background:#1b222b;color:#e7ecef}.support-dialog::backdrop{background:#090e16bd}.support-dialog p{font-size:14px;line-height:1.6}.support-dialog .muted{font-size:12px}.support-links{display:grid;gap:10px;margin:20px 0}.support-links a{text-decoration:none;text-align:center}.support-dialog>.actions{justify-content:flex-end}
