#pa-av-chat {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9998;
    width: min(420px, calc(100vw - 24px));
    height: min(60vh, 540px);
    display: grid;
    grid-template-rows: auto 1fr;
    color: #edf2f7;
    background: linear-gradient(180deg, rgba(14, 18, 24, 0.97), rgba(10, 12, 18, 0.97));
    border: 1px solid rgba(156, 173, 197, 0.2);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    font-family: Georgia, "Times New Roman", serif;
}

#pa-av-chat.pa-hidden {
    display: none;
}

#pa-av-chat.pa-collapsed {
    height: auto;
}

#pa-av-chat.pa-collapsed .pa-av-body {
    display: none;
}

#pa-av-chat.pa-dragging {
    transition: none;
    user-select: none;
    -webkit-user-select: none;
}

.pa-av-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(90deg, rgba(71, 102, 132, 0.24), rgba(47, 63, 78, 0.24));
    border-bottom: 1px solid rgba(156, 173, 197, 0.16);
    cursor: grab;
}

.pa-av-header:active {
    cursor: grabbing;
}

.pa-av-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pa-av-title strong {
    font-size: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pa-av-title span {
    font-size: 12px;
    color: rgba(237, 242, 247, 0.72);
}

.pa-av-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pa-av-body {
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 10px;
    padding: 12px;
}

.pa-av-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(237, 242, 247, 0.72);
}

.pa-av-frame {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 1px solid rgba(156, 173, 197, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.pa-av-button {
    appearance: none;
    border: 1px solid rgba(156, 173, 197, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    border-radius: 10px;
    padding: 9px 12px;
    cursor: pointer;
    text-decoration: none;
}

.pa-av-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(156, 173, 197, 0.34);
}

@media (max-width: 900px) {
    #pa-av-chat {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        height: min(58vh, 520px);
    }
}
