html.pst-auth-pending body {
    visibility: visible;
}

html.pst-auth-pending body > * {
    visibility: hidden !important;
}

html.pst-auth-pending::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: block;
    background: #f8fafc;
}

html.pst-auth-pending::after {
    content: 'PST-LIVE 접속 권한 확인 중...';
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2147483647;
    display: block;
    width: min(88vw, 360px);
    padding: 18px 22px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
    font-family: "Malgun Gothic", sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    transform: translate(-50%, -50%);
}

.pst-session-toolbar {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 32px);
    padding: 8px 10px 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.94);
    color: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    font-family: "Malgun Gothic", sans-serif;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.pst-session-toolbar__identity {
    overflow: hidden;
    max-width: 180px;
    color: #e2e8f0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pst-session-toolbar a,
.pst-session-toolbar button {
    border: 0;
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.pst-session-toolbar a:hover,
.pst-session-toolbar button:hover {
    background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 640px) {
    .pst-session-toolbar {
        right: 10px;
        bottom: 10px;
        left: 10px;
        justify-content: center;
    }

    .pst-session-toolbar__identity {
        max-width: 110px;
    }
}
