/* Student Portal 1.4 — instant emoji messages and translated dictionary */
.sp-chat-bubble.is-emoji-only p {
    margin: 3px 0 1px;
    font-size: 34px;
    line-height: 1.15;
}

.sp-class-dictionary form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.sp-dictionary-words > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sp-dictionary-words > div > span {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.sp-dictionary-words strong,
.sp-dictionary-words small {
    overflow-wrap: anywhere;
}

.sp-dictionary-words small {
    color: #64748b;
    font-size: 13px;
}

.sp-dictionary-words [data-delete-word] {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    color: #475569;
    font: 600 21px/1 Arial, sans-serif;
    cursor: pointer;
}

.sp-dictionary-words [data-delete-word]:hover {
    background: #fee2e2;
    color: #b91c1c;
}

@media (max-width: 560px) {
    .sp-class-dictionary form {
        grid-template-columns: 1fr;
    }

    .sp-class-dictionary form button {
        width: 100%;
    }
}
