.node.text-node .node-content-wrapper{
    height: 100%;
    display: flex;
    flex-direction: column;
}

.node.text-node .text-node-content-view{
    padding: 20px;
}





/* Оболочка контента внутри текстовой ноды */
.node.text-node .node-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Дефолтный режим чтения: ссылки видны, textarea скрыта */
.node.text-node .text-node-view {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.node.text-node .text-node-textarea {
    display: none; /* Скрыта по умолчанию, но ЕСТЬ в DOM для Ctrl+C */
    width: 100%;
    height: 100%;
    padding: 20px;
    
    color: white;
    flex: 1 !important; /* Форсирует растягивание, если родитель — это flex-контейнер */
    box-sizing: border-box !important;
    resize: none;
    outline: none;
}

/* Режим редактирования: прячем ссылки, показываем textarea для ввода */
.node.text-node.is-editing .text-node-view {
    display: none;
}
.node.text-node.is-editing .text-node-textarea {
    display: block;
}
