/* MINUTKATRADING_SOUND_V3 */
#mtSoundButton{min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-weight:750;background:var(--surface,#161d29);color:var(--text,#f3f6fb);border:1px solid var(--border,#303a4a);padding:12px 10px}
#mtSoundButton.mt-sound-on{border-color:#2ea886;color:#43d2a7}
#mtSoundDialog{width:min(500px,calc(100vw - 24px));max-height:88dvh;overflow-y:auto;padding:18px;border-radius:16px;border:1px solid var(--border,#303a4a);background:var(--surface,#161d29);color:var(--text,#f3f6fb);box-shadow:0 18px 60px #0008}
#mtSoundDialog::backdrop{background:#04070abf}
#mtSoundDialog .mt-sound-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
#mtSoundDialog h2{font-size:18px;margin:0;font-weight:800}
#mtSoundDialog button{padding:8px 11px;border-radius:9px;cursor:pointer}
#mtSoundDialog .mt-sound-note{font-size:12px;line-height:1.55;color:var(--muted,#98a4b5);margin:10px 0}
#mtSoundDialog .mt-sound-section{margin:17px 0 8px;font-size:12px;font-weight:800;color:var(--muted,#98a4b5);letter-spacing:.02em}
#mtSoundDialog .mt-sound-option{display:flex;justify-content:space-between;align-items:center;gap:9px;min-width:0;min-height:40px;padding:8px 10px;border:1px solid var(--border,#303a4a);border-radius:10px;font-size:13px;font-weight:700;cursor:pointer}
#mtSoundDialog .mt-sound-main{margin-top:10px}
#mtSoundDialog .mt-sound-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#mtSoundDialog input[type=checkbox],#mtSoundDialog input[type=radio]{width:17px;height:17px;flex:0 0 auto;accent-color:#24b588;margin:0}
#mtSoundDialog select{min-width:0;width:100%;padding:9px 8px;border:1px solid var(--border,#303a4a);border-radius:8px;background:var(--surface,#161d29);color:var(--text,#f3f6fb);font:inherit;font-size:12px}
#mtSoundDialog .mt-sound-kind{display:grid;grid-template-columns:minmax(95px,1.05fr) minmax(0,1.65fr) 39px;gap:7px;margin-top:8px;align-items:center}
#mtSoundDialog .mt-sound-mode{display:grid;gap:9px;margin:9px 0}
#mtSoundDialog .mt-sound-mode label{display:flex;align-items:center;gap:9px;font-size:13px;cursor:pointer}
#mtSoundDialog .mt-sound-assets{border:1px solid var(--border,#303a4a);border-radius:10px;max-height:245px;overflow-y:auto;padding:10px}
#mtSoundDialog .mt-sound-asset-group{margin:11px 0 5px;font-size:11px;font-weight:800;letter-spacing:.08em;color:var(--muted,#98a4b5)}
#mtSoundDialog .mt-sound-asset-group:first-child{margin-top:0}
#mtSoundDialog .mt-sound-asset{border-bottom:1px solid var(--border,#303a4a);padding:8px 0}
#mtSoundDialog .mt-sound-asset:last-child{border:0}
#mtSoundDialog .mt-sound-asset-name{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700;cursor:pointer}
#mtSoundDialog .mt-sound-asset details{margin:5px 0 0 27px}
#mtSoundDialog .mt-sound-asset summary{font-size:11px;color:var(--muted,#98a4b5);cursor:pointer}
#mtSoundDialog .mt-sound-asset-sounds{padding:8px 0;display:grid;gap:8px}
#mtSoundDialog .mt-sound-asset-sounds label{display:grid;gap:4px;font-size:11px}
#mtSoundDialog .mt-sound-asset-sounds button{font-size:11px;justify-self:start}
#mtSoundDialog .mt-sound-volume{display:flex;align-items:center;gap:12px}
#mtSoundDialog input[type=range]{flex:1;min-width:0;accent-color:#24b588;padding:0;border:0}
#mtSoundDialog .mt-sound-volume output{font-size:12px;width:43px;text-align:right}
#mtSoundDialog .mt-sound-foot{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center;margin-top:17px}
#mtSoundDialog #mtSoundStatus{font-size:12px;color:var(--muted,#98a4b5);flex:1;min-width:130px}
#mtSoundDialog #mtSoundTest{font-size:12px;font-weight:700}
html[data-mt-theme=light] #mtSoundButton.mt-sound-on{color:#087a55;border-color:#2b9d7d}
@media(max-width:520px){#mtSoundButton{font-size:13px;padding:10px 8px}#mtSoundDialog{padding:14px}}

/* Original sounds library: compact category list with immediate previews. */
#mtSoundDialog .mt-sound-library{border:1px solid var(--border,#303a4a);border-radius:12px;max-height:min(42vh,340px);overflow-y:auto;overscroll-behavior:contain}
#mtSoundDialog .mt-sound-group{border-bottom:1px solid var(--border,#303a4a);padding:0 9px}
#mtSoundDialog .mt-sound-group:last-child{border-bottom:0}
#mtSoundDialog .mt-sound-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:43px;font-size:11px;font-weight:800;color:var(--muted,#98a4b5);letter-spacing:.06em}
#mtSoundDialog .mt-sound-group>summary::-webkit-details-marker{display:none}
#mtSoundDialog .mt-sound-group>summary span{font-size:11px;font-weight:500;padding:3px 7px;border-radius:7px;background:var(--surface2,#242c3a)}
#mtSoundDialog .mt-sound-library-row{display:grid;grid-template-columns:minmax(0,1fr) 36px 35px 35px;gap:5px;align-items:center;min-height:42px;padding:3px 0;border-top:1px solid color-mix(in srgb,var(--border,#303a4a),transparent 45%)}
#mtSoundDialog .mt-sound-library-row span{min-width:0;font-size:13px;line-height:1.25}
#mtSoundDialog .mt-sound-library-row button{padding:6px 2px;min-width:0;min-height:30px;border-radius:7px;background:var(--surface2,#242c3a);border:1px solid var(--border,#303a4a);color:inherit;font-size:12px;font-weight:700}
#mtSoundDialog .mt-sound-library-row button:hover{border-color:#2ea886}
#mtSoundDialog .mt-sound-library-row [data-kind=strong]{color:#48c6a7}
#mtSoundDialog .mt-sound-library-row [data-kind=single]{color:#a5c3ff}
#mtSoundDialog .mt-sound-assets .mt-sound-asset-sounds{grid-template-columns:1fr 1fr}
#mtSoundDialog .mt-sound-asset-sounds label{grid-column:1 / -1}
#mtSoundDialog .mt-sound-asset-sounds button{justify-self:stretch}
@media(max-width:400px){#mtSoundDialog .mt-sound-library-row{grid-template-columns:minmax(0,1fr) 32px 32px 32px}#mtSoundDialog .mt-sound-library-row button{font-size:11px}}
