/* AuraSpektra v0.4.1 · German spectral learning + independent sample editor. */
.spectrum-glossary{margin:13px 0 15px;border:1px solid var(--ap-stroke-subtle);background:var(--ap-panel-soft);padding:10px 13px;font-size:12px}
.spectrum-glossary summary{cursor:pointer;font-weight:800;color:var(--ap-accent);letter-spacing:.04em}
.spectrum-glossary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin-top:12px}
.spectrum-glossary-grid p{border-top:1px solid var(--ap-stroke-subtle);padding:8px 0;margin:0;line-height:1.5}
.spectrum-glossary-grid strong{display:block;color:var(--ap-headline)}
.spectrum-glossary-grid span{display:block;color:var(--ap-muted)}
.spectrum-insight-tools{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin:8px 0 9px}
.spectrum-insight-tools button{min-height:33px;font-size:11px;padding:7px 11px}
.spectrum-insight-tools button.is-active{border-color:var(--ap-accent);color:var(--ap-headline);background:var(--ap-panel-raised)}
.spectrum-insight-text{margin:7px 0 10px;border-left:3px solid var(--ap-accent);padding:8px 11px;background:var(--ap-panel-soft);color:var(--ap-muted);font-size:12px;line-height:1.5}
.spectrum-visual{width:100%;min-width:0}
.spectrum-visual canvas{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:16/5}
.standalone-sample-editor{display:flex;flex-direction:column;gap:12px}
.standalone-sample-editor .panel{padding:15px 16px;margin:0;min-width:0}
.ase-stage-title{display:flex;gap:11px;align-items:baseline;border-bottom:1px solid var(--ap-stroke-subtle);padding-bottom:8px;margin-bottom:11px}
.ase-stage-title span{font-size:10px;color:var(--ap-accent);font-family:var(--ap-mono,monospace)}
.ase-stage-title strong{font-size:15px;color:var(--ap-headline)}
.ase-source-row,.ase-save-row{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin:8px 0}
.ase-source-row label,.ase-save-row label{flex:1 1 220px;min-width:0;font-size:11px;color:var(--ap-muted);display:flex;flex-direction:column;gap:4px}
.ase-source-row select,.ase-save-row input{width:100%;min-height:42px;box-sizing:border-box}
.ase-source-row button,.ase-save-row button{min-height:42px;flex:0 0 auto}
.ase-source-row .ase-file{flex:0 1 auto;min-width:200px;display:inline-flex;justify-content:center;min-height:42px}
.ase-active-name{font:750 15px var(--ap-display,system-ui),sans-serif;color:var(--ap-headline);padding:6px 0 12px}
.ase-workbench .pad-waveform-editor{margin:0;padding:9px;border:1px solid var(--ap-stroke-subtle)}
.ase-workbench .pad-waveform-viewport{min-height:185px;overflow-x:auto;max-width:100%;}
#aseWaveCanvas{min-height:185px;height:185px!important;display:block}
.ase-trim-row,.ase-curve-row{display:flex;flex-wrap:wrap;align-items:end;gap:9px;margin:10px 0}
.ase-trim-row label,.ase-curve-row label{display:flex;flex-direction:column;gap:4px;color:var(--ap-muted);font-size:11px;flex:0 1 145px}
.ase-trim-row input,.ase-trim-row select,.ase-curve-row select{min-height:37px;width:100%;box-sizing:border-box}
.ase-trim-row button,.ase-curve-row button{min-height:37px}
.ase-curve-row .detail{flex:1 1 180px}
.ase-tuning{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;padding:15px 0}
.ase-tuning label{display:flex;flex-direction:column;gap:10px;font-size:11px;font-weight:750;color:var(--ap-headline)}
.ase-tuning output{font-weight:500;color:var(--ap-accent)}
.ase-tuning input[type=range]{width:100%;margin:0}
.ase-tuning .ase-reverse{justify-content:center;align-items:center;flex-direction:row;gap:7px;max-width:220px}
.ase-actions{display:flex;gap:8px;flex-wrap:wrap}
.ase-actions button{min-height:38px}
.ase-status{margin-top:10px;border-left:3px solid var(--ap-accent);padding:9px 11px;background:var(--ap-panel-soft);color:var(--ap-muted);font-size:12px}
.ase-status[data-error=true]{border-color:#e17d81}
@media(max-width:700px){.spectrum-glossary-grid{grid-template-columns:1fr}.ase-tuning{grid-template-columns:repeat(2,minmax(0,1fr))}.ase-source-row label,.ase-save-row label{flex-basis:100%}.ase-source-row button,.ase-save-row button{flex:1 1 auto}.ase-stage-title{flex-wrap:wrap}.standalone-sample-editor .panel{padding:12px}.ase-trim-row label{flex:1 1 100px}}
