.custom-dialog{width:min(1120px,calc(100% - 32px));max-width:none;max-height:calc(100% - 20px);margin:auto;padding:0;border:1px solid #62868d;border-top:3px solid #8bbfc2;background:#101f29f7;color:#e1f1f1;box-shadow:0 20px 90px #000b;overflow:auto}
.custom-dialog::backdrop{background:#02080db8}.custom-frame{display:flex;flex-direction:column;height:min(680px,calc(100dvh - 30px));min-height:0}.custom-header{display:flex;justify-content:space-between;align-items:center;padding:17px 25px;border-bottom:1px solid #37525c;background:linear-gradient(110deg,#1a3641,#10232e)}.custom-header small,.custom-music-heading small,.pack-detail-head small,.custom-identity small{font:10px Consolas,monospace;letter-spacing:2px;color:#92b7bd}.custom-header h2,.custom-music-heading h3,.custom-identity h3,.pack-detail-head h3{margin:3px 0 0;line-height:1.1;letter-spacing:2px}.custom-header h2{font-size:25px}.custom-close{width:38px;height:38px;border:1px solid #537681;background:#172e39;color:#dbecee;font-size:24px}.custom-close:hover,.custom-tabs button:hover,.track-switch:hover{border-color:#d1f3ef;background:#33545e}.custom-layout{display:grid;grid-template-columns:64px minmax(0,1fr);flex:1;min-height:0}.custom-tabs{padding:14px 6px;border-right:1px solid #39545e;display:flex;flex-direction:column;gap:7px;background:#0b1923}.custom-tabs button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 2px;border:1px solid #344e58;background:#142733;color:#a2b9c0;font-size:12px}.custom-tabs button span{font-size:18px}.custom-tabs button[aria-pressed=true]{border-color:#8bc2bf;background:#29484e;color:#e1fffa;box-shadow:inset 3px 0 #9dd7ce}.custom-page[hidden]{display:none!important}.custom-profile{padding:clamp(15px,3vw,38px);overflow:auto}.custom-identity{display:flex;gap:20px;align-items:center;border-bottom:1px solid #41606a;padding-bottom:22px;margin-bottom:22px}.custom-identity img{width:94px;height:94px;object-fit:cover;border:1px solid #7b9c9e}.custom-identity h3{font-size:32px;overflow-wrap:anywhere}.custom-identity p{margin:8px 0 0;color:#91abb0}.custom-profile label,.custom-label{display:block;color:#aac5c9;font-size:13px;margin:14px 0 8px}.custom-profile input{width:min(420px,100%);box-sizing:border-box;background:#0c1923;border:1px solid #54717a;color:#e4f4f6;padding:12px}.custom-profile .avatar-grid{max-width:660px;grid-template-columns:repeat(auto-fill,minmax(48px,1fr))}.custom-profile-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:22px;border-top:1px solid #344c56;padding-top:15px;color:#a2bbc0;font-size:13px}.custom-profile-footer b{color:#dceeed}.custom-options{display:grid;grid-template-columns:105px minmax(0,1fr);min-height:0}.custom-category{padding:14px 8px;overflow-y:auto;border-right:1px solid #344c56;background:#101e28}.custom-category button{width:100%;padding:12px 5px;border:1px solid #76999e;background:#243e49;color:#e0f4f2;display:flex;flex-wrap:wrap;justify-content:center;gap:4px;font-size:14px}.custom-category small{width:100%;font:9px Consolas;color:#9db4b9}.custom-music{display:flex;flex-direction:column;min-height:0;padding:18px 22px;gap:14px}.custom-music-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #385560;padding-bottom:12px}.custom-music-heading h3{font-size:23px}.custom-music-heading>span{font:10px Consolas;color:#82a4ad}.custom-music-body{display:grid;grid-template-columns:minmax(180px,1fr) minmax(230px,1.25fr);gap:20px;min-height:0;flex:1}.custom-pack-list{overflow-y:auto;overflow-x:hidden;min-height:0;display:flex;flex-direction:column;gap:12px;padding:8px 10px 15px;scrollbar-width:thin;scrollbar-color:#607e83 #13242e}.custom-record{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;flex:none;width:100%;padding:10px 10px 8px;background:linear-gradient(130deg,#192d38,#101d28);border:1px solid #324a54;min-height:145px;color:#c5d9df;filter:brightness(.55);transform:scale(.90);transition:transform .26s ease,filter .26s ease,border-color .26s;transform-origin:center}.custom-record.selected{transform:scale(1);filter:brightness(1.08);border-color:#93c1bd;background:linear-gradient(130deg,#2b454d,#152a33);box-shadow:0 0 14px #74d4c522}.custom-record:hover{filter:brightness(.9)}.custom-record.selected:hover{filter:brightness(1.15)}.record-object{display:block;position:relative;width:min(92%,210px);aspect-ratio:1.55}.record-cover{position:absolute;left:3%;top:0;width:66%;height:100%;box-shadow:5px 4px 12px #000a,inset 0 0 0 1px #ffffff55;background:linear-gradient(125deg,#284754,#172730 65%,#3f6670);background-position:center;background-size:cover;z-index:2;display:grid;place-items:center}.record-cover::after{content:'';position:absolute;inset:0;border-left:4px solid #ffffff20;border-right:1px solid #ffffff40;pointer-events:none}.record-cover-fallback{text-align:center;display:flex;flex-direction:column;gap:5px;color:#b7dadd}.record-cover-fallback b{font-size:38px;letter-spacing:4px}.record-cover-fallback small{font:7px Consolas;letter-spacing:1px}.has-cover .record-cover-fallback{display:none}.record-disc{position:absolute;height:96%;aspect-ratio:1;right:0;top:2%;border-radius:50%;overflow:hidden;box-shadow:3px 4px 10px #0009;border:1px solid #9cb6b7;background:repeating-radial-gradient(circle,#1f2d35 0px,#1f2d35 2px,#32454a 3px,#18262d 4px);animation:record-turn 24s linear infinite}.record-disc-art{position:absolute;inset:4%;border-radius:50%;background-position:center;background-size:cover;opacity:.86;mask-image:radial-gradient(circle,transparent 0 5%,black 6% 98%,transparent 100%)}.record-disc::after{content:'';position:absolute;inset:0;background:conic-gradient(from 20deg,transparent 0deg,#ffffff30 35deg,transparent 65deg,transparent 180deg,#ffffff22 220deg,transparent 260deg);border-radius:50%;pointer-events:none}.record-disc i{position:absolute;width:8%;height:8%;top:46%;left:46%;border-radius:50%;background:#111c23;border:1px solid #b2bfc0}.record-caption{display:flex;width:100%;justify-content:space-between;align-items:center;padding:0 5px;box-sizing:border-box;gap:8px}.record-caption b{font-size:15px}.record-caption small{font-size:10px;color:#91b8bd}.custom-record.equipped .record-caption small{color:#c5ffdc}.pack-detail-head{padding-bottom:15px;border-bottom:1px solid #3f5a63}.pack-detail-head h3{font-size:28px}.pack-detail-head p{font-size:13px;line-height:1.7;color:#b0c8cb;margin:9px 0 0}.custom-pack-detail{display:flex;flex-direction:column;min-height:0;overflow:auto;padding:4px 5px 5px 2px}.pack-tracks{flex:1}.pack-tracks h4{font-size:14px;color:#d2e6e8;margin:14px 0 8px}.pack-tracks h4 small{font:9px Consolas;color:#839fa8;margin-left:8px}.pack-track{display:grid;grid-template-columns:78px minmax(0,1fr) auto;align-items:center;gap:9px;border-bottom:1px solid #354c56;padding:12px 5px;font-size:13px;min-height:24px}.track-role{color:#94b0b6;font-size:12px}.track-title{overflow-wrap:anywhere;font-weight:600}.track-switch{font-size:19px;min-width:35px;height:30px;background:#243c45;border:1px solid #5e8188;color:#dbefee;line-height:1}.gold-track{color:#f2d177;background:linear-gradient(110deg,#a98035 8%,#f0c96e 30%,#fff6d4 49%,#dfb75a 69%,#b28337 93%);background-size:220% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:gold-sweep 5s linear infinite}.track-note{display:block;color:#8fa9b0;font-size:11px;margin-top:12px}.pack-detail-actions{display:flex;flex-wrap:wrap;gap:10px;padding-top:18px}.pack-detail-actions button{flex:1;min-width:100px}.pack-detail-actions button:disabled{opacity:.65;cursor:default}.pack-detail-actions button:focus-visible,.custom-record:focus-visible{outline:2px solid #c1e3d8;outline-offset:2px}@keyframes record-turn{to{transform:rotate(360deg)}}@keyframes gold-sweep{to{background-position:220% 0}}@media(prefers-reduced-motion:reduce){.record-disc,.gold-track{animation:none}.custom-record{transition:none}}
@media(max-width:780px){.custom-dialog{width:calc(100% - 16px)}.custom-header{padding:10px 15px}.custom-header h2{font-size:21px}.custom-layout{grid-template-columns:46px minmax(0,1fr)}.custom-tabs{padding:9px 3px}.custom-tabs button{font-size:11px;padding:6px 1px}.custom-options{grid-template-columns:64px minmax(0,1fr)}.custom-category{padding:9px 4px}.custom-category button{font-size:12px}.custom-music{padding:10px;gap:8px}.custom-music-body{grid-template-columns:minmax(110px,.8fr) minmax(140px,1fr);gap:9px}.custom-record{min-height:0;padding:8px 4px}.record-caption{flex-wrap:wrap;gap:3px}.record-caption b{font-size:12px}.custom-pack-list{padding:4px}.pack-detail-head h3{font-size:21px}.pack-track{grid-template-columns:54px minmax(0,1fr) auto;gap:4px;font-size:11px;padding:8px 0}.track-role{font-size:10px}.track-switch{min-width:26px;height:26px}.custom-identity img{width:65px;height:65px}.custom-identity h3{font-size:24px}}
@media(max-width:510px){.custom-options{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.custom-category{padding:5px 10px;border-right:0;border-bottom:1px solid #344c56;max-height:65px}.custom-category button{width:80px;padding:5px}.custom-category small{display:none}.custom-music-body{display:flex;flex-direction:column;overflow-y:auto}.custom-pack-list{display:flex;flex-direction:row;overflow-x:auto;overflow-y:hidden;min-height:130px;flex:none;gap:5px;scroll-snap-type:x proximity}.custom-record{width:120px;min-height:110px;scroll-snap-align:start;align-self:center}.custom-pack-detail{overflow:visible;flex:none}.pack-track{grid-template-columns:66px minmax(0,1fr) auto}.custom-profile-footer{flex-wrap:wrap}}
@media(max-height:450px) and (min-width:511px){.custom-frame{height:calc(100dvh - 28px)}.custom-header{padding:7px 15px}.custom-music{padding:8px 12px;gap:6px}.custom-music-heading{padding-bottom:5px}.custom-music-heading h3{font-size:18px}.pack-detail-head{padding-bottom:6px}.pack-detail-head h3{font-size:19px}.pack-detail-head p{font-size:11px;margin:4px 0}.pack-track{padding:5px 0}.pack-detail-actions{padding-top:9px}}
