/* Compact sound deck UI */
.sound_ui_modal_title{display:flex;align-items:center;gap:9px}
.sound_ui_modal_title>i{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:rgba(127,127,127,.12);font-size:13px}
.sound_ui_shell{padding-bottom:16px}
.sound_ui_hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;overflow:hidden;margin-bottom:14px;padding:14px;border:1px solid rgba(127,127,127,.17);border-radius:16px;background:linear-gradient(135deg,rgba(127,127,127,.11),rgba(127,127,127,.035));box-shadow:0 8px 26px rgba(0,0,0,.045)}
.sound_ui_hero:after{content:"";position:absolute;right:-36px;top:-52px;width:140px;height:140px;border-radius:50%;background:rgba(127,127,127,.075);pointer-events:none}
.sound_ui_hero_main{position:relative;z-index:1;display:flex;align-items:center;gap:12px;min-width:0}
.sound_ui_visual{display:flex;align-items:center;justify-content:center;gap:7px;width:72px;height:54px;min-width:72px;border-radius:15px;background:rgba(127,127,127,.12);font-size:19px}
.sound_ui_wave{display:flex;align-items:center;gap:2px;height:22px}
.sound_ui_wave b{display:block;width:3px;border-radius:99px;background:currentColor;opacity:.72;animation:soundUiWave 1.05s ease-in-out infinite}
.sound_ui_wave b:nth-child(1){height:7px;animation-delay:-.8s}.sound_ui_wave b:nth-child(2){height:15px;animation-delay:-.6s}.sound_ui_wave b:nth-child(3){height:21px;animation-delay:-.4s}.sound_ui_wave b:nth-child(4){height:13px;animation-delay:-.2s}.sound_ui_wave b:nth-child(5){height:8px}
@keyframes soundUiWave{0%,100%{transform:scaleY(.55);opacity:.48}50%{transform:scaleY(1);opacity:.88}}
.sound_ui_hero_copy{min-width:0}.sound_ui_hero_copy p{margin:0}.sound_ui_hero_copy .sub_text{margin-top:3px;line-height:1.4}
.sound_ui_hero_actions{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-end;gap:7px;min-width:max-content}
.sound_ui_summary{display:flex;align-items:baseline;gap:4px;font-size:11px;font-weight:700;opacity:.75}.sound_ui_summary #sound_ui_enabled_count{font-size:18px;line-height:1;font-weight:900;opacity:1}
.sound_ui_master_actions{display:flex;align-items:center;gap:6px}.sound_ui_master_btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:35px;padding:0 11px;border-radius:10px;font-size:11px;font-weight:800;white-space:nowrap}
.sound_ui_tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:12px;padding:4px;border-radius:13px;background:rgba(127,127,127,.09)}
.sound_ui_tab{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:inherit;font:inherit;font-size:12px;font-weight:800;cursor:pointer;opacity:.65;transition:background .18s ease,box-shadow .18s ease,opacity .18s ease,transform .18s ease}
.sound_ui_tab:hover{opacity:.9}.sound_ui_tab.is_active{background:rgba(255,255,255,.12);box-shadow:0 2px 10px rgba(0,0,0,.08);opacity:1}.sound_ui_tab:active{transform:scale(.985)}
.sound_ui_tab em{display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:rgba(127,127,127,.14);font-size:9px;font-style:normal}
.sound_ui_view{animation:soundUiViewIn .2s cubic-bezier(.2,.7,.25,1)}
@keyframes soundUiViewIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.custom_sound_pref_table{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.custom_sound_pref_row{position:relative;min-width:0;padding:12px;border:1px solid rgba(127,127,127,.16);border-radius:14px;background:rgba(127,127,127,.035);transition:border-color .2s ease,background .2s ease,transform .2s ease,box-shadow .2s ease}
.custom_sound_pref_row:hover{transform:translateY(-1px);border-color:rgba(127,127,127,.27);box-shadow:0 6px 18px rgba(0,0,0,.045)}
.custom_sound_pref_row.is_sound_off{opacity:.72;background:rgba(127,127,127,.022)}
.sound_ui_event_top{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:9px;min-width:0}
.custom_sound_pref_icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:rgba(127,127,127,.12);font-size:14px;transition:transform .2s ease,background .2s ease}
.is_sound_on .custom_sound_pref_icon{transform:scale(1.03);background:rgba(127,127,127,.17)}
.custom_sound_pref_copy{min-width:0}.custom_sound_pref_copy p{margin:0}.custom_sound_pref_copy .sub_text{display:-webkit-box;overflow:hidden;margin-top:2px;line-height:1.3;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.sound_ui_event_toggle{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.sound_ui_state_label{font-size:9px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;opacity:.56}.is_sound_on .sound_ui_state_label{opacity:.9}
.sound_ui_event_toggle .switch_wrap{width:42px;margin:0}.sound_ui_event_toggle .bswitch{width:42px;padding:2px;cursor:pointer;transition:background-color .18s ease,box-shadow .18s ease}.sound_ui_event_toggle .bball{width:20px;height:20px;transition:margin-left .18s cubic-bezier(.2,.8,.2,1)}.sound_ui_event_toggle .onball{margin-left:18px}
.custom_sound_pref_choice{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;margin-top:11px;min-width:0}
.sound_ui_select_wrap{position:relative;display:flex;align-items:center;min-width:0}.sound_ui_select_wrap>i{position:absolute;z-index:1;left:10px;font-size:10px;opacity:.52;pointer-events:none}.sound_ui_select_wrap select{width:100%;min-width:0;height:38px;padding-left:27px!important;border-radius:10px}
.custom_sound_slot_preview{display:flex;align-items:center;justify-content:center;gap:6px;min-width:76px;height:38px;padding:0 10px;border-radius:10px;font-size:10px;font-weight:800;transition:transform .16s ease,box-shadow .16s ease}.custom_sound_slot_preview:active{transform:scale(.97)}.custom_sound_slot_preview.is_playing{box-shadow:0 0 0 3px rgba(127,127,127,.17)}
.custom_sound_system_only{display:flex}.sound_ui_default_chip{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:0 10px;border-radius:9px;background:rgba(127,127,127,.08);font-size:10px;font-weight:700;opacity:.72}
.custom_sound_unique_note{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:9px 11px;border-radius:11px;background:rgba(127,127,127,.06)}.custom_sound_unique_note>i{margin-top:2px;opacity:.65}.custom_sound_unique_note p{margin:0;line-height:1.4}
.custom_sound_slot_reset{animation:customSoundReset .75s ease}@keyframes customSoundReset{0%,100%{box-shadow:none}35%{box-shadow:0 0 0 3px rgba(226,91,91,.22)}}
.sound_ui_library_head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.sound_ui_library_head p{margin:0}.sound_ui_library_head .sub_text{margin-top:3px}.sound_ui_owned_count{display:inline-flex;align-items:center;gap:5px;min-width:max-content;padding:6px 9px;border-radius:99px;background:rgba(127,127,127,.09);font-size:10px;font-weight:800}
.custom_sound_grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.custom_sound_card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:9px;min-width:0;padding:9px;border:1px solid rgba(127,127,127,.15);border-radius:13px;background:rgba(127,127,127,.03);transition:transform .18s ease,border-color .18s ease,background .18s ease}.custom_sound_card:hover{transform:translateY(-1px);border-color:rgba(127,127,127,.27);background:rgba(127,127,127,.06)}
.custom_sound_play,.custom_sound_admin_play{display:grid;place-items:center;width:40px;height:40px;min-width:40px;padding:0;border-radius:12px;font-size:13px;transition:transform .16s ease,box-shadow .16s ease}.custom_sound_play:hover,.custom_sound_admin_play:hover{transform:scale(1.04)}.custom_sound_play.is_playing,.custom_sound_admin_play.is_playing,.custom_sound_edit_play.is_playing{box-shadow:0 0 0 3px rgba(127,127,127,.17)}
.custom_sound_card_text{min-width:0}.custom_sound_card_text p{margin:0}.custom_sound_price{display:flex;align-items:center;min-height:18px;margin-top:2px;font-size:10px;opacity:.74}.custom_sound_card_action{display:flex;align-items:center;justify-content:flex-end}.custom_sound_owned{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:800;white-space:nowrap}.custom_sound_owned i{font-size:11px}.custom_sound_buy{display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:0 10px;border-radius:9px;font-size:10px;font-weight:800}
.custom_sound_admin_thumb{display:flex;align-items:center;justify-content:center;overflow:visible}.custom_sound_admin_play{width:40px;height:40px;min-width:40px}.custom_sound_edit_preview{display:flex;justify-content:center;padding:6px 0 16px}.custom_sound_edit_play{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px}
@media (prefers-reduced-motion:reduce){.sound_ui_wave b,.sound_ui_view{animation:none!important}.custom_sound_pref_row,.sound_ui_tab,.custom_sound_play,.custom_sound_slot_preview{transition:none!important}}
@media screen and (max-width:640px){
	.sound_ui_hero{align-items:flex-start;gap:10px;padding:12px}.sound_ui_visual{width:52px;height:48px;min-width:52px}.sound_ui_visual>i{display:none}.sound_ui_hero_copy .sub_text{font-size:10px}.sound_ui_hero_actions{gap:6px}.sound_ui_summary{align-self:flex-end}.sound_ui_master_btn span{display:none}.sound_ui_master_btn{width:35px;padding:0}.sound_ui_master_actions{gap:5px}
	.custom_sound_pref_table{grid-template-columns:1fr}.custom_sound_pref_row{padding:11px}.custom_sound_pref_row:hover{transform:none}.custom_sound_pref_copy .sub_text{-webkit-line-clamp:1}.custom_sound_slot_preview{min-width:40px;width:40px;padding:0}.custom_sound_slot_preview span{display:none}
	.sound_ui_library_head{align-items:flex-start}.sound_ui_library_head .sub_text{font-size:10px}.sound_ui_owned_count{margin-top:2px}.custom_sound_grid{grid-template-columns:1fr}.custom_sound_card:hover{transform:none}
}
@media screen and (max-width:390px){.sound_ui_hero_copy .sub_text{display:none}.sound_ui_visual{width:46px;min-width:46px}.sound_ui_master_actions{position:absolute;right:11px;bottom:10px}.sound_ui_hero{padding-bottom:49px}.sound_ui_summary{position:absolute;left:70px;bottom:17px}.sound_ui_tabs{margin-top:0}.sound_ui_event_top{grid-template-columns:38px minmax(0,1fr) auto}.custom_sound_pref_icon{width:38px;height:38px}}
