.email-card .card-heading {
    align-items: flex-start;
}

.email-list {
    display: grid;
    gap: 0;
}

.email-item {
    display: grid;
    grid-template-columns: minmax(90px, 0.42fr) minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: baseline;

    padding: 0.58rem 0;
    border-bottom: 1px solid var(--border, #343a46);
}

.email-item:last-child {
    border-bottom: 0;
}

.email-item__from,
.email-item__subject {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-item__from {
    color: var(--text, #f4f4f5);
}

.email-item__subject {
    color: var(--muted, #aab0bb);
}

.email-item__time {
    color: var(--muted, #aab0bb);
    font-size: 0.78rem;
    white-space: nowrap;
}

.email-item.is-unread .email-item__from,
.email-item.is-unread .email-item__subject {
    color: var(--text, #ffffff);
    font-weight: 800;
}

.email-item.is-unread::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: -0.3rem;
    border-radius: 50%;
    background: #f59e0b;
    align-self: center;
}

.email-item:not(.is-unread)::before {
    content: "";
    width: 7px;
    height: 7px;
}

.email-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.8rem;
    font-size: 0.8rem;
}

@media (max-width: 680px) {
    .email-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.2rem 0.55rem;
    }

    .email-item::before {
        display: none;
    }

    .email-item__from {
        grid-column: 1;
    }

    .email-item__time {
        grid-column: 2;
        grid-row: 1;
    }

    .email-item__subject {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}


.email-item a {
    text-decoration: none;
}

.email-item a:hover {
    text-decoration: underline;
}
