list {
    &.card {
        border-radius: rem($window_radius / 2);

        > row {
            // Rounded top
            &:first-child {
                &,
                &.expander row.header {
                    border-top-left-radius: rem($window_radius / 2);
                    border-top-right-radius: rem($window_radius / 2);
                }
            }

            // Rounded bottom
            &:last-child {
                &,
                &.expander:not(:checked),
                &.expander:not(:checked) row.header,
                &.expander:checked list.nested,
                &.expander:checked list.nested > row:last-child {
                    border-bottom-left-radius: rem($window_radius / 2);
                    border-bottom-right-radius: rem($window_radius / 2);
                    border-bottom-width: 0;
                }
            }
        }
    }

    &.separators > row + row {
        border-top: 1px solid $border-color;
        box-shadow: inset 0 1px 0 0 scale-color($highlight_color, $alpha: -93%);
    }

    // For GTK Inpsector compatibility
    &.boxed-list {
        @extend .card;
    }

    // For GTK Inpsector compatibility
    &.rich-list > row {
        padding: rem(6px);
        min-height: rem(32px); //Try to force homogeneous row height
    }
}
