.firmamento-caixa {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--firmamento-texto) 22%, transparent);
    border-left: 4px solid var(--firmamento-destaque);
    border-radius: var(--radius-md);
    background: var(--firmamento-fundo);
    color: var(--firmamento-texto);
    transition: box-shadow .18s ease, transform .18s ease;
}

.firmamento-caixa:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    transform: translateY(-1px);
}

.firmamento-barra,
.firmamento-conteudo {
    background: var(--firmamento-fundo);
    color: var(--firmamento-texto);
}

.firmamento-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-height: 48px;
    padding: 7px 11px;
    border-bottom: 1px solid color-mix(in srgb, var(--firmamento-texto) 14%, transparent);
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: max-height .24s ease, padding .24s ease, opacity .18s ease, transform .24s ease, border-color .24s ease;
}

.firmamento-caixa:not(.firmamento-selecionado) .firmamento-barra {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom-color: transparent;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.firmamento-acoes {
    display: flex;
    align-items: center;
    gap: 9px;
}

.firmamento-acoes button {
    padding: 2px;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: .78;
    cursor: pointer;
}

.firmamento-acoes button:hover { opacity: 1; }
.firmamento-acoes .btn-add-abaixo { color: #34d399; }
.firmamento-acoes .btn-parabolica { color: #818cf8; }
.firmamento-acoes .btn-lixeira { color: #ef4444; }

.firmamento-separador {
    width: 1px;
    height: 14px;
    background: currentColor;
    opacity: .2;
}

.firmamento-conteudo {
    display: block;
    width: 100%;
    min-height: 86px;
    box-sizing: border-box;
    padding: 17px 19px;
    border: 0;
    outline: 0;
    resize: none;
    overflow: hidden;
    font: inherit;
    font-size: var(--fs-note-texto, var(--fs-editor-texto));
    line-height: 1.6;
}

.firmamento-conteudo::placeholder {
    color: currentColor;
    opacity: .55;
}

.firmamento-paleta-content {
    width: 95%;
    max-width: 450px !important;
    overflow: hidden;
    border-radius: 12px;
}

.firmamento-paleta-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px 16px 0;
}

.firmamento-paleta-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 50px;
    gap: 6px;
    padding: 0 8px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.36);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.firmamento-paleta-tabs button.active {
    background: rgba(249, 115, 22, 0.18);
    border-color: rgba(249, 115, 22, 0.5);
    color: #fed7aa;
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.12);
}

.firmamento-paleta-tabs button:not(.active):hover {
    border-color: rgba(249, 115, 22, 0.32);
    color: #e2e8f0;
}

.firmamento-paleta-body {
    height: 350px;
    padding: 16px;
    background-color: var(--bg-body);
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    overflow-y: auto;
}
.firmamento-paleta-grupo {
    margin: 8px 0;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.firmamento-paleta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.firmamento-cor {
    min-width: 0;
    padding: 5px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
    color: var(--text-muted);
    cursor: pointer;
}

.firmamento-cor.selecionada { border-color: var(--primary); }
.firmamento-cor span { display: block; height: 30px; border-radius: 5px; }
.firmamento-cor small { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }

#firmamento-lista-destaques {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#btn-remover-destaque-firmamento {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

@media (max-width: 520px) {
    .firmamento-paleta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #firmamento-lista-destaques { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}



