/* Texto expansível reutilizável: mantém cards compactos sem esconder o conteúdo. */
.expandable-text {
    min-width: 0;
}

.expandable-text [data-expandable-content] {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--expand-lines, 3);
    line-clamp: var(--expand-lines, 3);
}

.expandable-text.is-expanded [data-expandable-content] {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: min(240px, 34vh);
    overflow: auto;
    padding-right: 6px;
}

.expandable-text__toggle[hidden] { display: none !important; }

.expandable-text__toggle {
    margin-top: 7px;
    padding: 0;
    color: #4FE095;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.expandable-text__toggle:hover { color: #53DA90; }
.expandable-text__toggle:focus-visible {
    outline: 2px solid rgba(33, 192, 99,.65);
    outline-offset: 3px;
    border-radius: 4px;
}

.expandable-text.is-expanded [data-expandable-content]::-webkit-scrollbar { width: 7px; }
.expandable-text.is-expanded [data-expandable-content]::-webkit-scrollbar-track { background: #161717; }
.expandable-text.is-expanded [data-expandable-content]::-webkit-scrollbar-thumb {
    background: #288053;
    border-radius: 999px;
}
.expandable-text.is-expanded [data-expandable-content] {
    scrollbar-width: thin;
    scrollbar-color: #288053 #161717;
}

.admin-char-counter {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
    color: #767A79;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .01em;
}
.admin-char-counter.is-near-limit { color: #6ED8A1; }
.admin-char-counter.is-at-limit { color: #fb8585; }
