.home-up-button.button {
    position: fixed;
    right: max(.75rem, env(safe-area-inset-right, 0px));
    bottom: max(.75rem, env(safe-area-inset-bottom, 0px));
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border: 1px solid var(--line, #cddbd4);
    border-radius: 50%;
    background: var(--white, #fff);
    color: var(--green-dark, #055850);
    box-shadow: 0 3px 12px #112c2926;
}
.home-up-button.button:hover { background: var(--mint, #deeee6); }
.home-up-button.button[hidden] { display: none; }
.home-up-button svg { width: 1.25rem; height: 1.25rem; transform: rotate(-90deg); }
body:has(#cookie-banner:not([hidden]), .cookie-dialog[open]) .home-up-button { visibility: hidden; }

@media (max-width: 760px) {
    .exam-page:has(.exam-main) .home-up-button {
        bottom: calc(.75rem + var(--exam-controls-height, calc(72px + env(safe-area-inset-bottom, 0px))));
    }
}

@media print {
    .home-up-button.button { display: none !important; }
}
