.sound-dialog{width:min(900px,calc(100vw - 38px));max-height:calc(100dvh - 42px);padding:0;border:7px solid #d5b583;border-radius:17px;background:#fff9e9;color:#72583f;box-shadow:4px 6px 0 #927148,0 20px 70px #4b382b40;overflow:visible;font-family:var(--font);isolation:isolate}.sound-dialog[open]{display:flex;flex-direction:column}.sound-dialog::backdrop{background:#5a493f69;backdrop-filter:blur(4px)}.sound-tape{position:absolute;z-index:1;pointer-events:none;top:-14px;left:calc(50% - 49px);width:98px;height:24px;transform:rotate(-3deg);background:repeating-linear-gradient(45deg,#cad6b9bd 0 6px,#dce4ccbd 6px 12px);border-left:2px dashed #b1bf9899;border-right:2px dashed #b1bf9899}.sound-header{padding:25px 28px 17px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px dashed #d8c09c;background:linear-gradient(100deg,#fff9e9,#f5ead3);border-radius:10px 10px 0 0;flex-shrink:0}.sound-header h2{font:31px Uzura,var(--font);margin:8px 0 0;letter-spacing:.06em}.sound-header .eyebrow{font-size:8px}.sound-close{font-size:24px;line-height:1;flex-shrink:0;width:36px;height:36px}.sound-scroll{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d9c19b #f7eed9;padding:18px 28px 8px;min-height:0}.sound-intro{font-size:12px;line-height:1.85;margin:0 0 17px;color:#998060}.sound-mixers{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sound-mixer{background:#edf0df;border:1px solid #cbd4b8;border-radius:14px 10px 13px 8px;padding:14px 18px}.sound-mixer-sfx{background:#f5e4d8;border-color:#dfc1ab;transform:rotate(.4deg)}.sound-mixer>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.sound-mixer h3{font:24px Uzura,var(--font);margin:0}.sound-toggle{border:1px solid #9dac88;border-radius:11px;background:#c5d6ac;box-shadow:0 3px #a1b486;min-width:79px;min-height:36px;padding:5px 12px;font-size:12px}.sound-toggle.is-off{background:#eee5d5;box-shadow:0 3px #c9b99e;border-color:#d1bda0;color:#96836b}.sound-mixer label{display:flex;justify-content:space-between;font-size:11px;color:#917b5d;gap:10px}.sound-mixer output{color:#735b41;font-variant-numeric:tabular-nums}.sound-mixer input{width:100%;margin:7px 0 0;accent-color:#91a676;height:25px;cursor:pointer}.sound-mixer-sfx input{accent-color:#c99f81}.sound-status{min-height:1.7em;font-size:11px;line-height:1.7;margin:15px 1px 12px;color:#78885d;overflow-wrap:anywhere}.sound-library>header{padding-top:10px;border-top:1px dashed #d4bc97}.sound-library h3{font:25px Uzura,var(--font);margin:7px 0 10px}.sound-library>header>p{font-size:11px;line-height:1.85;color:#9b8364;margin:0}.sound-group-title{font-size:12px;margin:21px 0 11px;display:flex;align-items:center;gap:9px}.sound-group-title:after{content:'';height:1px;background:#e1d0ae;flex:1}.sound-slot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.sound-slot{padding:13px 12px 12px;background:#fcf4e2;border:1px solid #ddc9a7;border-radius:9px 12px 8px 10px;min-width:0;box-shadow:1px 3px #a98b5b11}.sound-slot.has-custom{background:#f2f2de;border-color:#c4cfad}.sound-slot-heading{display:flex;align-items:center;gap:7px;min-height:30px}.sound-slot-heading>span{display:grid;place-items:center;flex-shrink:0;width:26px;height:28px;color:#9c7b4f;background:#ebd2aa;border:1px solid #c9a776;border-radius:7px 9px 6px 8px;box-shadow:0 2px #c7a477;font-size:17px;transform:rotate(-5deg)}.sound-slot h5{font-size:11px;line-height:1.7;margin:0}.sound-current{font-size:10px;line-height:1.6;min-height:32px;margin:11px 0 9px;overflow-wrap:anywhere;color:#9c8465}.sound-slot-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.sound-slot-actions .mini-btn{font-size:10px;min-height:35px;padding:7px 8px;justify-content:center;flex:1 1 100%;white-space:nowrap}.sound-slot-actions .sound-preview{flex:1 1 65px;background:#eee6cf}.sound-slot-actions .text-btn{font-size:9px;min-height:35px;padding:4px 1px;flex:1 1 65px}.sound-local-note{font-size:10px;line-height:1.9;color:#9d886e;background:#f4ead4;border:1px dashed #d8c39e;border-radius:9px;padding:12px 14px;margin:24px 0 12px}.sound-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 28px 19px;border-top:1px dashed #d8c09c;flex-shrink:0;background:#faf1df;border-radius:0 0 10px 10px}.sound-footer>small{font-size:9px;color:#a28d70;line-height:1.7}.sound-footer .mini-btn{min-height:39px;font-size:11px;flex-shrink:0}.sound-settings-btn{display:inline-flex;gap:6px;align-items:center;justify-content:center;white-space:nowrap}
@media(max-width:700px){.sound-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 28px);border-width:5px;border-radius:12px;box-shadow:3px 4px 0 #927148,0 15px 40px #4b382b40}.sound-header{padding:20px 16px 12px}.sound-header h2{font-size:26px}.sound-header .eyebrow{font-size:7px}.sound-close{width:34px;height:34px}.sound-scroll{padding:15px 16px 7px}.sound-intro{font-size:11px}.sound-mixers{gap:10px}.sound-mixer{padding:12px 11px}.sound-mixer h3{font-size:21px}.sound-mixer>div{gap:5px;flex-wrap:wrap;margin-bottom:12px}.sound-toggle{min-width:64px;min-height:34px;font-size:11px}.sound-mixer label{font-size:10px}.sound-status{font-size:10px}.sound-library h3{font-size:23px}.sound-library>header>p{font-size:10px}.sound-group-title{font-size:11px}.sound-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sound-slot{padding:11px 9px}.sound-slot h5{font-size:10px}.sound-slot-heading{gap:6px}.sound-slot-heading>span{width:24px;height:26px}.sound-slot-actions{gap:5px}.sound-slot-actions .mini-btn{min-height:37px;font-size:9px;padding:7px 4px}.sound-slot-actions .text-btn{font-size:9px}.sound-current{font-size:9px;margin:9px 0;min-height:29px}.sound-local-note{padding:10px 11px;font-size:9px;margin-top:18px}.sound-footer{padding:12px 16px 15px;gap:10px}.sound-footer>small{font-size:8px;max-width:110px}.sound-footer .mini-btn{font-size:10px;padding:8px 11px;min-height:40px}}@media(max-height:520px){.sound-header{padding-top:13px;padding-bottom:9px}.sound-header h2{font-size:24px;margin-top:4px}.sound-header .eyebrow{display:none}.sound-footer{padding-top:10px;padding-bottom:10px}.sound-tape{height:19px;top:-11px}}
#soundBtn.sound-settings-btn{width:auto;min-width:91px;display:flex;gap:6px;align-items:center;justify-content:center;height:38px;padding:0 11px;border:1px solid #c6a67c;border-radius:10px 12px 9px 11px;background:linear-gradient(115deg,#f2e0bd,#e1c49d);box-shadow:0 3px #bea078;color:#806341;font-size:11px}#soundBtn.sound-settings-btn svg{width:18px;height:18px}#soundBtn.sound-settings-btn:hover{transform:translateY(-1px);background:#f3e3c6}@media(max-width:700px){#soundBtn.sound-settings-btn{min-width:73px;height:31px;padding:0 7px;font-size:9px;gap:4px}#soundBtn.sound-settings-btn svg{width:15px;height:15px}}@media(max-width:450px){#soundBtn.sound-settings-btn{min-width:31px;width:31px;padding:0}#soundBtn.sound-settings-btn>span{display:none}}@media(max-height:550px) and (min-width:701px){#soundBtn.sound-settings-btn{height:31px;min-width:78px;font-size:10px;padding:0 8px}}

.sound-playback{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px;padding:11px 13px;border:1px dashed #c1cca8;border-radius:10px;background:#f0f3df}.sound-playback-status{font-size:11px;line-height:1.7}.sound-playback .mini-btn{min-height:38px;white-space:nowrap;flex-shrink:0}@media(max-width:450px){.sound-playback{flex-wrap:wrap;gap:8px}.sound-playback-status{font-size:10px}.sound-playback .mini-btn{width:100%;justify-content:center}}
