.bac-subject-icon.bac-subject-icon-image,
.bac-subject-hub-card > .bac-subject-icon-image {
    --subject-color: #079464;
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 17px;
    color: #fff;
    background: var(--subject-color);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.bac-subject-icon-image img {
    display: block;
    width: 31px;
    height: 31px;
    object-fit: contain;
}

.bac-smart-subject {
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bac-smart-subject[open] {
    border-color: #a9d9c4;
    box-shadow: 0 12px 30px rgba(7, 148, 100, .09);
}

.bac-smart-panel-compact {
    padding: 12px 22px 20px;
    background: linear-gradient(180deg, rgba(247, 252, 250, .72), #fff);
}

.bac-smart-panel-compact .bac-smart-actions {
    gap: 12px;
}

.bac-smart-panel-compact .bac-smart-action {
    min-height: 66px;
    padding: 10px 15px;
    display: grid;
    grid-template-columns: 42px 1fr 22px;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
}

.bac-smart-panel-compact .bac-smart-action > span:first-child {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
}

.bac-smart-panel-compact .bac-smart-action > strong {
    font-size: 1rem;
}

.bac-smart-panel-compact .bac-smart-action > .bi-arrow-left {
    opacity: .65;
}

.bac-subject-hub-card > .bac-subject-icon-image {
    grid-row: span 2;
}

html[data-theme="dark"] .bac-smart-panel-compact {
    background: linear-gradient(180deg, rgba(21, 34, 29, .86), #151d1a);
}

html[data-theme="dark"] .bac-smart-subject[open] {
    border-color: #35654f;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

@media (max-width: 640px) {
    .bac-subject-icon.bac-subject-icon-image,
    .bac-subject-hub-card > .bac-subject-icon-image {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 14px;
    }

    .bac-subject-icon-image img {
        width: 27px;
        height: 27px;
    }

    .bac-smart-panel-compact {
        padding: 10px 12px 14px;
    }

    .bac-smart-panel-compact .bac-smart-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .bac-smart-panel-compact .bac-smart-action {
        min-height: 58px;
        padding: 8px 10px;
        grid-template-columns: 36px 1fr;
        gap: 8px;
        border-radius: 13px;
    }

    .bac-smart-panel-compact .bac-smart-action > span:first-child {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .bac-smart-panel-compact .bac-smart-action > .bi-arrow-left {
        display: none;
    }
}
