.af {
  --af-line:#644d77;
  --af-muted:#d3c2dd;
  --af-accent:#ddb2ff;
  --af-alt:#a1ebe1;
  --af-warm:#ffd0a2;
  display:grid;
  width:100%;
  max-width:1420px;
  margin-inline:auto;
  gap:14px;
  color:#fbf2ff;
  color-scheme:dark;
}
.af * {box-sizing:border-box}
.af [hidden] {display:none!important}
.af h1,.af h2,.af h3,.af p {margin:0}
.af h1 {font-size:clamp(1.7rem,3.8vw,2.8rem);line-height:1.09}
.af h2 {font-size:1.22rem;line-height:1.25}
.af h3 {font-size:1rem}
.af p {line-height:1.5}
.af :focus-visible {outline:2px solid #efd1ff;outline-offset:3px}
.af .af-kicker {margin:0 0 7px;color:var(--af-accent);font-size:.7rem;font-weight:850;letter-spacing:.14em}
.af .af-muted {font-size:.82rem;color:var(--af-muted);overflow-wrap:anywhere}
.af-hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:22px;
  border:1px solid #845d9c;
  border-radius:19px;
  padding:clamp(16px,3vw,34px);
  background:radial-gradient(ellipse at 94% 10%,#593967,#35234a 55%,#241831);
}
.af-hero p:last-child {margin-top:8px;max-width:68ch;color:#eddeef}
.af-hero svg {width:clamp(95px,15vw,165px);height:auto;stroke:var(--af-accent);stroke-width:2.5;fill:none;stroke-linecap:round;stroke-linejoin:round}
.af-hero svg path+path {stroke:var(--af-alt)}
.af-bar,.af-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.af-bar {justify-content:space-between}
.af button,.af-file {
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:41px;
  padding:7px 11px;
  border:1px solid #825d9c;
  border-radius:9px;
  background:#3b294b;
  color:inherit;
  font:inherit;
  font-size:.84rem;
  font-weight:750;
  line-height:1.2;
  cursor:pointer;
}
.af button:hover:not(:disabled),.af-file:hover {border-color:#deb0fa;background:#533465}
.af button:disabled {opacity:.5;cursor:default}
.af .af-primary,.af button[aria-pressed="true"] {background:#7c49a8;border-color:#c897ef}
.af-file input {position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}
.af-file:focus-within {outline:2px solid #edcbff;outline-offset:3px}
.af .af-status {padding:9px 13px;border:1px solid var(--af-line);border-radius:10px;background:#2b1e37;font-size:.83rem;overflow-wrap:anywhere}
.af-status[data-error="true"] {border-color:#b57186;color:#ffd7e1}
.af-panel {min-width:0;border:1px solid var(--af-line);border-radius:15px;padding:clamp(12px,1.6vw,20px);background:#261b32}
.af-title {margin-bottom:12px}
.af-plot {
  display:block;
  width:100%;
  height:clamp(90px,14vw,185px);
  border:1px solid #59436c;
  border-radius:8px;
  background:#1b1426;
  overflow:hidden;
}
.af-click {cursor:crosshair}
.af-grid line {stroke:#8c749d;stroke-opacity:.37;vector-effect:non-scaling-stroke}
.af-wave {fill:#c095ed;opacity:.54}
.af-result {fill:#95e4d8;opacity:.68}
.af-curve,.af-line,.af-cursor {fill:none;stroke:var(--af-warm);stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none}
.af-line {stroke:var(--af-alt)}
.af-cursor {stroke:#fff2ff;stroke-width:1.5}
.af-ruler {display:flex;justify-content:space-between;gap:4px;padding-top:6px;font-size:.72rem;color:var(--af-muted);font-variant-numeric:tabular-nums}
.af-transport {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}
.af-transport label {display:flex;align-items:center;gap:7px;flex:1 1 190px;color:var(--af-muted);font-size:.82rem}
.af input[type="range"] {width:100%;min-width:0;margin:0;height:23px;accent-color:#c999ef}
.af input:not([type="range"]):not([type="file"]):not([type="checkbox"]),.af select {
  width:100%;
  min-width:0;
  min-height:38px;
  padding:5px 8px;
  border:1px solid #745987;
  border-radius:8px;
  background:#1c1428;
  color:inherit;
  font:inherit;
  font-size:.86rem;
}
.af output,.af .af-value {color:#ebccff;font-size:.84rem;font-variant-numeric:tabular-nums}
.af .af-field {display:grid;min-width:0;gap:5px;color:#eadcf3;font-size:.8rem}
.af-check {display:flex;align-items:center;gap:7px;color:#f0e3f6;font-size:.83rem}
.af-check input {width:17px;height:17px;accent-color:#c99aef}
.af-legend {display:flex;flex-wrap:wrap;gap:6px 14px;margin:8px 0 3px;color:var(--af-muted);font-size:.77rem}
.af-legend span {display:inline-flex;align-items:center;gap:5px}
.af-legend i {width:9px;height:9px;border-radius:3px;background:var(--af-accent)}
.af-legend .af-teal i {background:var(--af-alt)}
.af-legend .af-gold i {background:var(--af-warm)}
.af-tools {display:grid;gap:8px}
.af-footer p {margin-top:5px}
.af:fullscreen {max-width:none;display:block;overflow:auto;padding:13px;background:#1b1326}
.af:fullscreen>*+* {margin-top:14px}
.af-fade-stage {background:linear-gradient(155deg,#332343,#23192e)}
.af-fade-stage .af-plot {height:clamp(128px,17vw,215px)}
.af-fade-edge {display:grid;grid-template-columns:1fr 1fr;gap:12px}
.af-fade-edge section {display:grid;gap:9px}
.af-fade-edge .af-plot {height:58px}
.af-fade-edge .af-field {grid-template-columns:minmax(0,1fr) auto;align-items:center}
.af-fade-edge .af-field input {grid-column:1/-1}
.af-fade-edge .af-field select {grid-column:1/-1}
.af-pack .af-hero {background:radial-gradient(ellipse at 89% 12%,#604064,#352444 51%,#28182f)}
.af .af-pack-note {margin-top:8px}.af-tail-key {opacity:.4}.af-pack-config {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:10px}
.af-pack-tiles {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.af-pack-tile {border:1px solid #6e5183;border-radius:11px;background:linear-gradient(140deg,#382547,#241930);padding:10px;min-width:0}
.af-pack-tile[data-active] {border-color:#a5eee3;box-shadow:inset 0 0 0 1px #427f79}
.af-pack-tile .af-plot {height:41px;margin:7px 0}
.af-pack-tile h3 {color:#f5d8ff}
.af-pack-tile .af-muted {margin-bottom:7px}
.af-slice-grid {display:grid;grid-template-columns:minmax(0,1.85fr) minmax(245px,1fr);gap:13px;align-items:start}
.af-slice-grid .af-plot {touch-action:pan-y}
.af-slice-mark {stroke:#e4b2ff;stroke-width:2;vector-effect:non-scaling-stroke}
.af-slice-mark[data-active] {stroke:#9df2e5;stroke-width:3}
.af-slice-fill {fill:#6dbaa9;opacity:.26;pointer-events:none}
.af-slice-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr));gap:6px;max-height:220px;overflow:auto;padding:2px}
.af-slice-list button {display:grid;gap:3px;justify-content:stretch;text-align:left}
.af-slice-list button small {font-weight:500}
.af-slices #af-detail-plot {height:clamp(70px,7vw,105px);margin-top:6px}
.af-slice-controls {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.af-conv-chain {display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;align-items:stretch}
.af-conv-chain .af-panel {display:grid;align-content:start;gap:8px;background:linear-gradient(155deg,#342442,#251a31)}
.af-conv-chain .af-plot {height:54px}
.af-conv-result {background:linear-gradient(140deg,#34223e,#25192e)}
.af-tail {fill:#a879bc;opacity:.22}
.af-ir-overview {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.af-ir-overview div {padding:10px 12px;border:1px solid #6a4d7d;border-radius:9px;background:#31213e}
.af-ir-overview strong {display:block;margin-bottom:5px;color:#efcdff;font-size:1.17rem}
.af-ir-overview span {font-size:.77rem;color:var(--af-muted)}
.af-ir-plots {display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.af-ir-plots .af-panel {display:grid;gap:7px}
.af-ir-plots .af-plot {height:clamp(130px,16vw,212px)}
#af-freq-ruler {position:relative;height:23px}
#af-freq-ruler span {position:absolute;transform:translateX(-50%);white-space:nowrap}
#af-freq-ruler .af-first-tick {transform:none}
#af-freq-ruler .af-last-tick {transform:translateX(-100%)}
.af-ir-tick {stroke:#755b88;stroke-opacity:.46;vector-effect:non-scaling-stroke;pointer-events:none}
.af-ir-a {stroke:var(--af-accent)}
.af-ir-b {stroke:var(--af-alt)}
.af-ir-cursor {stroke:#f7eeff;stroke-dasharray:4 3;vector-effect:non-scaling-stroke}
.af-ir-lab .af-hero {background:radial-gradient(ellipse at 85% 20%,#4d4269,#342443 53%,#271a31)}
@media(max-width:860px){
  .af-conv-chain {grid-template-columns:1fr 1fr}
  .af-conv-chain .af-panel:last-child {grid-column:1/-1}
  .af-slice-grid {grid-template-columns:1fr}
}
@media(max-width:640px){
  .af-top {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .af-top .af-actions {display:contents}
  .af-hero {grid-template-columns:1fr}
  .af-hero>svg {display:none}
  .af-fade-edge,.af-ir-plots {grid-template-columns:1fr}
  .af-pack-tiles {grid-template-columns:repeat(2,minmax(0,1fr))}
  .af-pack-config,.af-ir-overview {grid-template-columns:repeat(2,minmax(0,1fr))}
  .af-slice-controls {grid-template-columns:repeat(2,minmax(0,1fr))}
  .af-conv-chain {grid-template-columns:1fr}
  .af-conv-chain .af-panel:last-child {grid-column:auto}
  .af-conv-chain .af-plot {height:44px}
}
