/* Wspólne stanowisko odsłuchu: przebiegi i jeden miernik stereo. */
.af-risk-panel { display:flex; align-items:center; gap:12px; min-width:0; margin:0 0 14px; --risk-ink:#a9f4cb; }
.af-risk-panel[data-risk-state="caution"] { --risk-ink:#ffe19a; }
.af-risk-panel[data-risk-state="danger"] { --risk-ink:#ffaaa4; }
.af-risk-panel[data-risk-state="unknown"] { --risk-ink:#9ba8b3; }
.af-risk-oled { display:flex; align-items:center; min-width:0; flex:1; height:38px; border:1px solid #34424a; border-radius:5px; background:linear-gradient(180deg,#030807,#0a1511); box-shadow:inset 0 2px 9px #000,0 1px 0 #ffffff0b; color:var(--risk-ink); font:12px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; text-shadow:0 0 7px color-mix(in srgb,var(--risk-ink) 35%,transparent); overflow:hidden; }
.af-risk-source { flex:none; white-space:nowrap; padding:0 12px; font-size:10px; font-weight:700; letter-spacing:.045em; border-right:1px solid #34413a; }
.af-risk-scroll { flex:1; min-width:0; overflow:hidden; mask-image:linear-gradient(90deg,transparent,#000 12px,#000 calc(100% - 12px),transparent); }
.af-risk-scroll-track { display:inline-flex; white-space:nowrap; width:max-content; animation:af-risk-marquee 28s linear infinite; }
.af-risk-scroll-track > span { flex:none; padding:0 48px 0 16px; }
.af-risk-panel:hover .af-risk-scroll-track,.af-risk-panel:focus .af-risk-scroll-track { animation-play-state:paused; }
.af-risk-panel:focus-visible { outline:2px solid #ffb36b; outline-offset:4px; border-radius:5px; }
.af-risk-leds { display:flex; flex:none; align-items:center; gap:3px; padding:9px 7px; background:#080b0e; border:1px solid #343c45; border-radius:4px; }
.af-risk-led { display:block; width:8px; height:16px; border-radius:1px; background:var(--led-color); opacity:.13; box-shadow:inset 0 0 0 1px #ffffff25; }
.af-risk-led-green { --led-color:#54e69a; }.af-risk-led-yellow { --led-color:#ffd34f; }.af-risk-led-red { --led-color:#ff6257; }
.af-risk-led.is-on { opacity:1; box-shadow:0 0 6px color-mix(in srgb,var(--led-color) 55%,transparent),inset 0 1px 0 #ffffff80; }
.af-risk-announcement { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@keyframes af-risk-marquee { to { transform:translateX(-50%); } }
@media (prefers-reduced-motion:reduce) { .af-risk-scroll-track { animation:none; }.af-risk-scroll { overflow-x:auto; mask-image:none; }.af-risk-scroll-track > span + span { display:none; } }
@media(max-width:600px) { .af-risk-panel { gap:6px; }.af-risk-source { padding:0 7px; font-size:8px; }.af-risk-oled { font-size:11px; }.af-risk-leds { gap:2px; padding:9px 4px; }.af-risk-led { width:5px; height:14px; } }
.af-studio { --studio-surface:#191d23; --studio-border:#39414d; --studio-text:#edf0f4; --studio-muted:#aab3c0; color:var(--studio-text); }
body .af-studio.audio-fix-compare-card { padding:24px; background:#101216; border:1px solid var(--studio-border); border-radius:12px; }
.af-studio-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; line-height:1.3; }
.af-studio-eyebrow { display:block; color:#ffb36b; font-size:10px; font-weight:700; letter-spacing:.16em; }
body .af-studio h4 { margin:5px 0 0; color:var(--studio-text); font-size:23px; letter-spacing:-.025em; }
.af-studio-monitor-label { color:var(--studio-muted); font-size:10px; letter-spacing:.08em; text-align:right; }
.af-studio-main { display:grid; grid-template-columns:minmax(0,1fr) 142px; gap:18px; align-items:stretch; }
body .af-studio .audio-fix-compare-timeline { margin:0; padding:0; min-width:0; border:0; background:transparent; box-shadow:none; overflow:hidden; }
body .af-studio .audio-fix-timeline-label { padding:0 0 12px; background:none; border:0; color:var(--studio-muted); font-size:11px; letter-spacing:0; }
body .af-studio .audio-fix-timeline-label span:last-child { display:none; }
body .af-studio .audio-fix-wave-lanes { display:grid; gap:10px; padding:0; background:none; }
body .af-studio .audio-fix-wave-lane { min-width:0; border:1px solid var(--studio-border); border-left:3px solid #68798b; border-radius:7px; background:var(--studio-surface); box-shadow:none; overflow:hidden; }
body .af-studio .audio-fix-wave-lane-b { border-left-color:#ffb36b; }
body .af-studio .af-wave-lane-c { border-left-color:#72cdbb; }
body .af-studio .audio-fix-wave-lane.is-listening { border-color:#8d9aa9; background:#202630; }
body .af-studio .audio-fix-wave-lane-b.is-listening { border-color:#d79a61; }
body .af-studio .audio-fix-wave-lane-head { min-height:38px; padding:0 12px; border:0; background:transparent; letter-spacing:.025em; }
body .af-studio .audio-fix-wave-lane-head > span { padding:0; border:0; background:none; color:var(--studio-muted); font-size:10px; }
body .af-studio .audio-fix-wave-lane-head b { color:var(--studio-text); font-weight:500; }
.af-lane-select { display:flex; align-items:center; gap:9px; min-height:38px; padding:0; border:0; background:transparent; color:var(--studio-text); font-size:11px; font-weight:650; letter-spacing:.065em; cursor:pointer; }
.af-lane-select em,.af-wave-lane-c em { font-style:normal; color:#aab8c9; font-size:11px; }
.audio-fix-wave-lane-b .af-lane-select em { color:#ffb36b; }
.af-wave-lane-c em { color:#72cdbb; }
.af-lane-playing { display:none; color:var(--studio-muted); font-size:10px; font-weight:400; letter-spacing:0; }
.is-listening .af-lane-playing { display:inline; }
.af-studio button:focus-visible,.af-studio input:focus-visible { outline:2px solid #ffb36b; outline-offset:3px; }
body .af-studio .audio-fix-wave-lane .audio-fix-waveform-wrap { height:116px; min-height:0; margin:0; background:#14181e; border:0; border-radius:0; }
body .af-studio .audio-fix-waveform-wrap::before { display:none; }
body .af-studio .audio-fix-wave-lane .audio-fix-compare-playhead { width:1px; background:#edf0f4; box-shadow:none; }
body .af-studio .af-wave-lane-c .audio-fix-wave-lane-head strong { font-size:11px; }
.af-custom-empty { display:flex; height:116px; flex-direction:column; justify-content:center; align-items:center; gap:5px; color:#aab3c0; font-size:12px; background:repeating-linear-gradient(90deg,transparent 0,transparent calc(25% - 1px),#ffffff05 calc(25% - 1px),#ffffff05 25%); }
.af-custom-empty small { color:#8995a5; font-size:11px; }
body .af-studio .audio-fix-player-controls { grid-template-columns:62px minmax(0,1fr); grid-template-rows:58px; grid-template-areas:"play switch"; align-items:center; margin-top:18px; padding:12px; border:1px solid var(--studio-border); border-radius:7px; background:var(--studio-surface); box-shadow:none; }
body .af-studio .audio-fix-player-controls .ab-switch-container { min-width:0; width:100%; }
body .af-studio .audio-fix-player-controls .af-play-orb { position:relative; display:block; justify-self:center; width:56px; min-width:56px; height:56px; min-height:56px; padding:0; overflow:hidden; border:1px solid #ffd29a!important; border-radius:50%!important; background:radial-gradient(circle at 28% 21%, #fff3d6 0%, #ffc785 13%, #ff9c48 40%, #d86a18 75%, #873508 100%)!important; box-shadow:inset 0 1px 5px #fff9, inset 0 -4px 7px #67230070, 0 4px 12px #0008, 0 0 13px #ff9e4238!important; transform:none!important; cursor:pointer; }
body .af-studio .audio-fix-player-controls .af-play-orb::before { content:''; position:absolute; inset:3px 5px 48% 5px; border-radius:50% 50% 46% 46%; background:linear-gradient(180deg,#ffffff7a,#ffffff00); pointer-events:none; }
body .af-studio .audio-fix-player-controls .af-play-orb::after { content:''; position:absolute; top:17px; left:22px; width:21px; height:22px; background:#fff4e5; clip-path:polygon(0 0,100% 50%,0 100%); filter:drop-shadow(0 1px 2px #57240099); pointer-events:none; }
body .af-studio .audio-fix-player-controls .af-play-orb[data-state="pause"]::after { left:19px; width:18px; background:linear-gradient(90deg,#fff4e5 0 34%,transparent 34% 66%,#fff4e5 66%); clip-path:none; }
body .af-studio .audio-fix-player-controls .af-play-orb:disabled { opacity:.55; cursor:not-allowed; }
body .af-studio .audio-fix-player-controls .af-play-orb:not(:disabled):hover { filter:brightness(1.12); }
body .af-studio .audio-fix-player-controls .ab-switch-btns { grid-template-columns:repeat(3,minmax(0,1fr)); height:48px; padding:3px; gap:3px; border:1px solid var(--studio-border); border-radius:5px; background:#101216; box-shadow:none; }
body .af-studio .audio-fix-player-controls .ab-switch-btns::before { display:none; }
body .af-studio .audio-fix-player-controls .sw-btn { height:40px; border-radius:3px; background:transparent!important; box-shadow:none!important; color:var(--studio-muted)!important; font-size:11px; font-weight:600; text-shadow:none; }
body .af-studio .audio-fix-player-controls .sw-btn .btn-txt { font-size:inherit; letter-spacing:.04em; }
body .af-studio .audio-fix-player-controls .sw-btn.active { background:#303844!important; color:#fff!important; box-shadow:none; }
body .af-studio .audio-fix-player-controls .sw-btn-b.active { background:#4a3423!important; color:#ffd1a5!important; }
body .af-studio .audio-fix-player-controls .sw-btn-c.active { background:#21433a!important; color:#b4f0df!important; }
body .af-studio .audio-fix-player-controls .sw-btn:disabled { opacity:.38; cursor:not-allowed; }
body .af-studio .audio-fix-player-controls .gain-display,body .af-studio .ab-led-row { display:none; }
body .af-studio .audio-fix-norm-panel { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:12px 0 0; border:0; background:transparent; box-shadow:none; }
body .af-studio .audio-fix-norm-panel .btn-norm { min-height:36px; padding:7px 10px; border:1px solid #39414d; border-radius:4px; background:#1e242d; color:#c4cdd8; box-shadow:none; font-size:12px!important; font-weight:500; }
body .af-studio .audio-fix-norm-panel .btn-norm.active { border-color:#a8794c; background:#3b2c20; color:#ffd1a5; box-shadow:none; }
body .af-studio .norm-label { color:#aab3c0; font-size:10px; font-weight:500; letter-spacing:.04em; }
.af-output-meter { display:flex; flex-direction:column; align-items:stretch; padding:14px 12px 10px; border:1px solid var(--studio-border); border-radius:7px; background:#14181e; }
.af-meter-title { display:flex; justify-content:space-between; color:#edf0f4; font-size:10px; font-weight:700; letter-spacing:.12em; }
.af-meter-title span { color:#aab3c0; font-weight:400; letter-spacing:.03em; }
.af-meter-subtitle { margin:6px 0 14px; color:#aab3c0; font-size:8px; letter-spacing:.05em; }
.af-meter-clip-row,.af-meter-channel-labels,.af-meter-readouts { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin-right:26px; text-align:center; }
.af-meter-clip-row { margin-bottom:5px; }
.af-meter-clip-row span { border:1px solid #6d3436; border-radius:2px; color:#ca9195; background:#29191c; font-size:7px; line-height:12px; letter-spacing:.08em; }
.af-meter-clip-row .is-clipped { background:#ff525d; color:#160507; border-color:#ff858d; }
.af-meter-body { display:grid; grid-template-columns:1fr 1fr 21px; gap:5px; flex:1; min-height:206px; }
.af-meter-column { display:flex; flex-direction:column-reverse; gap:2px; padding:3px; border:1px solid #303640; background:#090c10; border-radius:2px; }
.af-meter-led { display:block; flex:1; min-height:3px; border-radius:1px; background:#14291f; }
.af-meter-led-amber { background:#342713; }.af-meter-led-red { background:#35191e; }
.af-meter-led-green.is-lit { background:#55d890; }.af-meter-led-amber.is-lit { background:#ffb047; }.af-meter-led-red.is-lit { background:#ff5963; }
.af-meter-led.is-peak { background:#e6f2ed; }
.af-meter-scale { position:relative; color:#aab3c0; font:9px/1 ui-monospace,monospace; }
.af-meter-scale span { position:absolute; left:0; transform:translateY(-50%); }
.af-meter-scale span:nth-child(1) { top:3px; transform:none; }.af-meter-scale span:nth-child(2){top:10%}.af-meter-scale span:nth-child(3){top:20%}.af-meter-scale span:nth-child(4){top:40%}.af-meter-scale span:nth-child(5){top:60%}.af-meter-scale span:nth-child(6){top:80%}.af-meter-scale span:nth-child(7){bottom:3px;transform:none}
.af-meter-channel-labels { margin-top:7px; color:#aab3c0; font-size:10px; }
.af-meter-readouts { margin-top:5px; color:#edf0f4; font:11px/1.4 ui-monospace,monospace; font-variant-numeric:tabular-nums; }
.af-meter-hold-label { margin:5px 26px 0 0; color:#aab3c0; font:7px/1.3 ui-monospace,monospace; text-align:center; letter-spacing:.06em; }
.af-studio .af-meter-reset { min-height:30px; margin-top:8px; padding:5px 2px; border:1px solid #39414d; border-radius:4px; color:#c4cdd8; background:#1f252e; font-family:inherit; font-size:8px; line-height:1.3; letter-spacing:.04em; cursor:pointer; }
.af-meter-status { margin-top:6px; color:#aab3c0; font-size:9px; text-align:center; }
.af-studio .af-lane-select:disabled { opacity:.55; cursor:default; }
.af-custom-base { padding: 8px 12px 12px; display: grid; gap: 7px; }
.af-custom-base > span { color: #b8c3d0; font-size: 10px; letter-spacing: .06em; }
.af-custom-base-options { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid #394450; border-radius: 9px; background: #10151c; }
.af-studio .af-custom-base-options button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 6px 10px; border: 1px solid transparent; border-radius: 6px; color: #aab7c7; background: transparent; font: inherit; font-size: 11px; cursor: pointer; transition: background .15s, color .15s; }
.af-studio .af-custom-base-options button em { font: 700 10px/1 ui-monospace, monospace; opacity: .7; }
.af-studio .af-custom-base-options button[aria-pressed="true"] { background: #203d37; border-color: #47796c; color: #b9f2df; box-shadow: 0 1px 4px #0005; }
.af-studio .af-custom-base-options button:focus-visible { outline: 2px solid #9be4cd; outline-offset: 2px; }
.af-studio .af-custom-base-options button:disabled { opacity: .4; cursor: not-allowed; }
.af-custom-base small { color: #8f9ead; font-size: 10px; line-height: 1.45; }
.af-custom-enable { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:40px; padding:5px 12px; border-top:1px solid #39414d; color:#aab3c0; font-size:11px; cursor:pointer; }
.af-custom-enable input { position:absolute; opacity:0; width:1px; height:1px; }
.af-custom-toggle { position:relative; width:64px; padding:5px 8px 5px 26px; border:1px solid #495261; border-radius:5px; color:#aab3c0; background:#101216; text-align:center; font:10px/1.3 ui-monospace,monospace; }
.af-custom-toggle::before { content:''; position:absolute; width:9px; height:9px; border-radius:50%; background:#647081; left:9px; top:7px; }
.af-custom-enable input:checked + .af-custom-toggle { color:#b2eadc; border-color:#56bca4; background:#17342c; }
.af-custom-enable input:checked + .af-custom-toggle::before { background:#72cdbb; box-shadow:0 0 7px #72cdbb50; }
.af-custom-enable input:focus-visible + .af-custom-toggle { outline:2px solid #ffb36b; outline-offset:3px; }
.af-preset-bar { display:flex; align-items:center; gap:8px; margin:12px 0; min-width:0; flex-wrap:wrap; font-size:12px; color:#bac7cf; }
.af-preset-bar label { font-weight:650; white-space:nowrap; }
.af-preset-bar select { flex:0 1 230px; min-width:120px; max-width:100%; padding:7px 28px 7px 9px; border:1px solid #46534d; border-radius:5px; background:#101a17; color:#d6f7ed; font:inherit; }
.af-preset-bar button { padding:8px 12px; border:1px solid #46534d; border-radius:5px; background:#20332b; color:#d6f7ed; font:inherit; cursor:pointer; }
.af-preset-bar button:disabled { opacity:.5; cursor:wait; }
.af-preset-bar small { color:#ffbd7b; white-space:nowrap; }
.af-preset-bar [data-preset-notice] { margin-left:auto; font-size:10px; color:#a0aea7; }
.af-preset-bar [hidden],.af-preset-dialog [hidden] { display:none!important; }
.af-preset-dialog { box-sizing:border-box; }
.af-preset-dialog label { display:block; margin-top:20px; color:#e3eee9; }
.af-preset-dialog input { display:block; width:100%; box-sizing:border-box; margin-top:8px; padding:10px; border:1px solid #6a7c72; border-radius:5px; background:#0e1215; color:#fff; font:inherit; }
.af-preset-dialog [data-preset-message] { color:#ffbd7b; font-size:12px; line-height:1.5; }
.af-preset-dialog [data-preset-message]:empty { display:none; }
.af-preset-bar :focus-visible,.af-preset-dialog :focus-visible { outline:2px solid #ffb36b; outline-offset:3px; }
@media(max-width:600px) { .af-preset-bar {gap:6px;} .af-preset-bar select {flex:1 1 170px;} .af-preset-bar [data-preset-notice] {flex-basis:100%;margin-left:0;} }
.af-trial-status { display:flex; align-items:center; gap:12px; margin:8px 0; color:#acbcb3; font-size:11px; }
.af-trial-status button { padding:6px 10px; border:1px solid #526c5f; border-radius:5px; background:#20332b; color:#d6f7ed; cursor:pointer; }
.af-trial-status [hidden],.af-trial-dialog [hidden] { display:none!important; }
.af-trial-dialog.guest-login-dialog,.af-preset-dialog.guest-login-dialog { position:fixed; inset:0; margin:auto; width:min(620px,calc(100vw - 32px)); height:fit-content; max-height:calc(100dvh - 32px); overflow:auto; }
.af-trial-dialog::backdrop,.af-preset-dialog::backdrop { background:rgba(2,6,14,.78); -webkit-backdrop-filter:blur(7px); backdrop-filter:blur(7px); }
.af-trial-dialog h4,.af-preset-dialog h4 { margin:0; color:#fff; font-size:clamp(1.35rem,3vw,1.9rem); font-weight:750; line-height:1.15; letter-spacing:-.02em; }
.af-trial-dialog .guest-login-desc { margin:20px 0 0; }
.af-trial-dialog .guest-login-actions .btn,.af-preset-dialog .guest-login-actions .btn { white-space:normal; line-height:1.4; }
.af-reference-controls { font-size:11px; color:#aab9b0; }
.af-reference-actions button { cursor:pointer; }
.af-reference-actions button:disabled { opacity:.5; }
.af-studio .af-reference-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 14px; margin:0; padding:16px; border:1px solid #b5793b; border-radius:8px; background:linear-gradient(120deg,#34241988,#171d22); scroll-margin-top:90px; }
.af-reference-intro { min-width:0; }
.af-reference-intro h5 { margin:0 0 5px; color:#ffe0ba; font-size:15px; }
.af-reference-intro p { margin:0; color:#bbc4cf; font-size:12px; line-height:1.5; }
.af-reference-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.af-studio .af-reference-actions button { min-height:44px; padding:10px 14px; border:1px solid #b97b3d; border-radius:6px; color:#ffe0ba; background:#52351e; font:600 12px/1.4 var(--font-sans, sans-serif); }
.af-studio .af-reference-actions [data-reference-remove] { background:transparent; border-color:#5e6064; color:#bbc4cf; }
.af-reference-controls > [data-reference-status],.af-reference-controls > .af-wave-lane-d { grid-column:1 / -1; min-width:0; }
.af-reference-controls > [data-reference-status]:empty { display:none; }
.af-studio.has-reference .af-reference-actions { grid-column:1 / -1; }
@media(max-width:640px) {
    .af-studio .af-reference-controls { grid-template-columns:minmax(0,1fr); padding:12px; }
    .af-reference-actions { width:100%; }
    .af-reference-actions [data-reference-add] { flex:1; }
}
.af-studio [hidden] { display:none!important; }
body .af-studio.has-reference .ab-switch-btns { grid-template-columns:repeat(4,minmax(0,1fr)); }
.af-wave-lane-d [data-reference-name] { max-width:60%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.af-match-toggle { display:flex; align-items:center; gap:8px; width:fit-content; margin:12px 0; color:#c4d4ca; font-size:12px; cursor:pointer; }
.af-match-toggle input { accent-color:#77c8a7; width:17px; height:17px; }
body .af-studio .af-export-bar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:14px 0 8px; padding:12px 0; border:0; border-top:1px solid #39414d; border-radius:0; background:none; font-size:12px; }
.af-export-bar select { max-width:100%; padding:8px; border:1px solid #52665b; border-radius:5px; background:#111a16; color:#e0efe6; font:inherit; }
body .af-studio .af-export-bar .audio-fix-download-fixed { width:auto; max-width:100%; white-space:normal; min-height:36px; padding:8px 13px; border-radius:5px; box-shadow:none; font-size:12px; font-weight:650; animation:none; }
@media(max-width:600px) { body .af-studio.has-reference .ab-switch-btns .btn-txt {font-size:9px;letter-spacing:0;} }
.af-export-bar [data-export-status] { flex-basis:100%; font-size:11px; color:#aebeb4; }
.af-export-plan { margin-left:auto; color:#b8ccb9; font-size:11px; }
.af-processing-details { margin:10px 0; color:#adbcb3; font-size:11px; }
.af-processing-details summary { cursor:pointer; }.af-processing-details p {line-height:1.5;}
.af-custom-panel { margin-top:24px; padding:22px; border:1px solid #3d5d56; border-radius:8px; background:#151b20; }
.af-custom-panel[hidden],.af-knob-control[hidden] { display:none!important; }
.af-custom-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.af-custom-heading h5 { margin:4px 0 0; color:#edf0f4; font-size:20px; }
.af-custom-tabs { display:flex; gap:3px; padding:3px; border:1px solid #39414d; border-radius:5px; background:#101216; }
.af-custom-tabs button,.af-custom-actions > button { padding:9px 14px; border:0; border-radius:3px; background:transparent; color:#aab3c0; font-family:inherit; font-size:12px; cursor:pointer; }
.af-custom-tabs button[aria-selected="true"] { color:#d6f7ed; background:#28433b; }
.af-custom-intro,.af-custom-export-note { color:#aab3c0; font-size:12px; line-height:1.6; }
.af-custom-export-note { margin:14px 0 0; font-size:11px; }
.af-custom-knobs { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:18px 10px; margin:22px 0; }
.af-knob-control { --knob-angle:0deg; --knob-sweep:135deg; text-align:center; min-width:0; }
.af-knob-control > label { color:#d5dce4; font-size:12px; font-weight:600; }
.af-knob-dial { position:relative; width:82px; height:82px; margin:12px auto 8px; }
.af-knob-arc { position:absolute; inset:0; border-radius:50%; background:conic-gradient(from 225deg,#72cdbb 0deg var(--knob-sweep),#38444d var(--knob-sweep) 270deg,transparent 270deg); mask:radial-gradient(transparent 64%,#000 66% 70%,transparent 72%); }
.af-knob-face { position:absolute; inset:9px; border:1px solid #4a5561; border-radius:50%; background:radial-gradient(circle at 35% 25%,#3d4650,#222b34 65%,#151c23); box-shadow:inset 0 1px 1px #ffffff20,0 4px 8px #0007; transform:rotate(var(--knob-angle)); }
.af-knob-face i { position:absolute; top:7px; left:calc(50% - 1px); width:2px; height:13px; border-radius:2px; background:#edf0f4; }
.af-knob-dial input { position:absolute; inset:0; margin:0; width:100%; height:100%; opacity:0; cursor:ns-resize; touch-action:none; }
.af-knob-dial:focus-within { outline:2px solid #ffb36b; outline-offset:4px; border-radius:50%; }
.af-knob-value { display:flex; justify-content:center; align-items:center; gap:4px; color:#aab3c0; font:10px/1.4 ui-monospace,monospace; }
.af-knob-value input { width:52px; min-width:0; padding:5px 3px; border:1px solid #39414d; border-radius:4px; color:#e3f8f1; background:#101216; font:12px/1.3 ui-monospace,monospace; text-align:center; appearance:textfield; -moz-appearance:textfield; }
.af-knob-value input::-webkit-inner-spin-button { appearance:none; }
.af-knob-control > small { display:block; margin-top:6px; color:#81909f; font-size:9px; }
.af-custom-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; border-top:1px solid #39414d; padding-top:16px; }
.af-custom-actions .af-remaster-button { color:#15120e; background:#ffad60; font-weight:750; letter-spacing:.08em; padding:12px 22px; }
.af-custom-progress { display:inline-flex; align-items:baseline; gap:5px; min-width:74px; padding:7px 9px; border:1px solid #77563b; border-radius:4px; background:#271e18; color:#ffd0a1; font:600 13px/1.2 ui-monospace,monospace; font-variant-numeric:tabular-nums; }
.af-custom-progress[hidden] { display:none; }
.af-custom-progress small { color:#bb9474; font-size:9px; letter-spacing:.03em; }
.af-custom-progress b { font-weight:650; }
.af-custom-actions button:disabled { opacity:.5; cursor:wait; }
#af-custom-status { flex:1 1 240px; margin:0; color:#bac7cf; font-size:12px; line-height:1.6; }
@media(max-width:900px) { .af-custom-knobs {grid-template-columns:repeat(3,minmax(0,1fr));} }
@media(max-width:640px) {
    body .af-studio.audio-fix-compare-card { padding:12px; }
    .af-studio-heading { margin-bottom:14px; }.af-studio-monitor-label { display:none; }body .af-studio h4 {font-size:20px;}
    .af-studio-main { grid-template-columns:minmax(0,1fr) 78px; gap:8px; }
    body .af-studio .audio-fix-wave-lane-head { padding:0 7px; flex-wrap:wrap; gap:0; }
    .af-lane-select { min-height:33px; font-size:10px; gap:5px; }.af-lane-playing { display:none!important; }
    body .af-studio .audio-fix-wave-lane-head > span { font-size:9px; margin-bottom:5px; }
    body .af-studio .audio-fix-wave-lane .audio-fix-waveform-wrap { height:96px; }
    .af-custom-empty { height:96px; padding:0 7px; text-align:center; font-size:10px; }.af-custom-empty small {font-size:9px;}
    .af-output-meter { padding:10px 5px 8px; }.af-meter-title {font-size:8px;letter-spacing:0;}.af-meter-title span {display:none;}.af-meter-subtitle {font-size:7px;line-height:1.5;}
    .af-meter-body {grid-template-columns:1fr 1fr 18px;gap:2px;}.af-meter-column{padding:2px;gap:2px;}.af-meter-scale{font-size:8px;}
    .af-meter-clip-row,.af-meter-channel-labels,.af-meter-readouts {margin-right:20px;gap:2px;}.af-meter-readouts {font-size:8px;}.af-studio .af-meter-reset {font-size:7px;letter-spacing:0;}
    .af-meter-hold-label {margin-right:20px;font-size:6px;letter-spacing:0;}
    body .af-studio .audio-fix-norm-panel .btn-norm {font-size:11px!important;}
    body .af-studio .audio-fix-player-controls {grid-template-columns:58px minmax(0,1fr);padding:8px;gap:8px;}.af-studio .soni-listening-meta { flex-wrap:wrap; }
    body .af-studio .audio-fix-player-controls .sw-btn {font-size:9px;letter-spacing:0;}
    .af-custom-enable {padding:5px 7px;font-size:10px;gap:5px;}.af-custom-toggle{width:55px;padding-left:20px;}
    .af-custom-panel{padding:14px 8px;}.af-custom-heading{align-items:flex-start;flex-direction:column;}.af-custom-heading h5{font-size:18px;}
    .af-knob-dial{width:64px;height:64px;}.af-knob-face{inset:8px;}.af-knob-face i{height:10px;top:5px;}
    .af-knob-control>label{font-size:10px;}.af-knob-value{gap:2px;font-size:8px;}.af-knob-value input{width:40px;font-size:10px;}
}

@media(max-width:640px) {
    .af-studio-main { grid-template-columns:minmax(0,1fr); gap:12px; }
    body .af-studio .audio-fix-player-controls { grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto; grid-template-areas:"play" "switch"; gap:10px; }
    body .af-studio .audio-fix-player-controls .ab-switch-btns,
    body .af-studio.has-reference .audio-fix-player-controls .ab-switch-btns { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:minmax(44px,auto); height:auto; gap:4px; }
    body .af-studio .audio-fix-player-controls .sw-btn { height:44px; min-width:0; padding:5px; }
    body .af-studio .audio-fix-player-controls .sw-btn .btn-txt { font-size:11px; letter-spacing:0; }
    .af-preset-bar button { min-height:40px; }
    .af-reference-actions button { min-height:44px; }
    .af-match-toggle { min-height:44px; }
    body .af-studio .af-export-bar .audio-fix-download-fixed { min-height:44px; }
    .af-custom-tabs button,.af-custom-actions > button { min-height:44px; }
    .af-knob-value input { min-height:36px; font-size:12px; }

    .af-output-meter { display:grid; grid-template-columns:minmax(0,1fr) minmax(90px,auto); grid-template-areas:"title subtitle" "clip clip" "bars bars" "peaks reset" "hold status"; gap:4px 10px; padding:10px; }
    .af-meter-title { grid-area:title; font-size:9px; }
    .af-meter-subtitle { grid-area:subtitle; margin:0; font-size:8px; text-align:right; }
    .af-meter-clip-row { grid-area:clip; margin:0; }
    .af-meter-clip-row span:first-child::before { content:'L · '; }
    .af-meter-clip-row span:last-child::before { content:'R · '; }
    .af-meter-body { grid-area:bars; grid-template-columns:minmax(0,1fr); grid-template-rows:12px 12px 14px; gap:4px; min-height:0; flex:none; padding-left:14px; }
    .af-meter-column { position:relative; flex-direction:row; gap:1px; min-width:0; padding:2px; }
    .af-meter-column::before { position:absolute; left:-14px; top:50%; transform:translateY(-50%); color:#aab3c0; font:9px/1 ui-monospace,monospace; }
    .af-meter-column[data-meter-channel="l"]::before { content:'L'; }
    .af-meter-column[data-meter-channel="r"]::before { content:'R'; }
    .af-meter-scale { height:14px; font-size:8px; }
    .af-studio .af-meter-scale span { top:0; bottom:auto; transform:translateX(-50%); }
    .af-studio .af-meter-scale span:nth-child(1) { left:auto; right:0; transform:none; }
    .af-studio .af-meter-scale span:nth-child(2) { left:90%; }
    .af-studio .af-meter-scale span:nth-child(3) { left:80%; }
    .af-studio .af-meter-scale span:nth-child(4) { left:60%; }
    .af-studio .af-meter-scale span:nth-child(5) { left:40%; }
    .af-studio .af-meter-scale span:nth-child(6) { left:20%; }
    .af-studio .af-meter-scale span:nth-child(7) { left:0; transform:none; }
    .af-meter-channel-labels { display:none; }
    .af-meter-readouts { grid-area:peaks; align-self:center; margin:0; font-size:10px; }
    .af-meter-readouts span:first-child::before { content:'L '; color:#aab3c0; }
    .af-meter-readouts span:last-child::before { content:'R '; color:#aab3c0; }
    .af-meter-hold-label { grid-area:hold; margin:0; text-align:left; font-size:7px; }
    .af-studio .af-meter-reset { grid-area:reset; min-height:44px; margin:0; padding:6px; font-size:8px; }
    .af-meter-status { grid-area:status; margin:0; text-align:right; }
}
@media(max-width:380px) {
    .af-custom-knobs { grid-template-columns:repeat(2,minmax(0,1fr)); }
    body .af-studio .audio-fix-player-controls .sw-btn .btn-txt { font-size:10px; }
}
