/* Formant Shifter 1.0.0 | onlinepitchchanger.com | "voice lab" layout: source strip → envelope scope + formant/pitch sliders → download.
   Brand: #0067FF primary, #22B8F0 accent, #0F172A navy; amber = harmonics/playhead, red only for "recording". Text ≥ 15px, labels ≥ 13px, contrast ≥ 4.5:1. */
.opc-fms{--f-blue:#0067ff;--f-blue2:#0052cc;--f-cyan:#22b8f0;--f-navy:#0f172a;--f-navy2:#1e293b;--f-text:#334155;--f-muted:#475569;--f-light:#f0f7ff;--f-line:#d6e4f5;--f-ok:#15803d;--f-rec:#b91c1c;
	max-width:1080px;margin:0 auto 1.75em;color:var(--f-text);font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;box-sizing:border-box;text-align:left}
.opc-fms *,.opc-fms *::before,.opc-fms *::after{box-sizing:border-box}
.opc-fms [hidden]{display:none!important}
.opc-fms p,.opc-fms h2{margin:0}
.opc-fms button,.opc-fms input{font:inherit;letter-spacing:normal;text-transform:none;box-shadow:none;margin:0}
.opc-fms button{cursor:pointer;line-height:1.2}
.opc-fms button:disabled{cursor:not-allowed}
.opc-fms :focus-visible{outline:3px solid var(--f-blue);outline-offset:2px}
.opc-fms-head{margin:0 0 12px}
.opc-fms-title{margin:0;font-size:24px;line-height:1.25;font-weight:800;color:var(--f-navy);letter-spacing:-.01em}
.opc-fms-lead{margin:4px 0 0;color:var(--f-muted);font-size:16px}

/* ---------- source strip (light) ---------- */
.opc-fms-src{border:1px solid var(--f-line);border-radius:16px;background:var(--f-light);padding:12px;transition:box-shadow .15s}
.opc-fms.is-drag .opc-fms-src{box-shadow:0 0 0 3px var(--f-cyan) inset}
.opc-fms-inputs{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.opc-fms-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0 0 0 0)}
.opc-fms-rec,.opc-fms-open{display:flex;width:100%;align-items:center;gap:12px;min-height:64px;padding:8px 14px;margin:0;border-radius:14px;text-align:left;cursor:pointer;transition:background .15s}
.opc-fms-rec{border:0;background:var(--f-blue);color:#fff}
.opc-fms-rec:hover,.opc-fms-rec:focus{background:var(--f-blue2);color:#fff}
.opc-fms-rec:disabled{background:#475569;color:#fff}
.opc-fms-recdot{flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 8px #fff,inset 0 0 0 15px var(--f-rec)}
.opc-fms.is-rec .opc-fms-rec{background:var(--f-rec)}
.opc-fms.is-rec .opc-fms-rec:hover,.opc-fms.is-rec .opc-fms-rec:focus{background:#991b1b}
.opc-fms.is-rec .opc-fms-recdot{border-radius:7px}
.opc-fms-open{border:1px solid #94a3b8;background:#fff;color:var(--f-navy)}
.opc-fms-open:hover{background:#e8f0fb}
.opc-fms-file:focus-visible+.opc-fms-open{outline:3px solid var(--f-blue);outline-offset:3px}
.opc-fms-file:disabled+.opc-fms-open{opacity:.55;cursor:not-allowed}
.opc-fms-open svg{flex:0 0 28px;width:28px;height:28px;color:var(--f-blue)}
.opc-fms-btntext{display:flex;flex-direction:column;gap:2px;min-width:0}
.opc-fms-btntext strong{font-size:18px;line-height:1.25;color:inherit}
.opc-fms-btnsub{font-size:15px;line-height:1.35;color:inherit}
.opc-fms.is-loaded .opc-fms-rec,.opc-fms.is-loaded .opc-fms-open{min-height:50px;padding:6px 12px}
.opc-fms.is-loaded .opc-fms-btntext strong{font-size:16px}
.opc-fms.is-loaded .opc-fms-btnsub{display:none}
.opc-fms.is-rec .opc-fms-btnsub{display:block}
.opc-fms-meter{display:flex;align-items:center;gap:10px;margin-top:10px;padding:8px 10px;border-radius:10px;background:var(--f-navy);font-size:15px;font-weight:700}
.opc-fms-mlabel{color:#e2e8f0;white-space:nowrap}
.opc-fms-mbar{flex:1;height:12px;border-radius:99px;background:#334155;overflow:hidden}
.opc-fms-mbar span{display:block;height:100%;width:0;background:linear-gradient(90deg,#4ade80,#fbbf24 80%,#f87171)}
.opc-fms-mtime{font-variant-numeric:tabular-nums;color:#fff;white-space:nowrap}
.opc-fms-private{display:flex;align-items:flex-start;gap:6px;margin-top:10px;font-size:15px;color:var(--f-muted)}
.opc-fms-private svg{width:16px;height:16px;flex:0 0 16px;margin-top:3px;color:var(--f-ok)}
.opc-fms-bar{height:8px;border-radius:99px;background:#dbe7f7;overflow:hidden;margin-top:8px}
.opc-fms-bar span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--f-blue),var(--f-cyan));transition:width .2s}
.opc-fms-bar.is-busy span{width:35%!important;animation:opc-fms-slide 1.2s linear infinite}
@keyframes opc-fms-slide{from{transform:translateX(-100%)}to{transform:translateX(300%)}}
.opc-fms-status{margin-top:6px;font-size:15px;color:var(--f-text);min-height:1.5em}
.opc-fms-status[data-kind=busy]{font-weight:600}
.opc-fms-status[data-kind=rec]{color:var(--f-rec);font-weight:700}
.opc-fms-status[data-kind=rec]::before{content:"● "}
.opc-fms-status[data-kind=ok]{color:var(--f-ok);font-weight:600}
.opc-fms-status[data-kind=ok]::before{content:"✓ "}
.opc-fms-status[data-kind=error]{color:#7f1d1d;font-weight:700;background:#fee2e2;border:1px solid #fca5a5;border-radius:10px;padding:8px 10px}
.opc-fms-status[data-kind=error]::before{content:"⚠ "}
.opc-fms-info{margin:6px 0 0;font-size:15px;font-weight:600;color:var(--f-navy);overflow-wrap:anywhere}
.opc-fms-infolabel{color:var(--f-muted);font-weight:700}

/* ---------- lab: envelope scope (dark) + controls ---------- */
.opc-fms-lab{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:12px}
.opc-fms-scope{border-radius:18px;background:var(--f-navy);color:#fff;padding:12px}
.opc-fms .opc-fms-scope :focus-visible{outline-color:var(--f-cyan)}
.opc-fms-scopehead{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;margin:0 0 8px;font-size:16px;font-weight:800}
.opc-fms-legend{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:13px;font-weight:600;color:#cbd5e1}
.opc-fms-legend i{display:inline-block;width:18px;height:0;border-top:3px solid #94a3b8;vertical-align:middle}
.opc-fms-legend i.is-a{border-top-style:dashed}
.opc-fms-legend i.is-b{border-top-color:var(--f-cyan)}
.opc-fms-legend i.is-h{width:4px;height:13px;border:0;background:#fbbf24;opacity:.8}
.opc-fms-env{position:relative;height:170px;border-radius:12px;background:#0b1224;box-shadow:inset 0 0 0 1px #334155;overflow:hidden}
.opc-fms-env canvas{display:block;width:100%;height:100%}
.opc-fms-envempty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:0 12px 20px;color:#cbd5e1;font-size:15px;text-align:center}
.opc-fms-peaks{margin:8px 0 10px;font-size:15px;line-height:1.45;color:#e2e8f0}
.opc-fms-wave{position:relative;height:54px;border-radius:10px;background:#0b1224;overflow:hidden;cursor:pointer;box-shadow:inset 0 0 0 1px #334155}
.opc-fms-wave canvas{display:block;width:100%;height:100%}
.opc-fms-transport{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px 14px;margin-top:10px}
.opc-fms-play{display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:0 20px 0 14px;border-radius:99px;border:0;background:var(--f-blue);color:#fff;font-weight:800;font-size:17px}
.opc-fms-play:hover,.opc-fms-play:focus{background:var(--f-blue2);color:#fff}
.opc-fms-play:disabled{background:#334155;color:#cbd5e1}
.opc-fms-play svg{width:24px;height:24px;fill:currentColor}
.opc-fms-abwrap{display:flex;flex-direction:column;gap:2px}
.opc-fms-ablabel{font-size:13px;font-weight:700;color:#cbd5e1}
.opc-fms-time{margin-left:auto;font-variant-numeric:tabular-nums;color:#e2e8f0;font-size:16px;font-weight:600;padding-bottom:12px}
.opc-fms-now{min-height:1.5em;margin:8px 0 0;font-size:15px;font-weight:700;color:#fff}
.opc-fms-now b{color:var(--f-cyan)}
.opc-fms-now[data-which=a] b{color:#fff;text-decoration:underline;text-underline-offset:3px}

.opc-fms-seg{display:inline-flex;flex-wrap:wrap;border-radius:12px;padding:3px;gap:3px;background:#e8f0fb}
.opc-fms-seg button{min-height:44px;padding:0 14px;border:0;border-radius:9px;background:transparent;color:var(--f-navy);font-weight:700;font-size:15px;white-space:nowrap}
.opc-fms-seg button:hover,.opc-fms-seg button:focus{background:#d7e6fb;color:var(--f-navy)}
.opc-fms-seg button[aria-checked=true]{background:var(--f-blue);color:#fff}
.opc-fms-ab{background:var(--f-navy2)}
.opc-fms-ab button{color:#e2e8f0}
.opc-fms-ab button:hover,.opc-fms-ab button:focus{background:#334155;color:#fff}
.opc-fms-ab button[aria-checked=true]{background:var(--f-cyan);color:var(--f-navy)}
.opc-fms-ab button[data-fs-ab=a][aria-checked=true]{background:#fff;color:var(--f-navy)}

.opc-fms-controls{border:1px solid var(--f-line);border-radius:18px;background:#fff;padding:12px}
.opc-fms-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.opc-fms-pre{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-height:62px;padding:8px 10px;border-radius:12px;border:1px solid #94a3b8;background:#fff;color:var(--f-navy);text-align:left}
.opc-fms-pre b{font-size:16px;font-weight:800;line-height:1.2}
.opc-fms-pre span{font-size:14px;font-weight:600;color:var(--f-muted);line-height:1.25}
.opc-fms-pre:hover,.opc-fms-pre:focus{background:var(--f-light);color:var(--f-navy)}
.opc-fms-pre[aria-pressed=true]{background:var(--f-blue);border-color:var(--f-blue2);color:#fff}
.opc-fms-pre[aria-pressed=true] span{color:#fff}
.opc-fms-knob{margin-top:12px;padding:10px 12px;border-radius:14px;background:var(--f-light);border-left:5px solid var(--f-cyan)}
.opc-fms-knob.is-pitch{border-left-color:#fbbf24}
.opc-fms-knobhead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px}
.opc-fms-knobhead label{font-size:17px;font-weight:800;color:var(--f-navy)}
.opc-fms-unit{font-size:14px;font-weight:600;color:var(--f-muted)}
.opc-fms-knobhead output{font-size:20px;font-weight:800;color:var(--f-blue2);font-variant-numeric:tabular-nums}
.opc-fms-slide{display:flex;align-items:center;gap:8px;margin-top:4px}
.opc-fms .opc-fms-step{display:inline-grid;place-items:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;padding:0;border-radius:12px;border:1px solid #94a3b8;background:#fff;color:var(--f-navy);font-size:24px;font-weight:800;line-height:1}
.opc-fms .opc-fms-step:hover,.opc-fms .opc-fms-step:focus{background:#e8f0fb;color:var(--f-navy)}
.opc-fms .opc-fms-slide input,.opc-fms .opc-fms-range input{display:block;flex:1;min-width:0;width:100%;height:44px;min-height:44px;accent-color:var(--f-blue);margin:0;padding:0;border:0;background:transparent}
.opc-fms-hint{display:block;margin:4px 0 0;font-size:15px;line-height:1.45;color:var(--f-muted)}
.opc-fms-readout{margin-top:12px;padding:10px 12px;border-radius:12px;background:var(--f-navy);color:#fff;font-size:16px;font-weight:700;line-height:1.4}
.opc-fms-readout[data-kind=same]{background:#e8f0fb;color:var(--f-muted);font-weight:600}
.opc-fms-reset{margin-top:8px;min-height:44px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:var(--f-blue2);font-weight:700;font-size:15px;text-decoration:underline;text-underline-offset:3px}
.opc-fms-reset:disabled{color:#475569;text-decoration:none;opacity:.8}

/* ---------- download ---------- */
.opc-fms-export{display:grid;grid-template-columns:minmax(0,1fr);gap:8px 14px;align-items:center;margin-top:12px;padding:12px;border:1px solid var(--f-line);border-radius:16px;background:#fff}
.opc-fms-dl{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;padding:0 18px;border:0;border-radius:12px;background:var(--f-blue);color:#fff;font-weight:800;font-size:17.5px}
.opc-fms-dl:hover,.opc-fms-dl:focus{background:var(--f-blue2);color:#fff}
.opc-fms-dl:disabled{background:#cbd5e1;color:#334155}
.opc-fms-dl svg{width:22px;height:22px}
.opc-fms-dlinfo{font-size:15px;color:var(--f-text);overflow-wrap:anywhere}
.opc-fms-dlinfo b{color:var(--f-navy)}
.opc-fms-savewrap{margin-top:4px}
.opc-fms-save{display:inline-flex;align-items:center;min-height:44px;font-weight:700;color:var(--f-blue2);overflow-wrap:anywhere}

/* ---------- more options (collapsed) ---------- */
.opc-fms-more{margin-top:12px;border:1px solid var(--f-line);border-radius:16px;background:#fff}
.opc-fms-more summary{display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px;min-height:52px;padding:8px 16px;cursor:pointer;font-size:17px;font-weight:800;color:var(--f-navy);list-style:none}
.opc-fms-more summary::-webkit-details-marker{display:none}
.opc-fms-more summary::before{content:"+";display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--f-light);color:var(--f-blue2);font-weight:800}
.opc-fms-more[open] summary::before{content:"−"}
.opc-fms-more summary span{font-size:15px;font-weight:600;color:var(--f-muted)}
.opc-fms-more summary:hover{background:var(--f-light);border-radius:16px}
.opc-fms-moregrid{display:grid;grid-template-columns:minmax(0,1fr);gap:4px 20px;padding:0 16px 16px}
.opc-fms-label{display:block;font-size:15px;font-weight:700;color:var(--f-navy);margin:10px 0 4px}
.opc-fms-range{display:block;margin:0}
.opc-fms-range output{font-weight:800;color:var(--f-blue2)}

@media (min-width:600px){
	.opc-fms-inputs{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
	.opc-fms-presets{grid-template-columns:repeat(4,minmax(0,1fr))}
	.opc-fms-export{grid-template-columns:minmax(220px,300px) minmax(0,1fr)}
	.opc-fms-moregrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:900px){
	.opc-fms-title{font-size:28px}
	.opc-fms-lab{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start;gap:14px}
	.opc-fms-scope,.opc-fms-controls{padding:16px}
	.opc-fms-env{height:230px}
	.opc-fms-presets{grid-template-columns:repeat(2,minmax(0,1fr))}
	.opc-fms-moregrid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){.opc-fms *{transition:none!important;animation:none!important}}
