.sr-class-journey.cj-levelling #levelling-gear {
    scroll-margin-top: 16px;
}

.sgl.sgl-levelling .sgl-level-jump {
    margin: 0 0 14px;
}

.sgl.sgl-levelling .sgl-level-jump ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: min(100%, 390px);
}

.sgl.sr-bis.sgl-levelling .sgl-level-jump a:is(:link, :visited) {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 6px 3px;
    border: 1px solid #7e6943;
    border-radius: 2px;
    background: linear-gradient(#332b20, #211c17);
    color: #f0d59b;
    font: 600 13px/1.35 system-ui, sans-serif;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.sgl.sr-bis.sgl-levelling .sgl-level-jump a:is(:hover, :focus-visible) {
    border-color: #c9a968;
    color: #ffedc5;
    background: #493820;
}

.sgl.sgl-levelling .sgl-milestone > h4 {
    padding: 8px 12px;
    border-bottom: 1px solid var(--sgl-rule);
    background: linear-gradient(100deg, #44321e, #2d271e 76%);
    color: #f0d19a;
    font-size: 16px;
    line-height: 1.25;
    scroll-margin-top: 104px;
}

.sgl.sgl-levelling .sgl-milestone > h4:target {
    box-shadow: inset 3px 0 #dbb874;
}

.sgl.sgl-levelling .sgl-milestone > h4:focus-visible {
    outline: 2px solid #f6d988;
    outline-offset: -3px;
}

.sgl.sgl-levelling .sgl-slot > h5 {
    margin: 3px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--sgl-brass);
    font: 600 13px/1.45 system-ui, sans-serif;
}

@container (max-width: 610px) {
    .sgl.sgl-levelling .sgl-slot > h5 {
        margin: 0 0 1px;
    }
}

@container (max-width: 315px) {
    .sgl.sr-bis.sgl-levelling .sgl-level-jump a:is(:link, :visited) {
        font-size: 12px;
    }
}

@container (max-width: 237px) {
    .sgl.sgl-levelling .sgl-level-jump ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sgl.sgl-levelling .sgl-milestone > h4 {
        scroll-margin-top: 52px;
    }
}
