/* ---- Fixed right-edge Apps panel (static tools) ---- */
.static-apps {
    --apps-bg: #96415c;
    --apps-text: #f2dbca;
    --apps-hover: #e7c2e5;
    --apps-border: #dba8ff;
    --apps-drawer-w: min(18rem, 86vw);
    position: fixed;
    top: 42%;
    right: 0;
    z-index: 2147483000;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.static-apps__tab {
    position: absolute;
    right: 0;
    top: 0;
    transform: translateY(-50%);
    margin: 0;
    padding: 0.85rem 0.4rem;
    border: 1px solid var(--apps-border);
    border-right: 0;
    border-radius: 0.55rem 0 0 0.55rem;
    background: var(--apps-bg);
    color: var(--apps-text);
    cursor: pointer;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s ease, color 0.2s ease, right 0.28s ease;
}

.static-apps__tab:hover,
.static-apps__tab:focus {
    color: var(--apps-hover);
    outline: none;
}

.static-apps__tab-label {
    display: block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}

.static-apps__drawer {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(100%, -50%);
    width: var(--apps-drawer-w);
    padding: 1rem 1rem 1.15rem;
    border: 1px solid var(--apps-border);
    border-right: 0;
    border-radius: 0.75rem 0 0 0.75rem;
    background: var(--apps-bg);
    color: var(--apps-text);
    box-shadow: -6px 4px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.28s ease;
    pointer-events: none;
}

.static-apps.is-open .static-apps__drawer {
    transform: translate(0, -50%);
    pointer-events: auto;
}

.static-apps.is-open .static-apps__tab {
    right: var(--apps-drawer-w);
}

.static-apps__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(242, 219, 202, 0.28);
}

.static-apps__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--apps-text);
}

.static-apps__close {
    border: 0;
    background: transparent;
    color: var(--apps-text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.15rem;
}

.static-apps__close:hover,
.static-apps__close:focus {
    color: var(--apps-hover);
    outline: none;
}

.static-apps__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.static-apps__item + .static-apps__item {
    margin-top: 0.55rem;
}

.static-apps__link {
    display: block;
    padding: 0.55rem 0.15rem;
    color: var(--apps-text);
    text-decoration: none;
    transition: color 0.15s ease;
}

.static-apps__link:hover,
.static-apps__link:focus {
    color: var(--apps-hover);
    text-decoration: none;
}

.static-apps__name {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
}

.static-apps__blurb {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    opacity: 0.85;
    line-height: 1.35;
}

@media (max-width: 575.98px) {
    .static-apps {
        top: auto;
        bottom: 5.5rem;
    }

    .static-apps__tab {
        top: auto;
        bottom: 0;
        transform: none;
    }

    .static-apps__drawer {
        top: auto;
        bottom: 0;
        transform: translateX(100%);
    }

    .static-apps.is-open .static-apps__drawer {
        transform: translateX(0);
    }
}

@media print {
    .static-apps {
        display: none !important;
    }
}
