@media screen {
    html.pptgps-adminbar-active {
        --pptgps-adminbar-height: 40px;
        scroll-padding-top: var(--pptgps-adminbar-height);
    }

    html.pptgps-adminbar-active body::before {
        content: "";
        display: block;
        height: var(--pptgps-adminbar-height);
    }

    #pptgps-adminbar {
        position: fixed;
        inset: 0 0 auto;
        z-index: 10000;
        display: flex;
        align-items: center;
        gap: 0.8rem;
        box-sizing: border-box;
        height: var(--pptgps-adminbar-height);
        padding-inline: clamp(12px, 3vw, 48px);
        border-bottom: 1px solid #a58b4e;
        background: #111a37;
        color: #fff;
        font: 500 14px/1.2 system-ui, sans-serif;
        text-align: start;
    }

    #pptgps-adminbar .pptgps-adminbar-status {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        font-weight: 650;
    }

    #pptgps-adminbar .pptgps-adminbar-status::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #83d8ac;
    }

    #pptgps-adminbar .pptgps-adminbar-name {
        min-width: 0;
        overflow: hidden;
        border-inline-start: 1px solid #57617b;
        padding-inline-start: 0.8rem;
        color: #dce2ee;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #pptgps-adminbar a {
        display: inline-flex;
        align-items: center;
        align-self: stretch;
        gap: 0.5rem;
        margin-inline-start: auto;
        padding-inline: 0.4rem;
        color: #ffe09a;
        font: inherit;
        font-weight: 650;
        text-decoration: none;
        white-space: nowrap;
    }

    #pptgps-adminbar a:hover,
    #pptgps-adminbar a:focus-visible {
        color: white;
        text-decoration: underline;
    }

    #pptgps-adminbar a:focus-visible {
        outline: 2px solid #ffe09a;
        outline-offset: -3px;
    }

    .pptgps-adminbar-active #sp-header.sticky .sticky__wrapper {
        top: var(--pptgps-adminbar-height);
    }
}

@media screen and (max-width: 600px) {
    html.pptgps-adminbar-active {
        --pptgps-adminbar-height: 44px;
    }
    #pptgps-adminbar {
        gap: 0.5rem;
        font-size: 13px;
    }
}

@media print {
    #pptgps-adminbar { display: none; }
}
