.ph-pas-sidebar {
    --ph-pas-bg: rgba(2, 10, 25, 0.96);
    --ph-pas-panel: rgba(8, 24, 56, 0.96);
    --ph-pas-border: rgba(197, 160, 89, 0.34);
    --ph-pas-gold: #c5a059;
    --ph-pas-gold-soft: #e2c57f;
    --ph-pas-text: #ffffff;
    --ph-pas-muted: #9fb3ca;
    position: fixed;
    top: 118px;
    right: 18px;
    z-index: 99990;
    width: 286px;
    max-width: calc(100vw - 32px);
    color: var(--ph-pas-text);
    font-family: Heebo, Alef, Arial, sans-serif;
    text-align: right;
}

.ph-pas-toggle {
    display: none;
}

.ph-pas-panel {
    overflow: hidden;
    border: 1px solid var(--ph-pas-border);
    border-radius: 8px;
    background:
        radial-gradient(circle at 20% 0%, rgba(37, 84, 168, 0.42), transparent 36%),
        linear-gradient(180deg, var(--ph-pas-panel), var(--ph-pas-bg));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(10px);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.ph-pas-brand {
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.22);
}

.ph-pas-brand-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--ph-pas-muted);
    font-size: 12px;
    line-height: 1.4;
}

.ph-pas-brand strong {
    display: block;
    color: var(--ph-pas-text);
    font-size: 20px;
    line-height: 1.25;
}

.ph-pas-link,
.ph-pas-courses summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 16px;
    color: var(--ph-pas-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.ph-pas-link:hover,
.ph-pas-link:focus,
.ph-pas-courses summary:hover,
.ph-pas-courses summary:focus {
    color: var(--ph-pas-gold-soft);
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.ph-pas-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    color: #07101f;
    background: var(--ph-pas-gold);
    font-size: 14px;
    font-weight: 900;
}

.ph-pas-courses summary {
    list-style: none;
}

.ph-pas-courses summary::-webkit-details-marker {
    display: none;
}

.ph-pas-course-list {
    max-height: min(34vh, 320px);
    overflow-y: auto;
    padding: 8px 12px 12px;
    background: rgba(0, 0, 0, 0.2);
}

.ph-pas-course {
    display: block;
    padding: 10px 12px;
    margin: 4px 0;
    border-radius: 6px;
    color: #eaf2ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.ph-pas-course:hover,
.ph-pas-course:focus {
    color: #06101e;
    background: var(--ph-pas-gold-soft);
    outline: none;
}

.ph-pas-empty {
    display: block;
    padding: 10px 12px;
    color: var(--ph-pas-muted);
    font-size: 13px;
}

@media (max-width: 1024px) {
    .ph-pas-sidebar {
        top: auto;
        right: 12px;
        bottom: 12px;
        width: min(340px, calc(100vw - 24px));
    }

    .ph-pas-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 46px;
        padding: 10px 14px;
        margin: 0 0 8px auto;
        border: 1px solid var(--ph-pas-border);
        border-radius: 8px;
        color: #07101f;
        background: var(--ph-pas-gold-soft);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
        font: 800 14px/1 Heebo, Alef, Arial, sans-serif;
        cursor: pointer;
    }

    .ph-pas-sidebar:not(.is-open) .ph-pas-panel {
        display: none;
    }
}

@media (min-width: 1025px) {
    body.admin-bar .ph-pas-sidebar {
        top: 104px;
    }

    body.admin-bar .ph-pas-panel {
        max-height: calc(100vh - 124px);
    }
}
