.rl-page .jj-dialog {
    position:fixed; inset:0; margin:auto; padding:0; border:0; border-radius:12px;
    max-width:calc(100vw - 32px); max-height:calc(100vh - 36px); color:#17263a;
    background-color:transparent; background-position:center; background-size:100% 100%;
    background-repeat:no-repeat; overflow:visible;
}
.jj-dialog:not([open]), .jj-dialog [hidden] { display:none; }
.jj-dialog::backdrop { background:rgba(20,31,51,.50); }
.rl-page .jj-dialog button { font-family:inherit; cursor:pointer; }
.jj-dialog .jj-close {
    position:absolute; top:10px; right:10px; width:24px; height:24px;
    border:0; padding:0; background:transparent url('../toefl-vip/images/assistant-close.png') center/24px no-repeat;
}
.rl-page .jj-gate { width:min(322px,74vh); aspect-ratio:322/302; background-image:url('images/practice-gate.png'); }
.jj-gate .jj-close { top:-28px; right:0; width:32px; height:32px; border:1px solid #fff; border-radius:50%; }
.jj-gate-actions { position:absolute; inset:55% 7.5% 7.5%; display:flex; flex-direction:column; justify-content:space-between; }
.jj-gate-actions button { min-height:40%; padding:0 6px; border:1px solid #1769ff; border-radius:24px; background:transparent; color:#1769ff; font-size:16px; }
.jj-gate-actions button:first-child { background:linear-gradient(105deg,#50a7ff,#1769ff); color:#fff; border-color:transparent; }
.rl-page .jj-assistant { width:min(570px,145vh); aspect-ratio:570/320; background-image:url('images/assistant-background.png'); container-type:inline-size; }
.jj-assistant-heading, .jj-assistant-scan, .jj-assistant-reply, .jj-qr { position:absolute; }
.jj-assistant-heading { width:38.25%; left:41.4%; top:9%; }
.jj-assistant-scan { width:21.23%; left:41.4%; top:62%; }
.jj-assistant .jj-assistant-reply { left:41.4%; top:78.1%; width:30.4%; margin:0; border:1px solid #e4ebf5; border-radius:6px; background:white; text-align:center; font-size:clamp(9px,2.1cqw,12px); line-height:2; }
.jj-assistant-reply strong { color:#1769ff; }
.jj-qr { right:6%; bottom:10.6%; width:19.65%; aspect-ratio:1; box-sizing:border-box; border:6px solid #ffffff70; border-radius:14px; background:#fff; background-clip:padding-box; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:12px; text-align:center; }
.jj-qr img { display:block; width:86%; height:86%; object-fit:contain; }
.jj-qr button { border:0; background:transparent; color:#1769ff; }
.rl-page .jj-claim-button { position:relative; padding:0 24px; min-height:44px; border:0; border-radius:12px; color:#fff; background:linear-gradient(105deg,#ff9926,#fa642b); font-family:inherit; font-size:16px; font-weight:600; box-shadow:0 6px 14px #ff812530; cursor:pointer; }
.jj-list-claim { position:sticky; z-index:4; bottom:12px; margin:16px auto 0; width: min(100%,320px); }
.jj-list-claim .jj-claim-button { width:100%; border-radius:24px; }
.rl-page .jj-claim-button[data-jj-open="membership"] { color:#51320f; background:linear-gradient(105deg,#fae094,#f7c752); }
.jj-claim-button small { position:absolute; top:-13px; right:-14px; padding:1px 8px; border-radius:8px 8px 8px 0; color:#fff; background:linear-gradient(100deg,#bc60ff,#7061ff); font-size:12px; font-weight:400; }
