aside {
    container-type: inline-size;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    gap: 1rem;
    border-top: 1px solid var(--color-border-primary);
    border-bottom: 1px solid var(--color-border-primary);
}

aside > .back-link {
    margin-bottom: 1rem;
}

aside > .title {
    font-size: 1.5rem;
    font-weight: bold;
    word-break: break-word;
}

aside > .secondary-button {
    width: 100%;
    margin-bottom: 1rem;
}

aside > .section {
    display: flex;
    flex-direction: column;
}

aside > .section > .title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

aside > .section > a {
    color: var(--color-text-contrast-high-primary);
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
}

aside > .section > a:hover {
    background-color: var(--color-hover-contrast-none);
}

aside > .section > a.selected {
    background-color: var(--color-background-secondary);
}

aside > .alert {
    margin-top: auto;
    margin-bottom: revert;
    flex-direction: column;
    display: none;
}

@media (min-width: 40rem) {
    aside {
        position: fixed;
        left: 0;
        width: 15rem;
        height: 100%;
        border-right: 1px solid var(--color-border-primary);
        border-top: revert;
        border-bottom: revert;
        margin-bottom: revert;
    }
}

@media (min-width: 40rem) and (min-height: 50rem) {
    aside > .alert {
        display: flex;
    }
}
