.to-top {
    position: fixed;
    right: 20px;
    bottom: calc(20px + var(--to-top-lift, 0px) + var(--pwa-bottom, 0px));
    z-index: 1037;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    color: #fff;
    background: #14527a;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(16, 42, 67, .28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background-color .2s ease, bottom .28s ease;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover,
.to-top:active {
    color: #fff;
    background: #0e3f5f;
}

.to-top:focus-visible {
    outline: 3px solid #f0b429;
    outline-offset: 2px;
}

.to-top svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 575.98px) {
    .to-top {
        right: 12px;
        bottom: calc(12px + var(--to-top-lift, 0px) + var(--pwa-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .to-top {
        transition: none;
    }
}

@media print {
    .to-top {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .app-shell .to-top {
        right: calc(var(--nav-rail) + var(--nav-gap) + 14px);
    }

    html[data-nav="pinned"] .app-shell .to-top {
        right: calc(var(--nav-wide) + var(--nav-gap) + 14px);
    }
}

.build-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1090;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    padding: 12px 16px;
    color: #fff;
    background: #14527a;
    box-shadow: 0 6px 18px rgba(16, 42, 67, .28);
}

.build-bar__text {
    flex: 0 1 720px;
    min-width: 0;
    line-height: 1.45;
}

.build-bar__button {
    min-height: 44px;
    padding: 8px 18px;
    color: #14527a;
    font-weight: 600;
    background: #fff;
    border: 0;
    border-radius: 10px;
}

.build-bar__button:hover,
.build-bar__button:active {
    background: #e4edf4;
}
