/* Scope every rule to the music dialogs; never resize the live BP or lobby. */
#event-bgm-dialog,#event-bgm-track-dialog{padding:0;border:1px solid #7e6945;border-radius:10px;background:#111317;color:#ece9e2;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);box-shadow:0 25px 120px #000a;overflow:auto;color-scheme:dark;text-align:left}
#event-bgm-dialog{width:1190px}#event-bgm-track-dialog{width:620px}
#event-bgm-dialog::backdrop,#event-bgm-track-dialog::backdrop{background:#06070acc;backdrop-filter:blur(5px)}
#event-bgm-dialog [hidden],#event-bgm-track-dialog [hidden]{display:none!important}
#event-bgm-dialog h2,#event-bgm-dialog h3,#event-bgm-dialog h4,#event-bgm-dialog p,#event-bgm-track-dialog h2,#event-bgm-track-dialog p{margin:0}
#event-bgm-dialog button,#event-bgm-track-dialog button{font:inherit;cursor:pointer;border-radius:5px;white-space:nowrap}
#event-bgm-dialog button:disabled,#event-bgm-track-dialog button:disabled{opacity:.45;cursor:default}
#event-bgm-dialog button:focus-visible,#event-bgm-track-dialog button:focus-visible,#event-bgm-track-dialog input:focus-visible{outline:2px solid #d8bb7b;outline-offset:3px}
.ebgm-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:23px 28px;border-bottom:1px solid #39352c;background:linear-gradient(120deg,#2b261c,#1b1c1e)}
.ebgm-heading small,.ebgm-eyebrow{font:9px/1.5 "Segoe UI",sans-serif;letter-spacing:2px;color:#bca371}.ebgm-heading h2{font-size:25px;font-weight:600;margin:7px 0!important;color:#eee5d2}.ebgm-heading p{font-size:12px;color:#b3a897}.ebgm-heading>button{border:0;background:none;font-size:28px!important;color:#c7b58c;padding:3px 8px}
.ebgm-content{padding:24px 28px}.ebgm-intro{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:23px 25px;margin-bottom:24px;border:1px solid #4b3e2b;border-radius:7px;background:linear-gradient(100deg,#2c271c,#18191b 65%,#242018)}
.ebgm-tabs{display:flex;gap:28px;border-bottom:1px solid #3b352c;margin:0 0 24px}.ebgm-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0!important;background:none;padding:0 2px 13px;color:#928b80;font-size:13px!important}.ebgm-tabs button[aria-selected=true]{border-color:#d7b46c;color:#e3c98e}#event-bgm-info-panel{min-height:390px;border:1px solid #3b352c;padding:28px;border-radius:6px;background:#17191c}#event-bgm-info-panel h3{font-size:20px;color:#e1cfaa}#event-bgm-info{display:grid;gap:16px;margin:25px 0}#event-bgm-info>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:18px;border-bottom:1px solid #302d27;padding-bottom:14px;font-size:13px}#event-bgm-info dt{color:#928b80}#event-bgm-info dd{margin:0;color:#e0d4c0;overflow-wrap:anywhere}
.ebgm-intro>div>small{font-size:9px;letter-spacing:2px;color:#bda573}.ebgm-intro h3{font-size:25px;font-weight:550;margin:8px 0 10px!important;color:#f0e5cc}.ebgm-intro p{color:#a5a09a;font-size:12px}.ebgm-intro>span{font:30px Georgia;color:#dbc294;text-align:right;flex-shrink:0}.ebgm-intro>span>small{display:block;font:8px "Segoe UI";letter-spacing:1.6px;color:#97856a;margin-top:9px}
.ebgm-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.ebgm-layout>section{min-width:0}.ebgm-section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:56px;margin-bottom:12px}.ebgm-section-heading h3{font-size:16px;font-weight:500}.ebgm-section-heading h3 small{font-size:10px;color:#c1a773;border:1px solid #57462b;border-radius:3px;padding:2px 5px;margin-left:6px}.ebgm-section-heading p{color:#8d8b8c;font-size:10px;margin-top:9px!important}
.ebgm-formats{display:flex;gap:2px;padding:3px;border:1px solid #39352e;border-radius:5px}.ebgm-formats button{border:0;background:none;padding:6px 9px;color:#a9a194;font-size:11px!important}.ebgm-formats button[aria-pressed=true]{background:#d1b477;color:#1a1814;font-weight:600}
.ebgm-track{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:13px;padding:14px;background:#15171b;border:1px solid #303034;border-radius:6px;margin-bottom:10px;min-height:90px}.ebgm-track.active{border-color:#8d7648;background:linear-gradient(100deg,#302a1c,#191a1b 66%);box-shadow:inset 3px 0 #d4b16d}.ebgm-track.outside{opacity:.55}.ebgm-slot{width:48px;height:48px;border:1px solid #37363a;background:#1d2025;color:#aaa6a0;font:500 19px "Segoe UI"!important}.ebgm-track.active .ebgm-slot{background:#d3b579;color:#241f13;border-color:#dfc58b}.ebgm-track-info{min-width:0}.ebgm-track-info h4{font:500 14px/1.35 "Segoe UI","Microsoft YaHei",sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#e7e3da}.ebgm-track-info>p{font-size:10px;color:#8e8a84;margin:5px 0 7px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ebgm-track-info>div{display:flex;align-items:center;gap:8px;min-width:0}.ebgm-track-info small{font-size:9px;color:#8b8986;white-space:nowrap}.ebgm-tag{font-size:10px;border:1px solid #5e5035;color:#d0b885;padding:2px 6px;border-radius:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px}.ebgm-track-actions{display:flex;align-items:center;gap:8px}
.ebgm-track-play{border:1px solid #45413a;background:#29261f;color:#d7be86;width:31px;height:31px;font-size:11px!important;border-radius:50%!important}.ebgm-outline{background:#1a1b1d;border:1px solid #514837;padding:9px 13px;font-size:11px!important;color:#d0c0a2}.ebgm-track-actions .ebgm-outline{padding:7px 9px}.ebgm-primary{background:linear-gradient(110deg,#dbc28d,#b69859);border:1px solid #e1c68a;padding:10px 18px;color:#252015;font-size:12px!important;font-weight:600!important}.ebgm-text{border:0;background:none;color:#c3ab78;padding:0;font-size:12px!important;margin-top:12px}
.ebgm-preview{border:1px solid #3b362c;border-radius:7px;background:linear-gradient(145deg,#201e19,#15171b 40%);padding:20px;display:flex;flex-direction:column;min-width:0}.ebgm-preview-heading{display:flex;align-items:center;justify-content:space-between}.ebgm-preview-heading h3{font-size:14px;font-weight:500}.ebgm-preview-heading b{font:12px "Segoe UI";color:#d1ba88}.ebgm-record{position:relative;overflow:hidden;height:145px;margin:20px 0;border:1px solid #3d362a;border-radius:5px;background:radial-gradient(ellipse at 65% 30%,#473923,#191a1b 70%)}.ebgm-record i{position:absolute;display:grid;place-items:center;width:210px;height:210px;border-radius:50%;background:repeating-radial-gradient(circle,#121212 0 3px,#26221b 4px,#151515 5px);border:2px solid #786449;right:-40px;top:-28px;color:#ddc389;font:52px Georgia;box-shadow:inset 0 0 0 63px #13131370}.ebgm-record>span{position:absolute;left:14px;bottom:20px;z-index:1;color:#e9d9b8;font-size:12px;letter-spacing:2px;font-weight:600;line-height:1.5;text-shadow:0 1px 7px #000}.ebgm-record small{font-size:7px;letter-spacing:1px;color:#b7a283}.ebgm-preview>h4{font:500 20px/1.35 "Segoe UI","Microsoft YaHei";margin:7px 0!important;color:#eee7da;overflow-wrap:anywhere}.ebgm-preview>p{font-size:10px;line-height:1.5;color:#999084;min-height:15px}
.ebgm-player{display:flex;align-items:center;gap:12px;margin:22px 0 16px}.ebgm-player>button{width:40px;height:40px;border-radius:50%!important;background:#d8ba7b;border:1px solid #ebcf95;color:#292113;font-size:13px!important}.ebgm-player strong{font-size:11px;font-weight:500;color:#d7c7a5}.ebgm-player small{display:block;font-size:9px;color:#8e8980;margin-top:5px}.ebgm-volume{display:flex;align-items:center;gap:10px;color:#aaa293;font-size:10px}.ebgm-volume input{min-width:0;flex:1;accent-color:#d8bb7b;height:3px;padding:0}.ebgm-volume output{min-width:26px;text-align:right;color:#cdb681}.ebgm-room-label{margin-top:auto;padding-top:28px}.ebgm-room-label>small{font-size:10px;color:#aea597}.ebgm-room-label strong{display:block;background:#0c1014;border:1px solid #4e4431;border-radius:5px;padding:15px 12px;margin-top:10px;font-size:12px;color:#eddbb5;line-height:1.5;overflow-wrap:anywhere}
.ebgm-note{font-size:10px!important;line-height:1.7;color:#928a7b;margin-top:12px!important}.ebgm-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px;padding-top:19px;border-top:1px solid #383227;font-size:10px;color:#a9a193}.ebgm-message{font-size:12px;line-height:1.7;color:#dcc18b;padding:10px 0;margin-bottom:12px!important;overflow-wrap:anywhere}.ebgm-message.error{color:#ef9b9b}.ebgm-loading{padding:35px;text-align:center;color:#c3b393}
.ebgm-editor-body{padding:24px 28px}.ebgm-current-file{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid #3f3b33;border-radius:6px;background:#111417;margin-bottom:22px}.ebgm-current-file>span{display:grid;place-items:center;width:42px;height:48px;border:1px solid #76613c;border-radius:5px;color:#dbbd7e;font-size:24px;background:#342a1c}.ebgm-current-file>div{min-width:0;flex:1}.ebgm-current-file strong{display:block;font:500 13px/1.5 "Segoe UI","Microsoft YaHei";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:4px 0}.ebgm-current-file small{font-size:9px;color:#9f8e73}.ebgm-field{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#e0d5c2;margin:0 0 10px}.ebgm-field span{font-size:10px;color:#998666}#event-bgm-label{width:100%;height:47px;background:#0e1115;border:1px solid #7a6744;border-radius:5px;padding:0 13px;color:#e7ce9d;font-size:13px}.ebgm-inline-preview{display:flex;align-items:center;gap:18px;border-left:2px solid #baa16c;background:#24221d;padding:13px 15px;margin:18px 0 25px}.ebgm-inline-preview small{font-size:10px;color:#958976;flex-shrink:0}.ebgm-inline-preview strong{font-size:12px;color:#e1c68a;font-weight:500;overflow-wrap:anywhere}.ebgm-upload{display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;min-height:132px;border:1px dashed #6d5b3c;background:linear-gradient(150deg,#29251d66,#171a1d);color:#d5c09a;border-radius:6px;gap:9px}.ebgm-upload>span{font-size:25px;color:#c4a363}.ebgm-upload strong{font-size:12px;font-weight:500}.ebgm-upload small{font-size:9px;color:#8f877c}.ebgm-editor-footer{display:flex;align-items:center;gap:10px;padding:18px 28px;background:#121518;border-top:1px solid #38342b}.ebgm-editor-footer>span{font-size:10px;color:#999080;margin-right:auto}
@media(max-width:1050px){.ebgm-layout{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.ebgm-track{grid-template-columns:42px minmax(0,1fr);gap:9px}.ebgm-track-actions{grid-column:2;justify-self:end}.ebgm-slot{width:42px;height:45px}.ebgm-intro h3{font-size:22px}}
@media(max-width:700px){.ebgm-heading,.ebgm-content,.ebgm-editor-body{padding:20px}.ebgm-heading h2{font-size:21px}.ebgm-layout{grid-template-columns:minmax(0,1fr)}.ebgm-preview{display:none}.ebgm-intro{padding:18px}.ebgm-intro>span{display:none}.ebgm-intro h3{font-size:19px}.ebgm-section-heading{flex-wrap:wrap}.ebgm-footer{flex-wrap:wrap;line-height:1.7}.ebgm-editor-footer{padding:16px;flex-wrap:wrap}.ebgm-editor-footer>span{width:100%}.ebgm-current-file{gap:9px;padding:11px}.ebgm-current-file>span{display:none}}
