.emails ul.templates {
    list-style: none;
    padding: 0;
    margin: 1em 0;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.emails .templates li {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1em;
    margin-bottom: 1em;
    gap: 0.5em;
    font-size: 0.9em;
    flex: 0 0 calc(25% - 1em);
}

.emails .templates li header {}

.emails .templates li h2 {
    margin: 0 0 0.5em 0;
    font-size: 1.2em;
}

.emails .templates li p {
    flex-grow: 1;
    margin: 0;
    font-size: 0.8em;
    color: #555;
}

.emails .templates li .buttons {
    display: flex;
    gap: 0.5em;
}

.emails .templates li .buttons .button {
    font-size: 0.8em;
}

.emails .tools {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 1em;
    padding: 0.5em;
}

.emails .tools .button {
    font-size: 0.8em;
    padding: 0.4em 0.8em;
}

.emails .stats.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1em;
    margin: 1em 0;
}

.emails .stats.grid .stat {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1em;
    text-align: center;
}

.emails .stats.grid .stat small {
    color: #555;
}

.emails .stats.grid .stat strong {
    display: block;
    font-size: 1.25em;
    font-weight: 800;
}

.emails header .actions {
    display: flex;
    gap: 0.5em;
    margin-top: 1em;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    align-content: center;
}