#mu-jewel-bank,#mu-jewel-withdraw{box-sizing:border-box;width:min(520px,94vw);max-height:92dvh;padding:20px;overflow:auto;color:#eee3cb;background:#13130ff5;border:1px solid #9e8149;border-radius:12px;box-shadow:0 18px 70px #000b;font:14px/1.4 Georgia,serif}
#mu-jewel-withdraw{width:min(370px,94vw)}
#mu-jewel-bank::backdrop,#mu-jewel-withdraw::backdrop{background:#0009;backdrop-filter:blur(3px)}
#mu-jewel-bank *,#mu-jewel-withdraw *{box-sizing:border-box}
#mu-jewel-bank button,#mu-jewel-withdraw button,#mu-jewel-withdraw input,#mu-jewel-withdraw select{font:inherit;color:inherit}
#mu-jewel-bank button,#mu-jewel-withdraw button{cursor:pointer}
#mu-jewel-bank button:disabled,#mu-jewel-withdraw button:disabled{opacity:.4;cursor:default}
#mu-jewel-bank :focus-visible,#mu-jewel-withdraw :focus-visible,#mu-jewel-launch:focus-visible{outline:2px solid #f6d58a;outline-offset:3px}
.jb-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.jb-head h2{font-size:25px;margin:0}.jb-close{width:32px;height:32px;border:0;background:none;font-size:27px!important;color:#c8b88e!important}
.jb-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 14px;margin-bottom:20px}.jb-kind{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:0 8px;min-height:66px;border-bottom:1px solid #bfa36522}.jb-kind strong{font-size:12px;font-weight:normal;color:#b7af9f}.jb-kind span{font:18px Georgia;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.jb-icon{position:relative;display:block;width:30px;height:36px;grid-row:span 2;overflow:hidden}.jb-icon img{position:absolute;left:50%;top:50%;width:500%;max-width:none;height:auto;transform:translate(-50%,-50%)}.jb-custom-socket{filter:hue-rotate(90deg)}.jb-custom-rare{filter:hue-rotate(270deg)}
.jb-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.jb-actions button,.jb-submit{min-height:43px;border:1px solid #a68b52;border-radius:5px;background:#584525;font-weight:bold!important}.jb-actions button:last-child{background:transparent}
.jb-status{font:13px/1.4 sans-serif;color:#b7c7a5;margin-top:12px;overflow-wrap:anywhere}.jb-status:empty{display:none}.jb-status[data-error=true]{color:#ffb39d}
.jb-form{display:grid;gap:13px}.jb-form label{display:grid;gap:6px;color:#bcb5a5;font-size:13px}.jb-form input,.jb-form select{width:100%;min-width:0;min-height:42px;padding:9px;background:#090b09;border:1px solid #675b3d;border-radius:4px}.jb-amount-row{display:flex;gap:8px}.jb-amount-row button{background:#28271d;border:1px solid #8c7647;border-radius:4px;padding:0 13px}.jb-have,.jb-limit{margin:0;color:#bcb5a5;font-size:12px}.jb-have{color:#e4cb90}.jb-form .jb-status{margin:0}
@media(max-width:420px){#mu-jewel-bank,#mu-jewel-withdraw{padding:15px}.jb-list{gap:0 8px}.jb-kind{grid-template-columns:24px minmax(0,1fr);gap:0 4px;min-height:62px}.jb-icon{width:24px;height:30px}.jb-kind strong{font-size:11px}.jb-kind span{font-size:16px}.jb-head h2{font-size:22px}}
@media(max-height:500px) and (min-width:600px){#mu-jewel-bank{width:620px;padding:12px 18px}.jb-list{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:12px}.jb-kind{min-height:48px}.jb-head{margin-bottom:8px}.jb-head h2{font-size:22px}}

/* Classic MU window: silver scrollwork, charcoal panel and inset metal controls. */
#mu-jewel-bank,#mu-jewel-withdraw{border:20px solid transparent;border-image:url("frame.svg") 40 stretch;border-radius:0;padding:10px 14px 14px;color:#e8e8eb;background:linear-gradient(145deg,transparent 30%,#ffffff05 30.3%,transparent 31%,transparent 67%,#0004 67.3%,transparent 68%),linear-gradient(115deg,#101014,#303035 48%,#151519);background-clip:padding-box;font:14px/1.4 Tahoma,"Trebuchet MS",sans-serif;box-shadow:0 15px 50px #000c}
#mu-jewel-bank{width:min(550px,96vw)}#mu-jewel-withdraw{width:min(390px,96vw)}
#mu-jewel-bank::backdrop,#mu-jewel-withdraw::backdrop{backdrop-filter:blur(2px);background:#0008}
.jb-head{position:relative;min-height:42px;margin:0 0 14px;padding:0 34px 12px;border-bottom:3px double #9a9a9f;text-align:center;justify-content:center;background:linear-gradient(transparent,#0008)}
.jb-head h2{font:bold 22px/1.15 Tahoma,"Trebuchet MS",sans-serif;letter-spacing:.04em;color:#fff;text-shadow:2px 2px 2px #000}
.jb-close{position:absolute;right:0;top:0;width:27px;height:27px;border:2px solid #16161b;border-radius:50%;background:radial-gradient(circle at 35% 25%,#ffdf7e,#e8a12d 62%,#9c5a0e);box-shadow:0 0 0 2px #c4c4c9,inset 0 0 0 1px #ffe8a1;color:#121216!important;font:bold 25px/20px Tahoma!important;padding:0;text-shadow:none}
.jb-list{padding:4px 10px 8px;gap:0 12px;background:#060609b8;border:1px solid #a6a6ae;box-shadow:inset 0 0 0 2px #222228,0 2px 0 #050507}
.jb-kind{border-color:#66667144}.jb-kind strong{color:#d0d0d6;font-family:Tahoma,sans-serif}.jb-kind span{font:bold 18px Tahoma,sans-serif;color:#e9dd69;text-shadow:1px 1px #000}
.jb-actions{grid-template-columns:1.6fr 1fr;gap:10px}
.jb-actions button,.jb-actions button:last-child,.jb-submit,.jb-amount-row button{border:3px ridge #a6a6ae;border-radius:2px;background:linear-gradient(155deg,#5d5d65,#232328 40%,#34343b 70%,#17171c);box-shadow:inset 0 0 0 2px #0a0a0e,0 2px 3px #000;color:#f5cf72;text-shadow:1px 2px 1px #000;padding:9px 6px;font-weight:bold}
.jb-actions button:hover:not(:disabled),.jb-submit:hover:not(:disabled),.jb-amount-row button:hover:not(:disabled){filter:brightness(1.25)}
.jb-form input,.jb-form select{background:#09090dd9;border:2px ridge #92929c;color:#fff}.jb-form label,.jb-limit{color:#cdccd4}.jb-have{color:#e9dd69}.jb-status{color:#8cc8f0}
@media(max-width:420px){#mu-jewel-bank,#mu-jewel-withdraw{border-width:15px;padding:8px}.jb-head h2{font-size:18px}.jb-list{padding:2px 6px;gap:0 6px}.jb-kind{grid-template-columns:22px minmax(0,1fr)}.jb-kind strong{font-size:10px}.jb-kind span{font-size:16px}.jb-actions{gap:7px}.jb-actions button{font-size:12px!important}.jb-head{padding-left:20px;padding-right:30px}}
@media(max-height:500px) and (min-width:600px){#mu-jewel-bank{width:640px;border-width:15px;padding:6px 12px}.jb-head{min-height:32px;padding-bottom:6px;margin-bottom:8px}.jb-list{margin-bottom:10px}.jb-status{margin-top:7px}}
